Backport splash screen to API 26 (#2747)

This commit is contained in:
Phil Oliver 2025-08-15 21:33:30 -04:00 committed by GitHub
parent e9a03e5658
commit 69841ebd59
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 86 additions and 4 deletions

View file

@ -16,4 +16,5 @@
-->
<resources>
<color name="ic_launcher_background">#67ea94</color>
<color name="ic_splash">#000000</color>
</resources>

View file

@ -15,8 +15,20 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<resources>
<resources xmlns:tools="http://schemas.android.com/tools">
<style name="AppTheme" parent="Theme.Material3.DynamicColors.DayNight.NoActionBar"/>
<!-- Shim in the system UI overrides -->
<style name="SplashTheme.NightAdjusted" parent="Theme.SplashScreen">
<item name="android:windowLightStatusBar">true</item>
<item name="android:windowLightNavigationBar" tools:targetApi="27">true</item>
<item name="windowSplashScreenBackground">#FFFFFF</item>
</style>
<style name="SplashTheme" parent="SplashTheme.NightAdjusted">
<item name="windowSplashScreenAnimatedIcon">@drawable/ic_splash</item>
<item name="postSplashScreenTheme">@style/AppTheme</item>
</style>
<style name="AppTheme" parent="Theme.Material3.DynamicColors.DayNight.NoActionBar" />
</resources>