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

Theme should follow the system #143

Open
wiiznokes opened this issue Jun 26, 2024 · 1 comment
Open

Theme should follow the system #143

wiiznokes opened this issue Jun 26, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@wiiznokes
Copy link
Owner

wiiznokes commented Jun 26, 2024

  • It doesn't work on COSMIC (it should also follow the accent color)
  • make it works on other system
@wiiznokes wiiznokes added the bug Something isn't working label Jun 26, 2024
@wiiznokes
Copy link
Owner Author

For theme:

pub fn theme(&self) -> theme::Theme {
        match self {
            Self::Dark => {
                let mut t = theme::system_dark();
                t.theme_type.prefer_dark(Some(true));
                t
            }
            Self::Light => {
                let mut t = theme::system_light();
                t.theme_type.prefer_dark(Some(false));
                t
            }
            Self::System => theme::system_preference(),
        }
    }

https://hachyderm.io/@edfloreshz/112769206427407768

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant