Fix splash screen themes for API < 31

This commit is contained in:
Oscar Mira 2025-04-14 01:15:18 +02:00
parent 2dae3cccea
commit bdffe24fdb
No known key found for this signature in database
GPG key ID: B371B98C5DC32237
5 changed files with 11 additions and 15 deletions

View file

@ -1,7 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Theme.Molly.Starting" parent="Theme.SplashScreen">
<item name="windowSplashScreenBackground">@color/core_ultramarine_icon_dark</item>
<item name="windowSplashScreenAnimatedIcon">@drawable/ic_splash_animated_dark</item>
</style>
</resources>

View file

@ -16,4 +16,5 @@
<style name="Theme.Molly.Dynamic.NoActionBar" parent="Theme.Molly.Dynamic.NoActionBar.Dark" />
<style name="Theme.Molly.Dynamic.Registration" parent="Theme.Molly.Dynamic.Registration.Dark" />
<style name="Theme.Molly.Dynamic.ConversationSettings" parent="Theme.Molly.Dynamic.ConversationSettings.Dark" />
<style name="Theme.Molly.Starting" parent="Theme.Molly.Starting.Dark" />
</resources>

View file

@ -1,17 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Theme.Molly.Starting" parent="Theme.SplashScreen">
<item name="windowSplashScreenBackground">@color/core_ultramarine_icon</item>
<item name="windowSplashScreenAnimatedIcon">@drawable/ic_splash_animated</item>
</style>
<!-- Exists for manual override of Splash theme when setting app theme-->
<style name="Theme.Molly.Starting.Light" parent="Theme.SplashScreen">
<item name="windowSplashScreenBackground">@color/core_ultramarine_icon</item>
<item name="windowSplashScreenAnimatedIcon">@drawable/ic_splash_animated</item>
</style>
<!-- Exists for manual override of Splash theme when setting app theme-->
<style name="Theme.Molly.Starting.Dark" parent="Theme.SplashScreen">
<item name="windowSplashScreenBackground">@color/core_ultramarine_icon_dark</item>
<item name="windowSplashScreenAnimatedIcon">@drawable/ic_splash_animated_dark</item>

View file

@ -16,4 +16,5 @@
<style name="Theme.Molly.Dynamic.NoActionBar" parent="Theme.Molly.Dynamic.NoActionBar.Light" />
<style name="Theme.Molly.Dynamic.Registration" parent="Theme.Molly.Dynamic.Registration.Light" />
<style name="Theme.Molly.Dynamic.ConversationSettings" parent="Theme.Molly.Dynamic.ConversationSettings.Light" />
<style name="Theme.Molly.Starting" parent="Theme.Molly.Starting.Light" />
</resources>

View file

@ -15,7 +15,15 @@
<!-- MOLLY: Theme.Signal.DayNight.NoActionBar now in light_themes.xml -->
<style name="Theme.Molly.Starting" parent="Theme.SplashScreen" />
<style name="Theme.Molly.Starting.Light" parent="Theme.SplashScreen">
<item name="windowSplashScreenBackground">@color/core_ultramarine_icon</item>
<item name="windowSplashScreenAnimatedIcon">@drawable/ic_launcher_foreground</item>
</style>
<style name="Theme.Molly.Starting.Dark" parent="Theme.SplashScreen">
<item name="windowSplashScreenBackground">@color/core_ultramarine_icon_dark</item>
<item name="windowSplashScreenAnimatedIcon">@drawable/ic_launcher_foreground</item>
</style>
<style name="TextSecure.LightNoActionBar" parent="@style/TextSecure.BaseLightNoActionBar">
<!-- leave empty to allow overriding -->