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,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
<resources>
|
||||
<style name="Theme.NovaShellForAndroid" parent="Theme.Material3.DynamicColors.DayNight" />
|
||||
<style name="Theme.NovaShellForAndroid" parent="android:Theme.Material.NoActionBar" />
|
||||
</resources>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,3 @@
|
|||
<resources>
|
||||
<style name="Theme.NovaShellForAndroid" parent="Theme.Material3.DynamicColors.DayNight">
|
||||
<item name="android:windowTranslucentStatus">false</item>
|
||||
<item name="android:windowTranslucentNavigation">false</item>
|
||||
</style>
|
||||
<style name="Theme.NovaShellForAndroid" parent="android:Theme.Material.Light.NoActionBar" />
|
||||
</resources>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue