fix theme parent to platform built-in, add required startIcon to TitleBar
This commit is contained in:
parent
e912f286a9
commit
ca67729f43
3 changed files with 4 additions and 5 deletions
|
|
@ -20,6 +20,7 @@ import androidx.glance.appwidget.cornerRadius
|
|||
import androidx.glance.appwidget.lazy.LazyColumn
|
||||
import androidx.glance.appwidget.lazy.items
|
||||
import androidx.glance.appwidget.provideContent
|
||||
import androidx.glance.ImageProvider
|
||||
import androidx.glance.background
|
||||
import androidx.glance.color.DynamicThemeColorProviders
|
||||
import androidx.glance.layout.Alignment
|
||||
|
|
@ -63,6 +64,7 @@ class AgendaWidget : GlanceAppWidget() {
|
|||
Scaffold(
|
||||
titleBar = {
|
||||
TitleBar(
|
||||
startIcon = ImageProvider(android.R.drawable.ic_menu_my_calendar),
|
||||
title = "Agenda",
|
||||
textColor = GlanceTheme.colors.onSurface,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue