Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-07-22 21:13:16 +08:00
parent 55bed2e830
commit e770e39c8f
59 changed files with 1388 additions and 1265 deletions

View File

@@ -88,8 +88,9 @@ class MineController extends GetxController {
SmartDialog.showToast('请先登录');
return;
}
anonymity.value = !anonymity.value;
if (anonymity.value) {
final newVal = !anonymity.value;
anonymity.value = newVal;
if (newVal) {
SmartDialog.dismiss();
SmartDialog.show<bool>(
clickMaskDismiss: false,
@@ -195,12 +196,13 @@ class MineController extends GetxController {
}
void onChangeTheme() {
themeType.value = nextThemeType;
final newVal = nextThemeType;
themeType.value = newVal;
try {
Get.find<MineController>().themeType.value = themeType.value;
Get.find<MineController>().themeType.value = newVal;
} catch (_) {}
GStorage.setting.put(SettingBoxKey.themeMode, themeType.value.index);
Get.changeThemeMode(themeType.value.toThemeMode);
GStorage.setting.put(SettingBoxKey.themeMode, newVal.index);
Get.changeThemeMode(newVal.toThemeMode);
}
void pushFollow() {