From d82206319a69e3cd19a44499a16375394ffc37be Mon Sep 17 00:00:00 2001 From: Felix Kirchner Date: Sun, 24 May 2026 17:04:14 +0200 Subject: [PATCH] Renamed GameColor -> AppColor --- lib/core/common.dart | 2 +- .../main_menu/match_view/create_match/create_game_view.dart | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/core/common.dart b/lib/core/common.dart index 6f1db7f..31d039a 100644 --- a/lib/core/common.dart +++ b/lib/core/common.dart @@ -25,7 +25,7 @@ String translateRulesetToString(Ruleset ruleset, BuildContext context) { } /// Translates a [AppColor] enum value to its corresponding localized string. -String translateGameColorToString(AppColor color, BuildContext context) { +String translateAppColorToString(AppColor color, BuildContext context) { final loc = AppLocalizations.of(context); switch (color) { case AppColor.red: diff --git a/lib/presentation/views/main_menu/match_view/create_match/create_game_view.dart b/lib/presentation/views/main_menu/match_view/create_match/create_game_view.dart index 29dc7d1..06f15db 100644 --- a/lib/presentation/views/main_menu/match_view/create_match/create_game_view.dart +++ b/lib/presentation/views/main_menu/match_view/create_match/create_game_view.dart @@ -90,7 +90,7 @@ class _CreateGameViewState extends State { AppColor.values.length, (index) => ( AppColor.values[index], - translateGameColorToString(AppColor.values[index], context), + translateAppColorToString(AppColor.values[index], context), ), ); @@ -507,7 +507,7 @@ class _CreateGameViewState extends State { ), Padding( padding: const EdgeInsets.only(right: 5), - child: Text(translateGameColorToString(selectedColor!, context)), + child: Text(translateAppColorToString(selectedColor!, context)), ), Transform.rotate( angle: pi / 2,