From 659510063684a4c8973a036cd9a34f011b875b03 Mon Sep 17 00:00:00 2001
From: Feichtmeier <frederik.feichtmeier@gmail.com>
Date: Tue, 7 May 2024 20:59:37 +0200
Subject: [PATCH] Better dark cards

---
 lib/src/theme.dart | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/lib/src/theme.dart b/lib/src/theme.dart
index a58f4fa..f361f40 100644
--- a/lib/src/theme.dart
+++ b/lib/src/theme.dart
@@ -52,6 +52,11 @@ ThemePair phoenixTheme({
       navigationRailTheme: _naviRailTheme(darkScheme),
       navigationBarTheme: _naviBarTheme(darkScheme),
       appBarTheme: _appBarTheme(darkScheme),
+      cardTheme: CardTheme(
+        color: darkScheme.surface.scale(
+          lightness: 0.03,
+        ),
+      ),
     )
   );
 }
@@ -211,7 +216,7 @@ Color _getSwitchThumbColor(Set<MaterialState> states, ColorScheme colorScheme) {
 }
 
 Color _getSwitchTrackColor(Set<MaterialState> states, ColorScheme colorScheme) {
-  final uncheckedColor = colorScheme.primary.withOpacity(.25);
+  final uncheckedColor = colorScheme.onSurface.withOpacity(.25);
   final disabledUncheckedColor = colorScheme.onSurface.withOpacity(.15);
   final disabledCheckedColor = colorScheme.onSurface.withOpacity(.18);