Skip to content

A cross platform Audiobookshelf client for Android and iOS

Dart

Fix light mode progress time labels readability on absorbing card

Barnabas10ef699da29f
diff --git a/lib/widgets/absorbing_card.dart b/lib/widgets/absorbing_card.dart
index 8b863a06..559ef59b 100644
--- a/lib/widgets/absorbing_card.dart
+++ b/lib/widgets/absorbing_card.dart
@@ -554,7 +554,7 @@ class AbsorbingCardState extends State<AbsorbingCard> with AutomaticKeepAliveCli
final elapsed = pos / speed;
final remaining = (_effectiveDuration - pos) / speed;
final timeStyle = tt.labelSmall?.copyWith(
- color: isDark ? Colors.white.withValues(alpha: 0.55) : Colors.black.withValues(alpha: 0.45),
+ color: isDark ? Colors.white.withValues(alpha: 0.55) : cs.onSurface,
fontWeight: FontWeight.w500, fontSize: compact ? 10 : 11,
fontFeatures: const [FontFeature.tabularFigures()],
shadows: [Shadow(color: isDark ? Colors.black.withValues(alpha: 0.6) : Colors.white.withValues(alpha: 0.6), blurRadius: 4)],