Skip to content

Commit

Permalink
fix: splash animation in dark mode (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruattd authored Feb 5, 2024
1 parent a91f2de commit 8483cd5
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
20 changes: 20 additions & 0 deletions TMessagesProj/src/main/res/values-night-v31/styles.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>

<style name="Theme.TMessages.Start" parent="@android:style/Theme.Material">
<item name="android:windowActionBar">false</item>
<item name="android:windowNoTitle">true</item>
<item name="android:actionBarStyle">@style/ActionBar.Transparent.TMessages.Start</item>
<item name="android:colorBackground">#1f2732</item>
<item name="android:windowBackground">#1f2732</item>
<item name="android:windowContentOverlay">@null</item>
<item name="android:colorPrimaryDark">#1c242e</item>
<item name="android:colorPrimary">#232d3a</item>
<item name="android:navigationBarColor">#000000</item>
<item name="android:forceDarkAllowed">false</item>
<!-- <item name="android:windowSplashScreenAnimatedIcon">@mipmap/ic_launcher</item>-->
<item name="android:windowSplashScreenAnimationDuration">@integer/splash_screen_duration</item>
<item name="android:windowSplashScreenBackground">?android:windowBackground</item>
<item name="android:windowSplashScreenAnimatedIcon">@drawable/ic_nagram_animated</item>
</style>
</resources>
4 changes: 0 additions & 4 deletions TMessagesProj/src/main/res/values-night/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@
<item name="android:colorPrimaryDark">#1c242e</item>
<item name="android:colorPrimary">#232d3a</item>
<item name="android:navigationBarColor">#000000</item>
<item name="android:forceDarkAllowed">false</item>
<!-- <item name="android:windowSplashScreenAnimatedIcon">@mipmap/ic_launcher</item>-->
<item name="android:windowSplashScreenAnimationDuration">@integer/splash_screen_duration</item>
<item name="android:windowSplashScreenBackground">?android:windowBackground</item>
</style>

<style name="ActionBar.Transparent.TMessages.Start" parent="android:style/Widget.Material.Light.ActionBar">
Expand Down

0 comments on commit 8483cd5

Please sign in to comment.