fix(legacy): replace hardcoded colors for dark mode contrast
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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)),
|
||||
|
||||
@@ -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)),
|
||||
|
||||
Reference in New Issue
Block a user