Details ausgearbeitet

Linked colors to options menu

Options extension

Aussehen aufgebohrt:
 - erlaubt text von status zu ändern,
 - bessere beschriftung von Farben

desing änderung und bedienung

- heute status felder anklickbar,
- Farbpalette verdunkelt und kontrast reduziert
- Kalender Tage anklickbar gemacht
- Optionen überarbeitet
This commit is contained in:
2026-03-22 20:37:35 +01:00
parent 8615d1de07
commit 2b0797f50f
68 changed files with 1746 additions and 1351 deletions
+23
View File
@@ -0,0 +1,23 @@
using Microsoft.Maui.Controls;
using Microsoft.Maui.Graphics;
namespace cfs_tracker.Helpers;
public static class ThemeResourceHelper
{
public static Color GetColor(string key, string fallbackHex = "#FFFFFF")
{
if (Application.Current?.Resources.TryGetValue(key, out var value) == true && value is Color color)
return color;
return Color.FromArgb(fallbackHex);
}
public static string GetString(string key, string fallback = "")
{
if (Application.Current?.Resources.TryGetValue(key, out var value) == true && value is string text)
return text;
return fallback;
}
}