SOLVED:
After many intents I found the way to do it, it is with the base option
setted to true.
qx.Theme.define('myapp.theme.mytheme.Appearance', {
> extend : aristo.theme.Appearance,
> appearances: {
> "window/captionbar": {
> base: true
> style: function(states, styles) {
> return {
> paddingRight: 20
> };
> }
> }
> }
> });
>
2011/7/11 Seldaiendil D. Flourite <[email protected]>
> Hi all,
>
> I am trying to extend Aristo theme starting by window appearance:
>
> "window" : { ... },
>> "window/captionbar" : {
>> style : function(states) {
>> return {
>> decorator : "window-captionbar",
>> textColor : states.active? "text-label" : "text-disabled",
>> minHeight : 28,
>> maxHeight : 28,
>> paddingRight : 2
>> };
>> }
>> },
>> ...
>
>
> But when I extend it this way:
>
>
>> qx.Theme.define('myapp.theme.mytheme.Appearance', {
>> extend : aristo.theme.Appearance,
>> appearances: {
>> "window/captionbar": {
>> include: "window/captionbar",
>> style: function(states, styles) {
>> return {
>> paddingRight: 20
>> };
>> }
>> }
>> }
>> });
>
>
> I mean, I want to extend "window/captionbar", to overwrite some properties
> but keep the rest (that's way I use include:"window/captionbar"). But the
> result is than when I apply my theme the only property applied to captionbar
> is the paddingRight and looses all properties than must be inherited from
> Aristo.
>
> But when I change my Window instances appearance property to "myWindow"
>
> qx.Theme.define('myapp.theme.mytheme.Appearance', {
>> extend : aristo.theme.Appearance,
>> appearances: {
>> "myWindow/captionbar": {
>> include: "window/captionbar",
>> style: function(states, styles) {
>> return {
>> paddingRight: 20
>> };
>> }
>> }
>> }
>> });
>
>
> It works, does it means than I cannot extend a appearance ID without change
> it?
>
> I have so many Widgets on my app, does it means I have to change all the
> appearances properties to new ones?
>
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel