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.LazyColumn
|
||||||
import androidx.glance.appwidget.lazy.items
|
import androidx.glance.appwidget.lazy.items
|
||||||
import androidx.glance.appwidget.provideContent
|
import androidx.glance.appwidget.provideContent
|
||||||
|
import androidx.glance.ImageProvider
|
||||||
import androidx.glance.background
|
import androidx.glance.background
|
||||||
import androidx.glance.color.DynamicThemeColorProviders
|
import androidx.glance.color.DynamicThemeColorProviders
|
||||||
import androidx.glance.layout.Alignment
|
import androidx.glance.layout.Alignment
|
||||||
|
|
@ -63,6 +64,7 @@ class AgendaWidget : GlanceAppWidget() {
|
||||||
Scaffold(
|
Scaffold(
|
||||||
titleBar = {
|
titleBar = {
|
||||||
TitleBar(
|
TitleBar(
|
||||||
|
startIcon = ImageProvider(android.R.drawable.ic_menu_my_calendar),
|
||||||
title = "Agenda",
|
title = "Agenda",
|
||||||
textColor = GlanceTheme.colors.onSurface,
|
textColor = GlanceTheme.colors.onSurface,
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
<resources>
|
<resources>
|
||||||
<style name="Theme.NovaShellForAndroid" parent="Theme.Material3.DynamicColors.DayNight" />
|
<style name="Theme.NovaShellForAndroid" parent="android:Theme.Material.NoActionBar" />
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,3 @@
|
||||||
<resources>
|
<resources>
|
||||||
<style name="Theme.NovaShellForAndroid" parent="Theme.Material3.DynamicColors.DayNight">
|
<style name="Theme.NovaShellForAndroid" parent="android:Theme.Material.Light.NoActionBar" />
|
||||||
<item name="android:windowTranslucentStatus">false</item>
|
|
||||||
<item name="android:windowTranslucentNavigation">false</item>
|
|
||||||
</style>
|
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue