Skip to content

Commit

Permalink
Edge: Dark mode support: Use LIGHT instead of AUTO
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sratz committed Oct 25, 2024
1 parent 22a6423 commit d7dfc74
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit d7dfc74

Please sign in to comment.