Drop deprecated edge-to-edge theme attributes (#123)

statusBarColor and navigationBarColor are what Play Console flags, and
enableEdgeToEdge() already does the same at runtime.

windowLightStatusBar was hardcoded true on a DayNight theme, so the
launch window got dark status-bar icons on a dark backdrop until Compose
took over. Split it into a values-night variant.
This commit is contained in:
2026-08-08 19:49:43 +02:00
parent 007e8ab8f6
commit 4d72564071
2 changed files with 8 additions and 2 deletions

View File

@@ -0,0 +1,8 @@
<resources>
<!-- Dark backdrop needs light status-bar icons; the base theme's `true` is
only right for the light window background. -->
<style name="Theme.Calendula" parent="Theme.AppCompat.DayNight.NoActionBar">
<item name="android:windowBackground">@color/window_background</item>
<item name="android:windowLightStatusBar">false</item>
</style>
</resources>

View File

@@ -5,8 +5,6 @@
Compose theme; this is essentially the launch/backdrop theme. --> Compose theme; this is essentially the launch/backdrop theme. -->
<style name="Theme.Calendula" parent="Theme.AppCompat.DayNight.NoActionBar"> <style name="Theme.Calendula" parent="Theme.AppCompat.DayNight.NoActionBar">
<item name="android:windowBackground">@color/window_background</item> <item name="android:windowBackground">@color/window_background</item>
<item name="android:statusBarColor">@android:color/transparent</item>
<item name="android:navigationBarColor">@android:color/transparent</item>
<item name="android:windowLightStatusBar">true</item> <item name="android:windowLightStatusBar">true</item>
</style> </style>
</resources> </resources>