From a7521a3168859820091f8b4e51f2c3da297b0218 Mon Sep 17 00:00:00 2001 From: Felix Kirchner Date: Sat, 19 Jul 2025 18:01:39 +0200 Subject: [PATCH] Updated colors --- lib/core/custom_theme.dart | 4 +++- lib/presentation/views/round_view.dart | 11 ++++++----- lib/presentation/views/tab_view.dart | 2 +- pubspec.yaml | 2 +- 4 files changed, 11 insertions(+), 8 deletions(-) diff --git a/lib/core/custom_theme.dart b/lib/core/custom_theme.dart index fa78cb6..e123779 100644 --- a/lib/core/custom_theme.dart +++ b/lib/core/custom_theme.dart @@ -4,7 +4,9 @@ class CustomTheme { static Color white = CupertinoColors.white; static Color primaryColor = CupertinoColors.systemGreen; static Color backgroundColor = const Color(0xFF101010); - static Color backgroundTintColor = CupertinoColors.darkBackgroundGray; + static Color mainElementbackgroundColor = CupertinoColors.darkBackgroundGray; + static Color playerTileColor = CupertinoColors.secondaryLabel; + static Color buttonBackgroundColor = const Color(0xFF202020); // Line Colors for GraphView static const Color graphColor1 = Color(0xFFF44336); diff --git a/lib/presentation/views/round_view.dart b/lib/presentation/views/round_view.dart index 690e256..82af6dc 100644 --- a/lib/presentation/views/round_view.dart +++ b/lib/presentation/views/round_view.dart @@ -117,7 +117,8 @@ class _RoundViewState extends State { child: SizedBox( height: 60, child: CupertinoSegmentedControl( - unselectedColor: CustomTheme.backgroundTintColor, + unselectedColor: + CustomTheme.mainElementbackgroundColor, selectedColor: CustomTheme.primaryColor, groupValue: _caboPlayerIndex, children: Map.fromEntries(widget.gameSession.players @@ -170,7 +171,7 @@ class _RoundViewState extends State { child: ClipRRect( borderRadius: BorderRadius.circular(12), child: CupertinoListTile( - backgroundColor: CupertinoColors.secondaryLabel, + backgroundColor: CustomTheme.playerTileColor, title: Row(children: [ Expanded( child: Row(children: [ @@ -229,8 +230,8 @@ class _RoundViewState extends State { heightFactor: 1, child: CupertinoButton( sizeStyle: CupertinoButtonSize.medium, - borderRadius: BorderRadius.circular(15), - color: const Color(0xFF202020), + borderRadius: BorderRadius.circular(12), + color: CustomTheme.buttonBackgroundColor, onPressed: () async { if (await _showKamikazeSheet(context)) { if (!context.mounted) return; @@ -260,7 +261,7 @@ class _RoundViewState extends State { return Container( height: 80, padding: const EdgeInsets.only(bottom: 20), - color: CustomTheme.backgroundTintColor, + color: CustomTheme.mainElementbackgroundColor, child: Row( mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: [ diff --git a/lib/presentation/views/tab_view.dart b/lib/presentation/views/tab_view.dart index 0c98cc7..360737c 100644 --- a/lib/presentation/views/tab_view.dart +++ b/lib/presentation/views/tab_view.dart @@ -17,7 +17,7 @@ class _TabViewState extends State { Widget build(BuildContext context) { return CupertinoTabScaffold( tabBar: CupertinoTabBar( - backgroundColor: CustomTheme.backgroundTintColor, + backgroundColor: CustomTheme.mainElementbackgroundColor, iconSize: 27, height: 55, items: [ diff --git a/pubspec.yaml b/pubspec.yaml index d9cb654..37af518 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -2,7 +2,7 @@ name: cabo_counter description: "Mobile app for the card game Cabo" publish_to: 'none' -version: 0.4.9+529 +version: 0.4.9+533 environment: sdk: ^3.5.4