|More on CSS Theming [message #903660]
||Fri, 24 August 2012 14:38
| Ronald So
Registered: April 2011
I have one entry point (org.eclipse.core.runtime.applications), two themes that are registered under "org.eclipse.rap.ui.themes", and one branding that is registered under "org.eclipse.rap.ui.branding". The branding maps to one of the themes. Is it possible to allow users to switch between the two themes in the UI, thus, programmatically change the themeId from one to the other?
|Re: More on CSS Theming [message #909030 is a reply to message #908659]
||Thu, 06 September 2012 08:42
| Tim Buschtoens
Registered: July 2009
Am 05.09.2012 20:49, schrieb Ronald So:
> Thanks Tim. I understand this is how RAP works, but it does lack what
> CSS can do, which is changing styles on the fly without restarting the
> application. Are there any suggestions that can improve this behavior?
Not sure what you mean by that. If you change a css-file for an
html-document, you need to reload it. If you change a css-file in RAP,
you need to restart the RAP Application. If you want to exchange/switch
a css-file (by switching branding), you only need restart the RAP session.
> Imagine that we have two CSS files, and we let users to click on a menu
> and select the CSS file they want to use.
I think what i described should make that possible. Basically let them
switch between brandings. You can't do it without restarting the session
Professional services for RAP and RCP?
Powered by FUDForum
. Page generated in 0.02846 seconds