mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-21 23:10:40 +00:00
adjusted timer timeline colors
This commit is contained in:
parent
6abb720b92
commit
c98e384109
3 changed files with 6 additions and 12 deletions
|
@ -16,11 +16,7 @@ class TimerTimeline extends StatelessWidget {
|
|||
Widget build(BuildContext context) {
|
||||
return CustomPaint(
|
||||
painter: _TimelinePainter(
|
||||
backgroundColor: ElevationOverlay.applySurfaceTint(
|
||||
Theme.of(context).cardTheme.color!,
|
||||
Theme.of(context).cardTheme.surfaceTintColor,
|
||||
Theme.of(context).cardTheme.elevation!,
|
||||
),
|
||||
backgroundColor: Theme.of(context).colorScheme.surface,
|
||||
progressColor: Theme.of(context).colorScheme.primary,
|
||||
progress: progress,
|
||||
),
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 785 KiB After Width: | Height: | Size: 775 KiB |
|
@ -97,14 +97,12 @@ void main() {
|
|||
if (scenarioWidgetKey.toString().contains('Dark')) {
|
||||
await setTheme(tester, scenarioWidgetKey, ThemeType.dark);
|
||||
}
|
||||
await toggleTimer(tester, scenarioWidgetKey);
|
||||
late final skipTimerDuration = Duration(
|
||||
milliseconds: (scenario.shutterSpeedValue.value * 0.35 * Duration.millisecondsPerSecond).toInt(),
|
||||
);
|
||||
await tester.pump(skipTimerDuration);
|
||||
if (scenario.isStopped) {
|
||||
if (!scenario.isStopped) {
|
||||
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);
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue