From d7dfc743f0cdd3b78fb1006bdee4d0fdfda435a3 Mon Sep 17 00:00:00 2001 From: Sebastian Ratz Date: Fri, 25 Oct 2024 16:29:12 +0200 Subject: [PATCH] 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 4d61d1dfcc879911bcb361e1af25b08ef19ed88e / #1530. --- .../Eclipse SWT Browser/win32/org/eclipse/swt/browser/Edge.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/org.eclipse.swt/Eclipse SWT Browser/win32/org/eclipse/swt/browser/Edge.java b/bundles/org.eclipse.swt/Eclipse SWT Browser/win32/org/eclipse/swt/browser/Edge.java index 9e197ecd79..93774e3f86 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Browser/win32/org/eclipse/swt/browser/Edge.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Browser/win32/org/eclipse/swt/browser/Edge.java @@ -581,7 +581,7 @@ void setupBrowser(int hr, long pv) { if (Boolean.TRUE.equals(browser.getDisplay().getData(EDGE_USE_DARK_PREFERED_COLOR_SCHEME))) { profile.put_PreferredColorScheme(/* COREWEBVIEW2_PREFERRED_COLOR_SCHEME_DARK */ 2); } else { - profile.put_PreferredColorScheme(/* COREWEBVIEW2_PREFERRED_COLOR_SCHEME_AUTO */ 0); + profile.put_PreferredColorScheme(/* COREWEBVIEW2_PREFERRED_COLOR_SCHEME_LIGHT */ 1); } }