opt: change theme

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-16 22:12:24 +08:00
parent c4e7263ed6
commit cb6ead96d1
5 changed files with 37 additions and 30 deletions

View File

@@ -538,7 +538,7 @@ List<SettingsModel> get styleSettings => [
if (result != null) {
GStorage.setting.put(SettingBoxKey.themeMode, result.index);
Get.put(ColorSelectController()).themeType.value = result;
Get.forceAppUpdate();
Get.changeThemeMode(result.toThemeMode);
}
},
leading: const Icon(Icons.flashlight_on_outlined),