Skip to content

Commit 69d16e9

Browse files
committed
Edge: Dark mode support: Use LIGHT instead of AUTO
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 / #1530.
1 parent 22a6423 commit 69d16e9

File tree

1 file changed

+1
-1
lines changed
  • bundles/org.eclipse.swt/Eclipse SWT Browser/win32/org/eclipse/swt/browser

1 file changed

+1
-1
lines changed

bundles/org.eclipse.swt/Eclipse SWT Browser/win32/org/eclipse/swt/browser/Edge.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ void setupBrowser(int hr, long pv) {
581581
if (Boolean.TRUE.equals(browser.getDisplay().getData(EDGE_USE_DARK_PREFERED_COLOR_SCHEME))) {
582582
profile.put_PreferredColorScheme(/* COREWEBVIEW2_PREFERRED_COLOR_SCHEME_DARK */ 2);
583583
} else {
584-
profile.put_PreferredColorScheme(/* COREWEBVIEW2_PREFERRED_COLOR_SCHEME_AUTO */ 0);
584+
profile.put_PreferredColorScheme(/* COREWEBVIEW2_PREFERRED_COLOR_SCHEME_LIGHT */ 1);
585585
}
586586
}
587587

0 commit comments

Comments
 (0)