Flex 4 sample themes don’t work

Today i was playing with the different themes shipped with the FlexSDK. The original spark theme is so ugly. The good thing is – there are some more themes for us, like Arcade, Cobalt, Graphite and Zen. Also there are some CSS-Styled Spark-Themes like spark_cobalt and spark_desert.

For using another theme you have to add a additional compiler argument to your project.

The old Flex3 Halo Theme:

-theme=D:\compiler\flex_sdk_4.5.0.17689\frameworks\themes\Halo\halo.swc

A new Cobalt theme in the samples folder of the sdk

-theme=D:\compiler\flex_sdk_4.5.0.17689\samples\themes\cobalt\cobalt.swc

Maybe you will get some css warnings and the project won’t compile, in this case turn of these warnings:

-show-invalid-css-property-warnings=false
-show-unused-type-selector-warnings=false

For using another CSS-styled theme copy the css file to your project und add this in your main-mxml:

<fx :Style source="spark_cobalt.css" />

A full list of all sample themes with images you can see here:
http://devgirl.org/2010/01/06/flex-4-sample-themes/

All this themes looks very nice – yeah, if there would be no big BUT! I really like the Cobalt-theme. But if you use the theme all scollbars are fucked up, they will not scroll down to the bottom. The problem occurs at all sample themes. I think without a scroller all these themes are completely useless. Again Flex4 sucks, arrgghhhh. PLEASE Adobe, please fix the problem. I’m not a designer and have not the time to create my own theme and i think i’m not the only one.

Comments are closed.