PDA

View Full Version : ThemeSelector : change theme without reload



nseb
24 Apr 2008, 2:02 AM
Hi ,

it's possible to change theme without reload , like as extjs ?
can use ext's theme with gxt ?

Best Regards,
Sebastien.

micgala
18 Mar 2009, 5:30 AM
Hi, since this was not answered, I bring it back here:

Is it still not possible to change the theme without restarting the application, like we had in ext-js?

If not, is there any reason why?

Thanks,
Michel.

sven
18 Mar 2009, 5:39 AM
Sure you can just swap the css files and the look will change. If you want this without a reload you can easily implement it.

micgala
23 Mar 2009, 8:47 AM
Hi Sven.

Could you please guide me on how to do it?

I guess I would need to use CSS class for this, right?

I would need to remove the old one (what is the id?)
and then I would need to add the new one...

Is this the way?

Roby
30 Jan 2011, 11:48 PM
Anyone have implement the way how to swap the css files which look like switchTheme from BLUE to GRAY?

peet
14 Jun 2011, 7:35 AM
use:

Ext.util.CSS.swapStyleSheet(id, url);

and

Ext.util.CSS.removeStyleSheet(id)

swap appends to existing making it override them. old one should be removed so they do not interfere.

geovannefarell
31 Mar 2012, 5:00 AM
can you explain to me ??
pleaseeee.....
where the code write it ?