Community
Participate
Working Groups
If the Dark theme is enabled, pressing "Restore Defaults" on the Syntax Coloring pref page doesn't work properly: it will restore to the non-dark theme defaults.
This is still an issue and very annoing "user experience". In some of my editors I define a special "Restore dark theme defaults" button, but this a very dirty workaround. Another workaround is that users do switch back to light theme and then to dark theme again. Then defaults are there... As it works at "theme switching time" it should be possible at "restore defaults" as well.
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.
I hit this issue with latest I build
The method JavaUIPreferenceInitializer.setThemeBasedPreferences tries to get the current theme of the workbench from org.eclipse.ui.internal.themes.WorkbenchThemeManager , but this returns the current theme as default theme even if the theme being used is Dark theme. The currentTheme of org.eclipse.ui.internal.themes.WorkbenchThemeManager is used to get the org.eclipse.jface.resource.ColorRegistry, which is then used by JavaUIPreferenceInitializer.setThemeBasedPreferences method to set the default values. As the currentTheme of org.eclipse.ui.internal.themes.WorkbenchThemeManager is not updated when the theme is updated in the ThemeEngine, this issue is happening. The same issue occurs for other preferences in : General > Appearance > Colors and Fonts, Select any option such as Basic , Target File Editor etc , expand and press "Restore Defaults" in Dark theme, and all the colors are reset to Light theme defaults. So, moving the bug to Platform UI.