0

I use a plugin_customization.ini file for preference customization in Eclipse rcp product. I added below preference in the file to set dark theme as default but it is not working. Can someone please help me ?

org.eclipse.e4.ui.css.swt.theme/themeid=org.eclipse.e4.ui.css.theme.e4_dark
5
  • What sort of RCP? Is it a pure e4 rcp (application is org.eclipse.e4.ui.workbench.swt.E4Application) or a 3.x compatibilty rcp (using org.eclipse.ui.xxx plugins)? Commented May 23 at 9:28
  • I am having a pure e4 rcp application. I am using eclipse release 2022-06 as target platform Commented May 23 at 9:45
  • For e4 the CSS theme is normally set by cssTheme property of the product extension point Commented May 23 at 10:46
  • Thanks Greg. I tried it..This works when my system is in default theme settings and I set the cssTheme property to use dark mode. But when my system is in dark mode and I set the css theme to use e4_classic theme, the application still comes with the black theme. Can you help for this scenario? Commented May 26 at 16:23
  • The theme engine has fallback code that may choose dark mode. Debug what org.eclipse.e4.ui.css.swt.internal.theme.ThemeEngine is doing to to see why it is choosing that theme. Commented May 26 at 16:46

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.