Modern Apps git

← Modern-Apps.git

launcher: render widget picker preview full-screen

Commit
a61f94f50fe66499a6c2c9547697707bf87b220c
Author
vayun-mathur <[email protected]>
When
2026-10-25 19:11 UTC (1 month ago)
Parents
d361bb4

Diff

launcher/src/screenshotTest/kotlin/com/vayunmathur/launcher/ui/MetadataPreviews.kt
diff --git a/launcher/src/screenshotTest/kotlin/com/vayunmathur/launcher/ui/MetadataPreviews.kt b/launcher/src/screenshotTest/kotlin/com/vayunmathur/launcher/ui/MetadataPreviews.ktindex e58545b1f8..6d6be6b145 100644--- a/launcher/src/screenshotTest/kotlin/com/vayunmathur/launcher/ui/MetadataPreviews.kt+++ b/launcher/src/screenshotTest/kotlin/com/vayunmathur/launcher/ui/MetadataPreviews.kt@@ -1,8 +1,10 @@ package com.vayunmathur.launcher.ui  import android.content.ComponentName+import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.runtime.Composable import androidx.compose.runtime.CompositionLocalProvider+import androidx.compose.ui.Modifier import androidx.compose.ui.tooling.preview.Preview import com.android.tools.screenshot.PreviewTest import com.vayunmathur.launcher.domain.CellRect@@ -113,7 +115,9 @@ class MetadataPreviews {     @Composable     fun Preview4Widgets() {         DynamicTheme(darkTheme = true) {-            Surface {+            // fillMaxSize: without it Layoutlib sizes the shot to the content+            // (a 1293px-tall crop) instead of the full phone screen.+            Surface(Modifier.fillMaxSize()) {                 WidgetPickerContent(                     state = WidgetPickerUiState(                         groups = listOf(
metadata_data/photos/launcher/phone/4.png
diff --git a/metadata_data/photos/launcher/phone/4.png b/metadata_data/photos/launcher/phone/4.pngindex cace7ad8f2..5331828ccb 100644Binary files a/metadata_data/photos/launcher/phone/4.png and b/metadata_data/photos/launcher/phone/4.png differ