2 Replies Latest reply on Sep 6, 2012 6:14 PM by leejk

    Mixing Skins

    leejk Level 1

      Hi,

       

      I am using the mobile components in a desktop application, and so I have applied the mobile them to the project. For Scroller components though, I would like for them to use the default Spark skin. I've been looking at the src files for the skin classes, but can't figure out how this component's visual appaearance is changed when different themes are used. Can someone point me in the right direction please?

       

      thx

        • 1. Re: Mixing Skins
          Flex harUI Adobe Employee

          Both the mobile theme and the spark theme have their own scrollbar skins.  If you specify the correct class in your css it should pick it up.

          • 2. Re: Mixing Skins
            leejk Level 1

            Found them.

             

            s|HScrollBar

            {

              skinClass: ClassReference("spark.skins.spark.HScrollBarSkin")

            }

              s|VScrollBar

            {

              skinClass: ClassReference("spark.skins.spark.VScrollBarSkin")

            }

             

            I had to add these within the main TabbedViewNavigatorApplication tag though; it would not let me add these to the views that contained the scroller. I don't understand why that is, but it is working.

             

            thx