diff --git a/lib/src/settings/providers/theme_provider.dart b/lib/src/settings/providers/theme_provider.dart index f211a03..9a915df 100644 --- a/lib/src/settings/providers/theme_provider.dart +++ b/lib/src/settings/providers/theme_provider.dart @@ -5,7 +5,7 @@ import 'package:hooks_riverpod/hooks_riverpod.dart'; final themeStateProvider = StateNotifierProvider<_ThemeModel, ThemeDataModel>((ref) => _ThemeModel()); -const _accentLightColor = Color.fromARGB(255, 0, 0, 176); +const _accentLightColor = Color.fromARGB(255, 85, 136, 156); const _primaryLightColor = Color.fromARGB(255, 227, 245, 255); const _secondaryLightColor = Color.fromARGB(255, 244, 247, 255); final lightTheme = ThemeDataModel( @@ -52,6 +52,13 @@ final lightTheme = ThemeDataModel( foregroundColor: _primaryDarkColor, ), ), + switchTheme: SwitchThemeData( + thumbColor: MaterialStateProperty.resolveWith( + ((states) => states.contains(MaterialState.selected) + ? _accentLightColor + : _primaryDarkColor.withOpacity(0.7)), + ), + ), inputDecorationTheme: const InputDecorationTheme( border: OutlineInputBorder(), labelStyle: TextStyle(color: _accentLightColor), @@ -112,6 +119,13 @@ final darkTheme = ThemeDataModel( foregroundColor: _primaryLightColor, ), ), + switchTheme: SwitchThemeData( + thumbColor: MaterialStateProperty.resolveWith( + ((states) => states.contains(MaterialState.selected) + ? _accentDarkColor + : _primaryLightColor.withOpacity(0.7)), + ), + ), inputDecorationTheme: const InputDecorationTheme( border: OutlineInputBorder(), labelStyle: TextStyle(color: _accentDarkColor), diff --git a/lib/src/settings/widgets/update_dialog.dart b/lib/src/settings/widgets/update_dialog.dart index 2c7db43..14892cb 100644 --- a/lib/src/settings/widgets/update_dialog.dart +++ b/lib/src/settings/widgets/update_dialog.dart @@ -65,8 +65,8 @@ class _InfoDialogWidgetState extends State { ), actions: [ Visibility( - visible: widget.isLatestVersion && - (defaultTargetPlatform == TargetPlatform.android), // ! + visible: !widget.isLatestVersion && + (defaultTargetPlatform == TargetPlatform.android), child: ElevatedButton( onPressed: () async { await FlutterDownloader.enqueue(