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

eframe: Don't follow system theme by default #1941

Merged
merged 1 commit into from Aug 20, 2022
Merged

Conversation

emilk
Copy link
Owner

@emilk emilk commented Aug 20, 2022

I have gone back and forth on this a bit, but I think the arguments
AGAINST following the system theme are many:

  • dark-light is a big dependency with problems on Linux.
  • Many people prefer the dark mode and ask how to set it as the default
    (even though they are using light mode in their OS).
  • A developer may be surprised when the app changes theme when
    they run it on another computer.

So, the path of least surprise is to make this an opt-in feature
with dark mode as the default mode.

On native, you add the dark-light feature to enable it.
On web, you set WebOptions::follow_system_theme.

I have gone back and forth on this a bit, but I think the arguments
AGAINST following the system theme are many:

* `dark-light` is a big dependency with problems on Linux.
* Many people prefer the dark mode and ask how to set it as the default
  (even though they are using light mode in their OS).
* A developer may be surprised when the app changes theme when
  they run it on another computer.

So, the path of least surprise is to make this an opt-in feature
with dark mode as the default mode.

On native, you add the `dark-light` feature to enable it.
On web, you set `WebOptions::follow_system_theme`.
@emilk emilk merged commit f4cc1c5 into master Aug 20, 2022
@emilk emilk deleted the dont-follow-system-theme branch August 20, 2022 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant