Updated colors

This commit is contained in:
2025-07-19 18:01:39 +02:00
parent b7f6bf9348
commit a7521a3168
4 changed files with 11 additions and 8 deletions

View File

@@ -4,7 +4,9 @@ class CustomTheme {
static Color white = CupertinoColors.white; static Color white = CupertinoColors.white;
static Color primaryColor = CupertinoColors.systemGreen; static Color primaryColor = CupertinoColors.systemGreen;
static Color backgroundColor = const Color(0xFF101010); 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 // Line Colors for GraphView
static const Color graphColor1 = Color(0xFFF44336); static const Color graphColor1 = Color(0xFFF44336);

View File

@@ -117,7 +117,8 @@ class _RoundViewState extends State<RoundView> {
child: SizedBox( child: SizedBox(
height: 60, height: 60,
child: CupertinoSegmentedControl<int>( child: CupertinoSegmentedControl<int>(
unselectedColor: CustomTheme.backgroundTintColor, unselectedColor:
CustomTheme.mainElementbackgroundColor,
selectedColor: CustomTheme.primaryColor, selectedColor: CustomTheme.primaryColor,
groupValue: _caboPlayerIndex, groupValue: _caboPlayerIndex,
children: Map.fromEntries(widget.gameSession.players children: Map.fromEntries(widget.gameSession.players
@@ -170,7 +171,7 @@ class _RoundViewState extends State<RoundView> {
child: ClipRRect( child: ClipRRect(
borderRadius: BorderRadius.circular(12), borderRadius: BorderRadius.circular(12),
child: CupertinoListTile( child: CupertinoListTile(
backgroundColor: CupertinoColors.secondaryLabel, backgroundColor: CustomTheme.playerTileColor,
title: Row(children: [ title: Row(children: [
Expanded( Expanded(
child: Row(children: [ child: Row(children: [
@@ -229,8 +230,8 @@ class _RoundViewState extends State<RoundView> {
heightFactor: 1, heightFactor: 1,
child: CupertinoButton( child: CupertinoButton(
sizeStyle: CupertinoButtonSize.medium, sizeStyle: CupertinoButtonSize.medium,
borderRadius: BorderRadius.circular(15), borderRadius: BorderRadius.circular(12),
color: const Color(0xFF202020), color: CustomTheme.buttonBackgroundColor,
onPressed: () async { onPressed: () async {
if (await _showKamikazeSheet(context)) { if (await _showKamikazeSheet(context)) {
if (!context.mounted) return; if (!context.mounted) return;
@@ -260,7 +261,7 @@ class _RoundViewState extends State<RoundView> {
return Container( return Container(
height: 80, height: 80,
padding: const EdgeInsets.only(bottom: 20), padding: const EdgeInsets.only(bottom: 20),
color: CustomTheme.backgroundTintColor, color: CustomTheme.mainElementbackgroundColor,
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly, mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [ children: [

View File

@@ -17,7 +17,7 @@ class _TabViewState extends State<TabView> {
Widget build(BuildContext context) { Widget build(BuildContext context) {
return CupertinoTabScaffold( return CupertinoTabScaffold(
tabBar: CupertinoTabBar( tabBar: CupertinoTabBar(
backgroundColor: CustomTheme.backgroundTintColor, backgroundColor: CustomTheme.mainElementbackgroundColor,
iconSize: 27, iconSize: 27,
height: 55, height: 55,
items: <BottomNavigationBarItem>[ items: <BottomNavigationBarItem>[

View File

@@ -2,7 +2,7 @@ name: cabo_counter
description: "Mobile app for the card game Cabo" description: "Mobile app for the card game Cabo"
publish_to: 'none' publish_to: 'none'
version: 0.4.9+529 version: 0.4.9+533
environment: environment:
sdk: ^3.5.4 sdk: ^3.5.4