Skip to content

Commit

Permalink
Fix: background color of splash screen doesn't change with theme open…
Browse files Browse the repository at this point in the history
  • Loading branch information
Mann committed Jan 15, 2024
1 parent 212a23c commit 28d1847
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
11 changes: 11 additions & 0 deletions app/src/main/res/drawable/splash_background_dark.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">

<item android:drawable="@color/black" />

<item>
<bitmap android:src="@drawable/mifos_splash_screen_logo"
android:gravity="center"/>
</item>

</layer-list>
8 changes: 8 additions & 0 deletions app/src/main/res/values-night/styles.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<resources>

<style name="AppTheme" parent="Mifos.DesignSystem.Theme.Base" />

<style name="SplashTheme" parent="Mifos.DesignSystem.Theme.Base">
<item name="android:windowBackground">@drawable/splash_background_dark</item>
</style>
</resources>

0 comments on commit 28d1847

Please sign in to comment.