Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-05-25 12:15:38 +08:00
parent 86bbdcc90c
commit 525dce989b
107 changed files with 374 additions and 490 deletions

View File

@@ -11,14 +11,14 @@ enum ThemeType {
const ThemeType(this.desc);
ThemeMode get toThemeMode => switch (this) {
ThemeType.light => ThemeMode.light,
ThemeType.dark => ThemeMode.dark,
ThemeType.system => ThemeMode.system,
.light => ThemeMode.light,
.dark => ThemeMode.dark,
.system => ThemeMode.system,
};
Icon get icon => switch (this) {
ThemeType.light => const Icon(MdiIcons.weatherSunny),
ThemeType.dark => const Icon(MdiIcons.weatherNight),
ThemeType.system => const Icon(MdiIcons.themeLightDark),
.light => const Icon(MdiIcons.weatherSunny),
.dark => const Icon(MdiIcons.weatherNight),
.system => const Icon(MdiIcons.themeLightDark),
};
}