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

Feature / Fix?: Follow the system theme #548

Merged
merged 2 commits into from
Feb 12, 2023

Conversation

ctsk
Copy link
Contributor

@ctsk ctsk commented Sep 14, 2022

Summary

The theme preference is now represented by an enum with 3 values:

  • light => maps to libadwaita::ColorScheme::ForceLight
    The app uses the light theme - regardless of system prefs

  • dark => maps to libadwaita::ColorScheme::ForceDark
    The app uses the dark theme - regardless of system prefs

  • system => maps to libadwaita::ColorScheme::Default
    The Apps style follows the system theme preferences

Result

image

@ctsk
Copy link
Contributor Author

ctsk commented Sep 14, 2022

I set the default to following the system theme.

@Diegovsky
Copy link
Collaborator

You should run cargo fmt before comitting to fix those pipeline errors :)

@Diegovsky
Copy link
Collaborator

LGTM on the whole. I wonder if @xou816 had a reason to make it the way it currently is.

IMO it looks better to have a "theme" property than a "prefers-dark" for clarity.

@ctsk ctsk marked this pull request as ready for review September 21, 2022 13:22
@xou816
Copy link
Owner

xou816 commented Feb 12, 2023

thanks for the review Diegovsky :) and thanks for the contribution ctsk! let's rebase and see how the ci goes

The theme preference now an enum with 3 options:

  - light   => maps to libadwaita::ColorScheme::ForceLight
    The app uses the light theme - regardless of system prefs

  - dark    => maps to libadwaita::ColorScheme::ForceDark
    The app uses the dark theme - regardless of system prefs

  - system  => maps to libadwaita::ColorScheme::Default
    The Apps style follows the system theme preferences
@xou816
Copy link
Owner

xou816 commented Feb 12, 2023

looks like it works perfectly, thanks for your patience!! merging

@xou816 xou816 merged commit 653aec8 into xou816:development Feb 12, 2023
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

3 participants