-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Edge: Inherit dark theme from Eclipse #1530
Conversation
I plan to merge this for M2. @HeikoKlare @amartya4256 any objections? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I reviewed what I think that I understand. At least in this part I did not find any issues.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code is sound and works as expected.
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Display.java
Outdated
Show resolved
Hide resolved
dc669c3
to
c7f4cc3
Compare
Set ICoreWebView2Profile#put_PreferredColorScheme() based on the Eclipse theme, if this is dark. The same way it is done in Display.setData(USE_DARKMODE_EXPLORER_THEME_KEY, ...) via OS.SetPreferredAppMode(PreferredAppMode_...);
In the scenario - System: Dark - Eclipse: Light we need to explicitly set - Edge: Light as well, as with the previous - Edge: Auto it would inherit 'Dark' from the system, which is not desired. Follow-up on 4d61d1d / eclipse-platform#1530.
Set ICoreWebView2Profile#put_PreferredColorScheme() based on the Eclipse theme, if this is dark.
The same way it is done in
Display.setData(USE_DARKMODE_EXPLORER_THEME_KEY, ...)
via
OS.SetPreferredAppMode(PreferredAppMode_...);
Fixes #1529