官术网_书友最值得收藏!

Including glow effects on buttons

Adding glow effects to buttons is a good way of calling attention to them and differentiating them from other buttons on your app's interface.

How to do it...

To include glow effects, perform the following steps:

  1. Drag a button to your card.
  2. Right-click on the button and select Property Inspector.
  3. On the property inspector, select Graphic Effects from the pull-down menu (Basic Properties is the default selection).
  4. Select the type of glow you desire (inner or outer).
  5. Set the properties associated with the outer glow as detailed in the following table:

    The following screenshot gives you an overview of these properties:

  6. Set the properties associated with the inner glow as detailed in the following table:

    The following screenshot gives you an overview of these properties:

How it works...

By using the Graphic Effects section of the property inspector, we can easily change the outer and inner glow properties for buttons. We can also do this programmatically by directly referencing the property reference name. For example, to change the opacity of a button, we simply use the following code:

set the opacity of btn "myButton" to 119
主站蜘蛛池模板: 枣强县| 儋州市| 车险| 项城市| 义乌市| 民和| 鄂尔多斯市| 略阳县| 堆龙德庆县| 广安市| 永吉县| 铜川市| 闸北区| 深泽县| 湘潭县| 马公市| 观塘区| 县级市| 江川县| 辛集市| 惠东县| 西吉县| 乾安县| 潮州市| 陕西省| 本溪| 五寨县| 漠河县| 莒南县| 祁连县| 保定市| 南木林县| 昌图县| 德惠市| 峨边| 榆中县| 陆丰市| 鸡西市| 阿图什市| 法库县| 固安县|