Skip to content
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

Merged
merged 1 commit into from
Oct 15, 2024
Merged

Edge: Inherit dark theme from Eclipse #1530

merged 1 commit into from
Oct 15, 2024

Conversation

sratz
Copy link
Member

@sratz sratz commented Oct 10, 2024

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

@sratz sratz self-assigned this Oct 10, 2024
@sratz sratz added the edge Edge Browser label Oct 10, 2024
@sratz sratz added this to the 4.34 M2 milestone Oct 10, 2024
Copy link
Contributor

github-actions bot commented Oct 10, 2024

Test Results

   486 files  ±0     486 suites  ±0   7m 24s ⏱️ +16s
 4 154 tests ±0   4 146 ✅ ±0   8 💤 ±0  0 ❌ ±0 
16 370 runs  ±0  16 278 ✅ ±0  92 💤 ±0  0 ❌ ±0 

Results for commit d90d156. ± Comparison against base commit 03f829a.

♻️ This comment has been updated with latest results.

@sratz
Copy link
Member Author

sratz commented Oct 14, 2024

I plan to merge this for M2.

@HeikoKlare @amartya4256 any objections?

Copy link
Contributor

@BeckerWdf BeckerWdf left a 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.

Copy link
Contributor

@HeikoKlare HeikoKlare left a 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.

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_...);
@sratz sratz merged commit 4d61d1d into master Oct 15, 2024
8 checks passed
@sratz sratz deleted the edge-darktheme branch October 15, 2024 12:12
sratz added a commit that referenced this pull request Oct 25, 2024
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.
sratz added a commit that referenced this pull request Oct 25, 2024
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.
sratz added a commit that referenced this pull request Oct 25, 2024
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.
lathapatil pushed a commit to swt-initiative31/prototype-gtk that referenced this pull request Nov 14, 2024
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
edge Edge Browser
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Edge: Inherit dark theme from Eclipse
3 participants