Skip to content

Commit

Permalink
refactor(ui): improve ui
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhuJHua committed Dec 15, 2024
1 parent 13dc2f4 commit b94b3f6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/pages/home/diary/diary_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ class DiaryPage extends StatelessWidget {
showDragHandle: true,
useSafeArea: true);
},
tooltip: '数据同步',
icon: const Icon(Icons.cloud_sync_outlined),
);
}),
Expand Down
2 changes: 2 additions & 0 deletions lib/pages/home/setting/setting_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,8 @@ class SettingPage extends StatelessWidget {
Expanded(
child: ListView(
cacheExtent: size.height * 2,
addAutomaticKeepAlives: false,
addRepaintBoundaries: false,
padding: const EdgeInsets.all(4.0),
children: [
buildDashboard(),
Expand Down
2 changes: 1 addition & 1 deletion lib/utils/data/pref.dart
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ class PrefUtil {
(color.b * 255).toInt());
}

await _prefs.setInt('color', _prefs.getInt('color') ?? (await ThemeUtil.supportDynamicColor() ? -1 : 0));
await _prefs.setInt('color', _prefs.getInt('color') ?? (await ThemeUtil.supportDynamicColor() ? -1 : 4));
await _prefs.setInt('themeMode', _prefs.getInt('themeMode') ?? 0);
await _prefs.setBool('dynamicColor', _prefs.getBool('dynamicColor') ?? true);
await _prefs.setInt('quality', _prefs.getInt('quality') ?? 2);
Expand Down

0 comments on commit b94b3f6

Please sign in to comment.