Hi Tom, the problem you described is a bug in qooxdoo. I opened a bug-report for this problem. Just take a look at http://bugzilla.qooxdoo.org/show_bug.cgi?id=369
Fortunately, there is a workaround for this problem (also described at the bug report). Just move your values from the "initial" to the "states" section of the appearance. Then the values get applied correctly. cheers, Alex On Wednesday 11 April 2007 Tom Hunter wrote: > Hi Alex, > > Thanks for your email. The output from the qx_log window is below. I > should also note that I'm fairly sure the application is using my custom > theme because if I override the appearance settings for a label, say > setting the background colour to be blue, it works. It just doesn't seem > to be using my appearance settings for the client-document. > > Tom > > > > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Alex Back > Sent: 10 April 2007 15:59 > To: qooxdoo Development > Subject: Re: [qooxdoo-devel] Changing the default background colour > > Hi Tom, > > the way you described should work. What is your output when you insert the > following line in your main-method: > > this.debug(qx.manager.object.AppearanceManager.getInstance().getAppearanceT >h eme()); > > Just give it a shot. Maybe I can help you a little bit to track down this > problem. > > cheers, > Alex > > On Tuesday 10 April 2007 Tom Hunter wrote: > > Hi, > > > > > > > > I'm trying to change the default background colour in my application. > > > > > > > > I understand the background colour is set in qx.theme.appearance.Classic, > > under the client-document key, and changing it here works OK, but what I > > want to do is create a custom theme that inherits from the Classic theme, > > as described in the documentation > > (http://qooxdoo.org/documentation/user_manual/create_a_custom_appearance) > >. So I've created my custom theme class and set it as the appearance theme > > in > > > my application initialisation. However, overriding the client-document > > key > > > and setting a new background colour doesn't seem to have any effect. > > I've resorted to setting the background colour manually in the main > > method: > > > > > > > > var d = qx.ui.core.ClientDocument.getInstance(); > > > > d.setBackgroundColor(null); > > > > > > > > The code for my custom theme is below. Any help would be much > > appreciated. > > > (If anyone's interested, I'm trying to build an Ajax powered IDE.) > > > > > > > > qx.OO.defineClass("ajax_ide.theme.appearance.customTheme", > > qx.theme.appearance.Classic, > > function(vTitle) { > > qx.theme.appearance.Classic.call(this, vTitle || "Custom Appearance"); > > }); > > > > // Define appearances > > qx.Proto._appearances = qx.lang.Object.carefullyMergeWith( { > > /* > > * My custom appearance settings here > > */ > > > > "client-document" : { // This doesn't seem to be working for some > > reason... > > setup : function() { > > this.bgcolor = new qx.renderer.color.ColorObject("#FFFFFF"); > > this.color = new qx.renderer.color.ColorObject("windowtext"); > > }, > > > > initial : function(vTheme) { > > return { > > backgroundColor : this.bgcolor, > > color : this.color, > > hideFocus : true, > > enableElementFocus : false > > } > > } > > }, > > > > }, qx.Super.prototype._appearances); > > > > // Singleton instance getter > > qx.Clazz.getInstance = qx.lang.Function.returnInstance; > > > > // Register the appearance theme to the appearance manager > > qx.manager.object.AppearanceManager.getInstance().registerAppearanceTheme(q > > >x .Clazz); > > > > > > > > > > > > Tom ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel