fix mobile change theme failure

This commit is contained in:
csf 2023-03-06 23:37:43 +09:00
parent d4c8cbea87
commit 8a083f40b0
3 changed files with 3 additions and 3 deletions

View File

@ -375,7 +375,7 @@ class MyTheme {
static void changeDarkMode(ThemeMode mode) async {
Get.changeThemeMode(mode);
if (desktopType == DesktopType.main) {
if (desktopType == DesktopType.main || isAndroid || isIOS) {
if (mode == ThemeMode.system) {
await bind.mainSetLocalOption(key: kCommConfKeyTheme, value: '');
} else {

View File

@ -349,7 +349,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Security", "安全"),
("Theme", "主题"),
("Dark Theme", "暗黑主题"),
("Light Theme", ""),
("Light Theme", "明亮主题"),
("Dark", "黑暗"),
("Light", "明亮"),
("Follow System", "跟随系统"),

View File

@ -349,7 +349,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Security", "安全"),
("Theme", "主題"),
("Dark Theme", "暗黑主題"),
("Light Theme", ""),
("Light Theme", "明亮主題"),
("Dark", "黑暗"),
("Light", "明亮"),
("Follow System", "跟隨系統"),