Bug 563902 - Unable to use use dark theme scrollbars with a theme that does not contain "dark".
Summary: Unable to use use dark theme scrollbars with a theme that does not contain "d...
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.16   Edit
Hardware: PC Windows 10
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-03 15:05 EDT by Fabio Zadrozny CLA
Modified: 2020-06-12 04:22 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fabio Zadrozny CLA 2020-06-03 15:05:35 EDT
It seems that DarkThemeProcessor does:

ITheme theme = (ITheme) event.getProperty("theme");
boolean isDark = theme.getId().contains("dark"); //$NON-NLS-1$
OS.setTheme (isDark);


So, it sets to use dark or not based on whether the theme name contains "dark" in its id.

This is problematic for me because I have a theme which calculates the css on demand (being dark or not) and then applies it and does the theming based on the chosen colors.

Until now this worked properly, but in 4.16rc1, I can't seem to do that anymore (having the configuration set whether the theme id has dark or not doesn't seem to work for me).

So, is there some way to disable this heuristic? (ideally, I don'w want OS.setTheme to be called at all, I just want to set the colors to match my theme).
Comment 1 Lars Vogel CLA 2020-06-04 03:27:18 EDT
Gerrits to improve this for your use case are welcome