Re: [qooxdoo-devel] Inactive Windows
Brought to you by:
ecker,
martinwittemann
From: Marc P. <mar...@re...> - 2011-05-05 14:19:07
|
On 05/05/2011 03:18 PM, Port wrote: > Yes, I did. > Let me explain. > I write something like that: > > var win1 = new qx.ui.window.Window("First Window"); > var win2 = new qx.ui.window.Window("Second Window"); > > this.getRoot().add(win1); > this.getRoot().add(win2,{left:100, top:100}); > win1.open(); > win2.open(); > > In result, Second Window is Active and look like active. How to do both > windows look like First Window (inactive window)? > > Thank you. Hi Port, I would do this by overriding the window's appearance in your own theme. For example, if you use the Modern theme, you can change your source/class/.../theme/Appearance.js file like this: appearances : { ..... "window/captionbar" : { base: true, style : function(states) { var useCSS = qx.core.Environment.get("css.borderradius") && qx.core.Environment.get("css.gradients") && qx.core.Environment.get("css.boxshadow"); return { decorator: "window-captionbar-inactive" + (useCSS ? "-css" : "") }; } } ..... } Regards, Marc |