Hi Chris,

yes, you can set different themes for different toolbars.

First of all you have to define a appearance id for your toolbar. The 
best way is create a new one by extending from the extending toolbar 
appearance. Change your application theme like this:
qx.Theme.define("testml.theme.Appearance",
{
   extend : qx.theme.modern.Appearance,

   appearances :
   {
     "MyToolbar" :
     {
       alias : "toolbar",
       include : "toolbar",

       style : function(states)
       {
         return {
           decorator : null,
           backgroundColor : "red"
         };
       }
     }
   }
});

And set new appearance id to your toolbar:
var toolbar = new qx.ui.toolbar.ToolBar();
toolbar.setAppearance("MyToolbar");

For more details about theming have a look at:
http://qooxdoo.org/documentation/1.0/ui_theming
http://qooxdoo.org/documentation/1.0/ui_appearance
http://qooxdoo.org/documentation/1.0/ui_custom_themes
http://qooxdoo.org/documentation/1.0/ui_decorators

If you have further questions, please ask.

Cheers,
Chris


Am 25.01.2010 22:14, schrieb Chris R.:
> Hi Alex,
>
> another question: how can I do the theming for the toolbar and is it
> possible to give only one toolbar a theme if more than one exist in an
> application?
>
> Thanks in advance,
> Chris
>
> -----Ursprüngliche Nachricht-----
> Von: Alexander Steitz [mailto:[email protected]]
> Gesendet: Montag, 25. Januar 2010 10:33
> An: [email protected]
> Betreff: Re: [qooxdoo-devel] Button bar with background image?
>
> Hi Chris,
>
> On Saturday January 23 2010 17:30:02 Chris R. wrote:
>    
>> Hi everybody,
>> For one of my applications, I need a button bar, which means a panel which
>> acts like a container for normal button objects. This panel should also
>>   have a background image.
>>      
> Is the "toolbar" widget the right for you?
> ->  http://demo.qooxdoo.org/current/demobrowser/#widget~ToolBar.html
>
> The toolbar is fully themeable, so you can also add a custom background
> image.
>
> cheers,
>    Alex
>
> ----------------------------------------------------------------------------
> --
> Throughout its 18-year history, RSA Conference consistently attracts the
> world's best and brightest in the field, creating opportunities for
> Conference
> attendees to learn about information security's most important issues
> through
> interactions with peers, luminaries and emerging and established companies.
> http://p.sf.net/sfu/rsaconf-dev2dev
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
> ------------------------------------------------------------------------------
> The Planet: dedicated and managed hosting, cloud storage, colocation
> Stay online with enterprise data centers and the best network in the business
> Choose flexible plans and management services without long-term contracts
> Personal 24x7 support from experience hosting pros just a phone call away.
> http://p.sf.net/sfu/theplanet-com
> _______________________________________________
> 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


------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to