Skip to content

基于自定义规则的番剧采集APP,支持流媒体在线观看,支持弹幕,支持实时超分辨率。

enable theme color indicator

ErBW_s16ff8adfe9ed
diff --git a/lib/pages/settings/theme_settings_page.dart b/lib/pages/settings/theme_settings_page.dart
index a8effce1..ec60bdd8 100644
--- a/lib/pages/settings/theme_settings_page.dart
+++ b/lib/pages/settings/theme_settings_page.dart
@@ -154,11 +154,19 @@ class _ThemeSettingsPageState extends State<ThemeSettingsPage> {
e['color'].withOpacity(0.8),
),
),
- child: const AnimatedOpacity(
- opacity: 0,
+ child: AnimatedOpacity(
+ opacity: (e['color']
+ .value
+ .toRadixString(16) ==
+ defaultThemeColor ||
+ (defaultThemeColor ==
+ 'default' &&
+ index == 0))
+ ? 1
+ : 0,
duration:
- Duration(milliseconds: 200),
- child: Icon(
+ const Duration(milliseconds: 200),
+ child: const Icon(
Icons.done,
color: Colors.black,
size: 20,