|
Re: Theming a subclass of Button [message #769027 is a reply to message #768704] |
Wed, 21 December 2011 09:22   |
|
Hi,
Where did you read that "the xml-style of themeing is discontinued"?
This might be an ambiguous statement in the docs. In early versions,
RAP used property files for theming, but there has never been an
"xml-style" of theming.
When you've registered a themeable widget, you should create a file
MyWidget.theme.xml and a MyWidget.default.css place them in the package
that follows the naming convention outlined in the help. These files
are only found by a naming convention.
As you observed, only those properties, states and styles declared in
the theme.xml file are actually applied. For every declared property
there must be a default value in the default.css file.
Hope this helps, but you should really get rid of the sub-classed Button!
Regards, Ralf
--
Ralf Sternberg
Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/
Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
|
|
|
|
Powered by
FUDForum. Page generated in 0.02074 seconds