-
Book Overview & Buying
-
Table Of Contents
qooxdoo Beginner's Guide
The Appearance theme describes the appearance of every widget, and its child widgets, to which a theme can be applied. As the basic styling is done through the Decoration theme, Color theme, Font theme, and Icon theme, the Appearance theme uses the definitions of all the other themes. It is the central meeting point where all other themes (Decoration, Font, Color, and Icon) get together. Whenever you want to customize a theme, the Appearance theme is the first place to look for the widget style. You can customize the style either in this theme itself or change the relevant item in the Decoration theme or Color theme. As we should know about all the other themes to understand the Appearance theme, we have covered them prior to this one.
The following code snippet shows a couple of appearance definitions in the Modern theme:
qx.Theme.define("qx.theme.classic.Appearance",
{
appearances :
{
-------
-------
"menu-button" :
{
alias : "atom",
style : function(states)
{
return...
Change the font size
Change margin width
Change background colour