diff --git a/app/src/debug/java/eu/darken/capod/screenshots/ScreenshotContent.kt b/app/src/debug/java/eu/darken/capod/screenshots/ScreenshotContent.kt index 21665a6c..91c44049 100644 --- a/app/src/debug/java/eu/darken/capod/screenshots/ScreenshotContent.kt +++ b/app/src/debug/java/eu/darken/capod/screenshots/ScreenshotContent.kt @@ -21,6 +21,7 @@ import eu.darken.capod.common.compose.preview.MockPodDataProvider import eu.darken.capod.common.theming.CapodTheme import eu.darken.capod.main.ui.overview.OverviewScreen import eu.darken.capod.main.ui.overview.OverviewViewModel +import eu.darken.capod.monitor.core.battery.BatteryEstimate import androidx.compose.ui.platform.LocalContext import eu.darken.capod.main.ui.widget.ComposeWidgetPreview import eu.darken.capod.main.ui.widget.WidgetConfigurationScreen @@ -54,6 +55,29 @@ internal fun DashboardContent(showAap: Boolean = false) = PreviewWrapper { MockPodDataProvider.unknownMonitored(), ) } + // Plausible estimates for the mock battery levels: runtime under each gauge, charge ETA in + // the charging chip of whichever mock pod is charging. + val estimates = if (showAap) { + mapOf( + "preview-dual-aap" to BatteryEstimate( + left = BatteryEstimate.Pod(285, 0.17f, BatteryEstimate.Source.LIVE), + right = BatteryEstimate.Pod(160, 0.17f, BatteryEstimate.Source.LIVE), + ), + "preview-single-aap" to BatteryEstimate( + headset = BatteryEstimate.Pod(480, 0.05f, BatteryEstimate.Source.LIVE, minutesUntilCharged = 45), + ), + ) + } else { + mapOf( + "preview-dual-mixed" to BatteryEstimate( + left = BatteryEstimate.Pod(285, 0.17f, BatteryEstimate.Source.LIVE, minutesUntilCharged = 20), + right = BatteryEstimate.Pod(160, 0.17f, BatteryEstimate.Source.LIVE), + ), + "preview-single" to BatteryEstimate( + headset = BatteryEstimate.Pod(1020, 0.05f, BatteryEstimate.Source.LIVE), + ), + ) + } OverviewScreen( state = OverviewViewModel.State( now = MOCK_NOW, @@ -67,6 +91,7 @@ internal fun DashboardContent(showAap: Boolean = false) = PreviewWrapper { ), upgradeInfo = MockPodDataProvider.gplayInfo(isPro = true), showUnmatchedDevices = false, + batteryEstimates = estimates, ), onRequestPermission = {}, onBluetoothSettings = {}, diff --git a/fastlane/metadata/android/ar/images/phoneScreenshots/1_dashboard_light.png b/fastlane/metadata/android/ar/images/phoneScreenshots/1_dashboard_light.png index 767953af..3ba7a993 100644 Binary files a/fastlane/metadata/android/ar/images/phoneScreenshots/1_dashboard_light.png and b/fastlane/metadata/android/ar/images/phoneScreenshots/1_dashboard_light.png differ diff --git a/fastlane/metadata/android/ar/images/phoneScreenshots/2_dashboard_dark.png b/fastlane/metadata/android/ar/images/phoneScreenshots/2_dashboard_dark.png index 86281e49..f042e869 100644 Binary files a/fastlane/metadata/android/ar/images/phoneScreenshots/2_dashboard_dark.png and b/fastlane/metadata/android/ar/images/phoneScreenshots/2_dashboard_dark.png differ diff --git a/fastlane/metadata/android/de-DE/images/phoneScreenshots/1_dashboard_light.png b/fastlane/metadata/android/de-DE/images/phoneScreenshots/1_dashboard_light.png index d34e9e59..6c36bd3e 100644 Binary files a/fastlane/metadata/android/de-DE/images/phoneScreenshots/1_dashboard_light.png and b/fastlane/metadata/android/de-DE/images/phoneScreenshots/1_dashboard_light.png differ diff --git a/fastlane/metadata/android/de-DE/images/phoneScreenshots/2_dashboard_dark.png b/fastlane/metadata/android/de-DE/images/phoneScreenshots/2_dashboard_dark.png index c4c6dd9f..4f2cab46 100644 Binary files a/fastlane/metadata/android/de-DE/images/phoneScreenshots/2_dashboard_dark.png and b/fastlane/metadata/android/de-DE/images/phoneScreenshots/2_dashboard_dark.png differ diff --git a/fastlane/metadata/android/en-US/images/phoneScreenshots/1_dashboard_light.png b/fastlane/metadata/android/en-US/images/phoneScreenshots/1_dashboard_light.png index e2a683c0..aa6d6110 100644 Binary files a/fastlane/metadata/android/en-US/images/phoneScreenshots/1_dashboard_light.png and b/fastlane/metadata/android/en-US/images/phoneScreenshots/1_dashboard_light.png differ diff --git a/fastlane/metadata/android/en-US/images/phoneScreenshots/2_dashboard_dark.png b/fastlane/metadata/android/en-US/images/phoneScreenshots/2_dashboard_dark.png index ed340991..d2d9b8d9 100644 Binary files a/fastlane/metadata/android/en-US/images/phoneScreenshots/2_dashboard_dark.png and b/fastlane/metadata/android/en-US/images/phoneScreenshots/2_dashboard_dark.png differ diff --git a/fastlane/metadata/android/ja-JP/images/phoneScreenshots/1_dashboard_light.png b/fastlane/metadata/android/ja-JP/images/phoneScreenshots/1_dashboard_light.png index 912219b5..e83512bc 100644 Binary files a/fastlane/metadata/android/ja-JP/images/phoneScreenshots/1_dashboard_light.png and b/fastlane/metadata/android/ja-JP/images/phoneScreenshots/1_dashboard_light.png differ diff --git a/fastlane/metadata/android/ja-JP/images/phoneScreenshots/2_dashboard_dark.png b/fastlane/metadata/android/ja-JP/images/phoneScreenshots/2_dashboard_dark.png index ee870afd..8a753306 100644 Binary files a/fastlane/metadata/android/ja-JP/images/phoneScreenshots/2_dashboard_dark.png and b/fastlane/metadata/android/ja-JP/images/phoneScreenshots/2_dashboard_dark.png differ diff --git a/fastlane/metadata/android/pt-BR/images/phoneScreenshots/1_dashboard_light.png b/fastlane/metadata/android/pt-BR/images/phoneScreenshots/1_dashboard_light.png index 8cc25d96..467ea19e 100644 Binary files a/fastlane/metadata/android/pt-BR/images/phoneScreenshots/1_dashboard_light.png and b/fastlane/metadata/android/pt-BR/images/phoneScreenshots/1_dashboard_light.png differ diff --git a/fastlane/metadata/android/pt-BR/images/phoneScreenshots/2_dashboard_dark.png b/fastlane/metadata/android/pt-BR/images/phoneScreenshots/2_dashboard_dark.png index a2457330..66c7d84c 100644 Binary files a/fastlane/metadata/android/pt-BR/images/phoneScreenshots/2_dashboard_dark.png and b/fastlane/metadata/android/pt-BR/images/phoneScreenshots/2_dashboard_dark.png differ diff --git a/fastlane/metadata/android/zh-CN/images/phoneScreenshots/1_dashboard_light.png b/fastlane/metadata/android/zh-CN/images/phoneScreenshots/1_dashboard_light.png index 750a1f49..efb909ed 100644 Binary files a/fastlane/metadata/android/zh-CN/images/phoneScreenshots/1_dashboard_light.png and b/fastlane/metadata/android/zh-CN/images/phoneScreenshots/1_dashboard_light.png differ diff --git a/fastlane/metadata/android/zh-CN/images/phoneScreenshots/2_dashboard_dark.png b/fastlane/metadata/android/zh-CN/images/phoneScreenshots/2_dashboard_dark.png index 57b62006..3897903f 100644 Binary files a/fastlane/metadata/android/zh-CN/images/phoneScreenshots/2_dashboard_dark.png and b/fastlane/metadata/android/zh-CN/images/phoneScreenshots/2_dashboard_dark.png differ