From c0f7449a954624129b52a30ee1262673f7260010 Mon Sep 17 00:00:00 2001 From: Juan Gilsanz Polo Date: Wed, 11 Sep 2024 19:05:07 +0200 Subject: [PATCH] Fixed some colors --- lib/config/theme.dart | 6 ++++++ lib/screens/home/top_items/top_items_screen.dart | 2 +- lib/screens/settings/customization/theme_mode_button.dart | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/config/theme.dart b/lib/config/theme.dart index a9ffa71..93b5365 100644 --- a/lib/config/theme.dart +++ b/lib/config/theme.dart @@ -24,6 +24,9 @@ ThemeData lightTheme(ColorScheme? dynamicColorScheme) => ThemeData( navigationBarTheme: NavigationBarThemeData( surfaceTintColor: dynamicColorScheme?.surfaceTint ), + dialogTheme: DialogTheme( + surfaceTintColor: dynamicColorScheme?.surfaceTint + ), pageTransitionsTheme: const PageTransitionsTheme( builders: { TargetPlatform.android: PredictiveBackPageTransitionsBuilder() @@ -56,6 +59,9 @@ ThemeData darkTheme(ColorScheme? dynamicColorScheme) => ThemeData( navigationBarTheme: NavigationBarThemeData( surfaceTintColor: dynamicColorScheme?.surfaceTint ), + dialogTheme: DialogTheme( + surfaceTintColor: dynamicColorScheme?.surfaceTint + ), pageTransitionsTheme: const PageTransitionsTheme( builders: { TargetPlatform.android: PredictiveBackPageTransitionsBuilder() diff --git a/lib/screens/home/top_items/top_items_screen.dart b/lib/screens/home/top_items/top_items_screen.dart index 1524f75..bf0a0f5 100644 --- a/lib/screens/home/top_items/top_items_screen.dart +++ b/lib/screens/home/top_items/top_items_screen.dart @@ -377,7 +377,7 @@ class _Item extends StatelessWidget { percent: data.values.toList()[0]/total, barRadius: const Radius.circular(5), progressColor: Theme.of(context).colorScheme.primary, - backgroundColor: Theme.of(context).colorScheme.surfaceContainerHighest, + backgroundColor: Theme.of(context).colorScheme.surfaceTint.withOpacity(0.2), ), ), const SizedBox(width: 10), diff --git a/lib/screens/settings/customization/theme_mode_button.dart b/lib/screens/settings/customization/theme_mode_button.dart index e48a511..ec949c0 100644 --- a/lib/screens/settings/customization/theme_mode_button.dart +++ b/lib/screens/settings/customization/theme_mode_button.dart @@ -44,7 +44,7 @@ class ThemeModeButton extends StatelessWidget { ? Theme.of(context).colorScheme.primary : greyBackgroundColor : disabled == null || disabled == false - ? Theme.of(context).colorScheme.surfaceContainerHighest + ? Theme.of(context).colorScheme.surfaceTint.withOpacity(0.1) : greyBackgroundColor, ) ),