Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-34693

Flatspark ButtonIcon: Introduce property 'iconFontSize' to set icon size directly

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Apache Flex 4.14.0
    • Apache Flex 4.14.0
    • FlatSpark
    • None

    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:

      mxml:
      <ButtonIcon label="Show" iconFontSize="36" iconFont="{AwesomeUtils.fa_eye}" skinClass="ButtonIconSkin" />
      

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

      Attachments

        1. ButtonIconImproved.as
          0.4 kB
          Olaf Krüger
        2. ButtonIconSkinImproved.mxml
          6 kB
          Olaf Krüger
        3. DifferentIconSizes_24_36_48.png
          3 kB
          Olaf Krüger

        Activity

          People

            akamud Mahmoud Ali Neto
            okrueger@edscha.com Olaf Krüger
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: