Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Dynamic CSS - Applied on Load of E4 Application
Dynamic CSS - Applied on Load of E4 Application [message #1777203] Mon, 27 November 2017 05:14
Annamalai Chockalingam is currently offline Annamalai ChockalingamFriend
Messages: 121
Registered: July 2009
Senior Member
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 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.

Previous Topic:Parts background color with gradient
Next Topic:How to keep IDs consistent
Goto Forum:

Current Time: Mon Dec 09 03:01:57 GMT 2019

Powered by FUDForum. Page generated in 0.02070 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top