|Dynamic CSS - Applied on Load of E4 Application [message #1777203]
||Mon, 27 November 2017 05:14
| Annamalai Chockalingam
Registered: July 2009
Our requirement is provide a theme folder in the installation location. This could contain a CUSTOM.css file which the user can manipulate. |
Now within in my application we have a CSS Theme Selector Dialog. User can switch between Default CSS contributed thru the theme extension point or custom.css implemented using IStyleThemeEngine with ICSSThemeEngine.
When I switch the Theme within the application it works perfectly fine. Now after closing the application on reopening it goes back to default.css. On we are storing the Theme Selection in a preferencestore.
We would like to apply the Default or Custom Theme based on the preferenceStore value.
We tried doing it in the E4LifeCycle.java inside the postContext method, but IThemeEngine variable is appearing to be NULL there. Therefore we are unable to load and dynamically set the Custom.css.
Any help in this direction would help.
Powered by FUDForum
. Page generated in 0.01919 seconds