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

Cannot set several Gumbo skin state properties/styles at runtime when they use new states syntax

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • Adobe Flex SDK Previous
    • None
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Language Found: English

    Description

      This happens with several skins, but

      Steps to reproduce:
      1. In build 4.0.0.3154, the TextInputSkin (frameworks/projects/flex4/src/flex/skin/TextInputSkin.mxml) is as follows:
      <Skin xmlns="http://ns.adobe.com/mxml/2009">

      <Metadata>
      [HostComponent("flex.component.TextInput")]
      </Metadata>

      <states>
      <State name="enabled"/>
      <State name="disabled"/>
      </states>

      <Rect left="0" right="0" top="0" bottom="0">
      <stroke>
      <SolidColorStroke color="0x5380D0" color.disabled="0xA9C0E8"/>
      </stroke>
      <fill>
      <SolidColor color="0xFFFFFF"/>
      </fill>
      </Rect>

      <TextView id="textView" text="

      {hostComponent.text}

      "
      left="1" right="1" top="1" bottom="1"
      fontFamily="Arial" fontSize="12"
      color="0x2B4381" color.disabled="0x95A1C0"
      paddingLeft="4" paddingTop="4"
      paddingRight="4" paddingBottom="4"/>

      </Skin>

      Actual Results:
      There isnt a way to dynamically set the disabled font color or TextInput control background color.
      You cannot set values at runtime for the new states syntax (for color.disabled).

      Expected Results:
      Should be easier to set properties dynamically when they use the new states syntax.

      Workaround (if any):
      Create a new skin and override any styles/properties which use the states syntax (for example, the <SolidStrokeColor color.disabled /> and <TextView color.disabled /> in the example above).

      Attachments

        Activity

          People

            adobejira Adobe JIRA
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: