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:
8
app/src/main/res/values-night/themes.xml
Normal file
8
app/src/main/res/values-night/themes.xml
Normal 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>
|
||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user