fix mobile change theme failure
This commit is contained in:
parent
d4c8cbea87
commit
8a083f40b0
@ -375,7 +375,7 @@ class MyTheme {
|
|||||||
|
|
||||||
static void changeDarkMode(ThemeMode mode) async {
|
static void changeDarkMode(ThemeMode mode) async {
|
||||||
Get.changeThemeMode(mode);
|
Get.changeThemeMode(mode);
|
||||||
if (desktopType == DesktopType.main) {
|
if (desktopType == DesktopType.main || isAndroid || isIOS) {
|
||||||
if (mode == ThemeMode.system) {
|
if (mode == ThemeMode.system) {
|
||||||
await bind.mainSetLocalOption(key: kCommConfKeyTheme, value: '');
|
await bind.mainSetLocalOption(key: kCommConfKeyTheme, value: '');
|
||||||
} else {
|
} else {
|
||||||
|
@ -349,7 +349,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Security", "安全"),
|
("Security", "安全"),
|
||||||
("Theme", "主题"),
|
("Theme", "主题"),
|
||||||
("Dark Theme", "暗黑主题"),
|
("Dark Theme", "暗黑主题"),
|
||||||
("Light Theme", ""),
|
("Light Theme", "明亮主题"),
|
||||||
("Dark", "黑暗"),
|
("Dark", "黑暗"),
|
||||||
("Light", "明亮"),
|
("Light", "明亮"),
|
||||||
("Follow System", "跟随系统"),
|
("Follow System", "跟随系统"),
|
||||||
|
@ -349,7 +349,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Security", "安全"),
|
("Security", "安全"),
|
||||||
("Theme", "主題"),
|
("Theme", "主題"),
|
||||||
("Dark Theme", "暗黑主題"),
|
("Dark Theme", "暗黑主題"),
|
||||||
("Light Theme", ""),
|
("Light Theme", "明亮主題"),
|
||||||
("Dark", "黑暗"),
|
("Dark", "黑暗"),
|
||||||
("Light", "明亮"),
|
("Light", "明亮"),
|
||||||
("Follow System", "跟隨系統"),
|
("Follow System", "跟隨系統"),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user