Skip to content

Commit 8f8888b

Browse files
authored
Merge pull request #267 from rainxchzed/splash-and-statusbar
2 parents e40f2bc + d48f6ee commit 8f8888b

4 files changed

Lines changed: 16 additions & 2 deletions

File tree

composeApp/src/androidMain/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
android:networkSecurityConfig="@xml/network_security_config"
2525
android:roundIcon="@mipmap/ic_launcher_round"
2626
android:supportsRtl="true"
27-
android:theme="@android:style/Theme.Material.Light.NoActionBar"
27+
android:theme="@style/Theme.GitHubStore.Splash"
2828
android:usesCleartextTraffic="false"
2929
tools:targetApi="29">
3030

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<inset xmlns:android="http://schemas.android.com/apk/res/android"
3+
android:drawable="@drawable/ic_logo"
4+
android:inset="48dp"
5+
/>

composeApp/src/androidMain/res/values/ic_launcher_background.xml renamed to composeApp/src/androidMain/res/values/colors.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<resources>
3-
<color name="ic_launcher_background">#FFFFFF</color>
3+
<color name="ic_launcher_background">#101010</color>
44
</resources>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
4+
<style name="Theme.GitHubStore.Splash" parent="Theme.SplashScreen">
5+
<item name="windowSplashScreenAnimatedIcon">@drawable/ic_splash</item>
6+
<item name="windowSplashScreenBackground">@color/ic_launcher_background</item>
7+
<item name="postSplashScreenTheme">@style/Theme.AppCompat.DayNight.NoActionBar</item>
8+
</style>
9+
</resources>

0 commit comments

Comments
 (0)