mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-07-18 00:46:45 +00:00
fix(android): give launch splash a day/night background
The Android 12+ system splash drew the launcher icon on the launch theme's colorBackground, which is white because AppTheme inherits the static Theme.AppCompat.Light.* family (not DayNight). The loading icon therefore showed a white background even in dark mode. Set android:windowSplashScreenBackground to @color/windowBackground, which has a values-night variant (#131314), so the splash tracks system day/night and matches the WebView surface painted by WebHelper.
This commit is contained in:
parent
27f443c4e2
commit
f4e91399b4
1 changed files with 9 additions and 1 deletions
|
|
@ -1,4 +1,4 @@
|
|||
<resources>
|
||||
<resources xmlns:tools="http://schemas.android.com/tools">
|
||||
|
||||
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
|
||||
<!-- Customize your theme here. -->
|
||||
|
|
@ -26,6 +26,14 @@
|
|||
<item name="windowNoTitle">true</item>
|
||||
<item name="android:background">@null</item>
|
||||
<item name="android:navigationBarColor">@color/navigationBar</item>
|
||||
<!--
|
||||
Android 12+ system splash. Without this the OS draws the launcher icon on
|
||||
the theme's colorBackground, which is white here (AppTheme is the static
|
||||
Theme.AppCompat.Light.* family, not DayNight) — so the loading icon shows a
|
||||
white background even in dark mode. @color/windowBackground has a
|
||||
values-night variant (#131314), so the splash tracks system day/night.
|
||||
-->
|
||||
<item name="android:windowSplashScreenBackground" tools:targetApi="31">@color/windowBackground</item>
|
||||
</style>
|
||||
|
||||
</resources>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue