adjusted timer timeline colors

This commit is contained in:
Vadim 2024-05-03 13:42:54 +02:00
parent 6abb720b92
commit c98e384109
3 changed files with 6 additions and 12 deletions

View file

@ -16,11 +16,7 @@ class TimerTimeline extends StatelessWidget {
Widget build(BuildContext context) { Widget build(BuildContext context) {
return CustomPaint( return CustomPaint(
painter: _TimelinePainter( painter: _TimelinePainter(
backgroundColor: ElevationOverlay.applySurfaceTint( backgroundColor: Theme.of(context).colorScheme.surface,
Theme.of(context).cardTheme.color!,
Theme.of(context).cardTheme.surfaceTintColor,
Theme.of(context).cardTheme.elevation!,
),
progressColor: Theme.of(context).colorScheme.primary, progressColor: Theme.of(context).colorScheme.primary,
progress: progress, progress: progress,
), ),

Binary file not shown.

Before

Width:  |  Height:  |  Size: 785 KiB

After

Width:  |  Height:  |  Size: 775 KiB

View file

@ -97,14 +97,12 @@ void main() {
if (scenarioWidgetKey.toString().contains('Dark')) { if (scenarioWidgetKey.toString().contains('Dark')) {
await setTheme(tester, scenarioWidgetKey, ThemeType.dark); await setTheme(tester, scenarioWidgetKey, ThemeType.dark);
} }
await toggleTimer(tester, scenarioWidgetKey); if (!scenario.isStopped) {
late final skipTimerDuration = Duration(
milliseconds: (scenario.shutterSpeedValue.value * 0.35 * Duration.millisecondsPerSecond).toInt(),
);
await tester.pump(skipTimerDuration);
if (scenario.isStopped) {
await toggleTimer(tester, scenarioWidgetKey); await toggleTimer(tester, scenarioWidgetKey);
} else { late final skipTimerDuration = Duration(
milliseconds: (scenario.shutterSpeedValue.value * 0.35 * Duration.millisecondsPerSecond).toInt(),
);
await tester.pump(skipTimerDuration);
await mockResumedState(tester, scenarioWidgetKey); await mockResumedState(tester, scenarioWidgetKey);
} }
}, },