Skip to content

Commit 4d34435

Browse files
authored
Update GlanceSnippets.kt (#249)
* Update GlanceSnippets.kt * Apply Spotless * Update GlanceSnippets.kt --------- Co-authored-by: secondsun <[email protected]>
1 parent 4572c61 commit 4d34435

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

compose/snippets/src/main/java/com/example/compose/snippets/glance/GlanceSnippets.kt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,14 +149,17 @@ private object CreateUI {
149149

150150
provideContent {
151151
// create your AppWidget here
152-
MyContent()
152+
GlanceTheme {
153+
MyContent()
154+
}
153155
}
154156
}
155157

156158
@Composable
157159
private fun MyContent() {
158160
Column(
159-
modifier = GlanceModifier.fillMaxSize(),
161+
modifier = GlanceModifier.fillMaxSize()
162+
.background(GlanceTheme.colors.background),
160163
verticalAlignment = Alignment.Top,
161164
horizontalAlignment = Alignment.CenterHorizontally
162165
) {

0 commit comments

Comments
 (0)