I'm not sure if this is correct, because I copied it from some other
source.
- create a new AppearanceTheme, inheriting from DefaultAppearanceTheme:
qx.OO.defineClass("myApp.AppearanceTheme",
qx.theme.appearance.DefaultAppearanceTheme,
function(vTitle) {
qx.theme.appearance.DefaultAppearanceTheme.call(this, vTitle);
});
- then fill it with your settings:
qx.Proto._appearances = qx.lang.Object.carefullyMergeWith(
{
// your settings here
});
- then register it:
qx.Class.getInstance = qx.util.Return.returnInstance;
qx.manager.object.AppearanceManager.getInstance().registerAppearanceThem
e(qx.Class);
qx.manager.object.AppearanceManager.getInstance().setAppearanceTheme(new
myApp.AppearanceTheme());
I did this all within the same file. It works for me, though I don't
fully understand it.
Hope it helps,
Matthias
> I'm still trying to work out how to register a new appearance
> theme and make it the default. Have tried several approaches
> but not found anything that works yet. Can anyone help me with this?
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel