[ 
https://issues.apache.org/jira/browse/FLEX-34693?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Olaf Krüger updated FLEX-34693:
-------------------------------
    Description: 
>From my point of view the power of vector icons is to simply get them in 
>various sizes.
Currently the possible sizes are hardcoded so we have to modify the 
ButtonIconSkin to get custom sizes.
Much more comfortable would be to access a new property 'iconFontSize' directly:
{code:title=mxml:|borderStyle=solid}
<ButtonIcon label="Show" iconFontSize="36" iconFont="{AwesomeUtils.fa_eye}" 
skinClass="ButtonIconSkin" />
{code}

I'll attach the improved files that provide this feature.

  was:
>From my point of view the power of vector icons is to simply get them in 
>various sizes.
Currently the possible sizes are hardcoded so we have to modify the 
ButtonIconSkin to get custom sizes.
Much more comfortable would be to access a new property 'iconFontSize' directly:
<ButtonIcon label="Show" iconFontSize="36" iconFont="{AwesomeUtils.fa_eye}" 
skinClass="ButtonIconSkin" />

I'll attach the improved files that provide this feature.


> Flatspark ButtonIcon: Introduce property 'iconFontSize' to set icon size 
> directly
> ---------------------------------------------------------------------------------
>
>                 Key: FLEX-34693
>                 URL: https://issues.apache.org/jira/browse/FLEX-34693
>             Project: Apache Flex
>          Issue Type: Improvement
>    Affects Versions: Apache Flex 4.14.0
>            Reporter: Olaf Krüger
>            Priority: Minor
>         Attachments: ButtonIconImproved.as, ButtonIconSkinImproved.mxml, 
> DifferentIconSizes_24_36_48.png
>
>
> From my point of view the power of vector icons is to simply get them in 
> various sizes.
> Currently the possible sizes are hardcoded so we have to modify the 
> ButtonIconSkin to get custom sizes.
> Much more comfortable would be to access a new property 'iconFontSize' 
> directly:
> {code:title=mxml:|borderStyle=solid}
> <ButtonIcon label="Show" iconFontSize="36" iconFont="{AwesomeUtils.fa_eye}" 
> skinClass="ButtonIconSkin" />
> {code}
> I'll attach the improved files that provide this feature.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to