Christian Schmidt wrote:
> To override the color try these:
> qx.Theme.define("custom.theme.Color",
> {
> extend : qx.theme.modern.Color,
>
> colors :
> {
> "background-application" : "white"
> }
> });
>
> To customize some widget it is important to know the appearance id from
> the widget. The id could be found in the API viewer, in your case, open
> the qx.ui.root.Application and show all inherited values. Open the
> appearance property, you can see that the init value is "root". Now you
> can have a look at the appearance defined in e.q. modern theme
> (qx.theme.modern.Appearance). If you search after the "root" key, you
> can see that the appearance sets the "backgroundColor" property with the
> value "background-application". The appearance system allow to define
> own color ids, which are defined in the e.q. modern theme
> (qx.theme.modern.Color). To override this value, use my example code above.
>
I followed the same way for setting different color to a
"qx.ui.toolbar.Button". The root for this is "toolbar-button". It has
the following entry in qx/theme/modern/Appearance.js:
> "toolbar-button" :
> {
> alias : "atom",
>
> style : function(states)
> {
> return {
> marginTop : 2,
> marginBottom : 2,
> padding : (states.pressed || states.checked ||
> states.hovered) && !states.disabled
> || (states.disabled && states.checked) ? 3 : 5,
> decorator : states.pressed || (states.checked &&
> !states.hovered) || (states.checked && states.disabled) ?
> "toolbar-button-checked" :
> states.hovered && !states.disabled ?
> "toolbar-button-hovered" : undefined
> };
> }
> },
And Color.js has no mention of "toolbar-button". How do I change the
color/gradient for the buttons in their base state, when hovered and
when pushed/down?
cheers,
skar.
--
--
The life so short, the craft so long to learn.
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel