Renamed GameColor -> AppColor

This commit is contained in:
2026-05-24 17:04:14 +02:00
parent 5a2cc790dd
commit d82206319a
2 changed files with 3 additions and 3 deletions

View File

@@ -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:

View File

@@ -90,7 +90,7 @@ class _CreateGameViewState extends State<CreateGameView> {
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<CreateGameView> {
),
Padding(
padding: const EdgeInsets.only(right: 5),
child: Text(translateGameColorToString(selectedColor!, context)),
child: Text(translateAppColorToString(selectedColor!, context)),
),
Transform.rotate(
angle: pi / 2,