fix(legacy): replace hardcoded colors for dark mode contrast

This commit is contained in:
2026-04-26 08:25:41 +02:00
parent e0e7815ad8
commit 836aea707a
3 changed files with 4 additions and 4 deletions

View File

@@ -215,7 +215,7 @@ class _FilterBar extends StatelessWidget {
? FontWeight.w600
: FontWeight.w500,
color: isSelected
? Colors.black87
? Theme.of(context).colorScheme.onSurface
: Theme.of(context)
.colorScheme
.onSurfaceVariant,
@@ -324,7 +324,7 @@ class _CallTile extends StatelessWidget {
fontSize: 15,
fontWeight: FontWeight.w500,
color: isAccepted
? Colors.black87
? Theme.of(context).colorScheme.onSurface
: Theme.of(context).colorScheme.error,
),
maxLines: 1,

View File

@@ -75,7 +75,7 @@ class _CallWatchDialogState extends ConsumerState<CallWatchDialog> {
textAlign: TextAlign.center,
style: TextStyle(
fontSize: SizeUtils.getByScreen(small: 13, big: 12),
color: Colors.black54,
color: Theme.of(context).colorScheme.onSurfaceVariant,
),
),
SizedBox(height: SizeUtils.getByScreen(small: 12, big: 10)),

View File

@@ -102,7 +102,7 @@ class _SpyCallDialogState extends ConsumerState<SpyCallDialog> {
textAlign: TextAlign.center,
style: TextStyle(
fontSize: SizeUtils.getByScreen(small: 13, big: 12),
color: Colors.black54,
color: Theme.of(context).colorScheme.onSurfaceVariant,
),
),
SizedBox(height: SizeUtils.getByScreen(small: 12, big: 10)),