Hi Skar,

yes, in your case, you can override the background color.

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 know that the appearance system is complex. The best way is to look at 
these articles:
http://qooxdoo.org/documentation/0.8/ui_theming
http://qooxdoo.org/documentation/0.8/ui_appearance
http://qooxdoo.org/documentation/0.8/ui_custom_themes
These articles describe the general usage of the appearance system. But 
to get a feeling how to use it, it is also useful to have a look at the 
both standard themes (modern and classic).

I hope I could help to start with using appearance. If you have further 
questions, please ask.

Cheers,
Chris


skar schrieb:
> Christian Schmidt wrote:
>> Hi Skar,
>>   
>>> Also, I'm creating using a button bar and a table both inside a vbox. Is 
>>> this is right way or is there any other aesthetically cool looking way 
>>> to add buttons to a table?
>>>   
>>>     
>> I think thats the right way, the screenshot looks like a combination of 
>> widgets. If you don't like the modern or classic theme, could can define 
>> your own one.
>> http://qooxdoo.org/documentation/0.8/ui_custom_themes
>>   
> Thanks. I could do 
> qx.core.Init.getApplication().getRoot().setBackgroundColor("white") to 
> set the bg as white. Is there any way to set this app wide default of 
> gray for the app bg, table header bg etc to something like a blue instead?
>
> 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
>   


-- 
Christian Schmidt
Software Entwickler

1&1 Internet AG - Web Technologies
Ernst-Frey-Straße 9 · DE-76135 Karlsruhe
[email protected]

Amtsgericht Montabaur / HRB 6484
Vorstände: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Thomas 
Gottschlich, Robert Hoffmann, Markus Huhn, Hans-Henning Kettler, Dr. Oliver 
Mauss, Jan Oetjen
Aufsichtsratsvorsitzender: Michael Scheeren


------------------------------------------------------------------------------
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

Reply via email to