Theming is a really great tool of qooxdoo and as powerful it is, it's quite
hard to explain it in a few sentences ;)
I'll give it a try:
In your case it's necessary to know what you want to do.
If you just want to change the appearance of one window caption you can easy
access it inside your code and change the font style and text color:
win.getChildControl("title").setFont(qx.bom.Font.fromString("24px serif bold"));
win.getChildControl("title").setTextColor("black");
a better way is to define your own appearance in the default class created with
your project (yourProjectName/source/class/theme/Appearance.js):
appearances : {
"loginWindow" : {
alias : "window",
include : "window"
},
"loginWindow/title" : {
style : function(states) {
return {
font : qx.bom.Font.fromString("24px serif bold"), //You can also
define a font in the default class (yourProjectName/source/class/theme/Font.js)
textColor : "black"
};
}
}
}
Then simple set the appearance of the window you want to show the defined
"loginWindow"-look:
win.setAppearance("loginWindow");
If you want to change the default appearance of every window in your
application you can overwrite the existing appearance:
appearances : {
"window/title" : {
style : function(states) {
return {
font : qx.bom.Font.fromString("24px serif bold"),
textColor : "black"
};
}
}
}
Of course you don't have to set the appearance in this case, the default
appearance is "window".
Hope this helps you to start theming your application.
Regards,
Andreas
-----Ursprüngliche Nachricht-----
Von: skar [mailto:[email protected]]
Gesendet: Freitag, 17. Juli 2009 11:24
An: qooxdoo Development
Betreff: Re: [qooxdoo-devel] centering a window
Fink, Andreas wrote:
> Hi,
>
> just add a "resize"-Listener to the windows parent. Here is a example (works
> in playground):
>
> var win = new qx.ui.window.Window("Login");
>
Thanks a lot. It worked just fine. Any idea on how to increase the font
size and other properties like color, bold or not etc for the window
title "Login"?
I found this page http://qooxdoo.org/documentation/0.8/ui_theming on
theming and it mentions font size, but couldn't get it to work.
cheers,
skar.
--
--
The life so short, the craft so long to learn.
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel