💄 Increase the appbar opacity when has background image

This commit is contained in:
2024-12-09 22:57:20 +08:00
parent f3b7b02e77
commit d3148ab89d
2 changed files with 11 additions and 2 deletions

View File

@ -78,6 +78,7 @@ class _SettingsScreenState extends State<SettingsScreen> {
if (image == null) return;
await File(image.path).copy('$_docBasepath/app_background_image');
_prefs?.setBool('has_background_image', true);
setState(() {});
},
@ -98,6 +99,7 @@ class _SettingsScreenState extends State<SettingsScreen> {
trailing: const Icon(Symbols.chevron_right),
onTap: () {
File('$_docBasepath/app_background_image').deleteSync();
_prefs?.remove('has_background_image');
setState(() {});
},
);