wiiznokes / fan-control

Control your fans with different behaviors
GNU General Public License v3.0
121 stars 9 forks source link

Theme should follow the system #143

Open wiiznokes opened 1 month ago

wiiznokes commented 1 month ago
wiiznokes commented 1 month ago

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