Skip to content

Commit b54b439

Browse files
committed
feat: add splashscreen icon
1 parent 5b6c4c5 commit b54b439

File tree

6 files changed

+45
-3
lines changed

6 files changed

+45
-3
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
2+
android:width="108dp"
3+
android:height="108dp"
4+
android:viewportWidth="108"
5+
android:viewportHeight="108">
6+
<group android:scaleX="0.72"
7+
android:scaleY="0.72"
8+
android:translateX="15.12"
9+
android:translateY="15.12">
10+
<path
11+
android:pathData="M40.536,60.506L53.574,69.954L41.656,77.112C39.473,78.429 36.803,76.482 37.377,74.02L40.536,60.506Z"
12+
android:strokeAlpha="0.25"
13+
android:fillColor="@color/splashscreenIconColor"
14+
android:fillAlpha="0.5"/>
15+
<path
16+
android:pathData="M77.101,51.693L66.561,60.798L45.453,45.48L50.881,32.739C51.857,30.42 55.189,30.42 56.165,32.739L61.593,45.509L75.464,46.683C77.991,46.883 79.025,50.032 77.101,51.693Z"
17+
android:strokeAlpha="0.5"
18+
android:fillColor="@color/splashscreenIconColor"
19+
android:fillAlpha="0.8"/>
20+
<path
21+
android:pathData="M65.492,77.267L53.574,70.081L40.536,60.633L29.996,51.528C28.072,49.867 29.106,46.718 31.633,46.518L45.504,45.344L66.612,60.661L69.771,74.175C70.346,76.637 67.675,78.584 65.492,77.267Z"
22+
android:strokeAlpha="0.8"
23+
android:fillColor="@color/splashscreenIconColor"
24+
android:fillAlpha="1.0"/>
25+
</group>
26+
</vector>
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+
<resources>
3+
<color name="splashscreenIconColor">@android:color/system_on_surface_dark
4+
</color>
5+
</resources>
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<resources>
2+
<resources xmlns:tools="http://schemas.android.com/tools">
33
<color name="windowBackground">#FF000000</color>
4+
<color name="splashscreenIconColor" tools:targetApi="31">@android:color/system_accent1_50</color>
45
</resources>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
<color name="splashscreenIconColor">
4+
@android:color/system_on_surface_light
5+
</color>
6+
</resources>

app/src/main/res/values/colors.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<resources>
2+
<resources xmlns:tools="http://schemas.android.com/tools">
33
<color name="windowBackground">#FFFFFFFF</color>
4+
<color name="splashscreenIconColor" tools:targetApi="31">@android:color/system_neutral1_900</color>
45
</resources>

app/src/main/res/values/themes.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<resources>
2+
<resources xmlns:tools="http://schemas.android.com/tools">
33

44
<style name="Theme.Reader" parent="android:Theme.Material.Light.NoActionBar">
55
<item name="windowActionModeOverlay">true</item>
@@ -9,5 +9,8 @@
99
<item name="android:windowActionModeOverlay">true</item>
1010
<item name="android:windowContentOverlay">@color/windowBackground</item>
1111
<item name="android:windowBackground">@color/windowBackground</item>
12+
<item name="android:windowSplashScreenAnimatedIcon" tools:targetApi="31">
13+
@drawable/ic_launcher_splash_screen
14+
</item>
1215
</style>
1316
</resources>

0 commit comments

Comments
 (0)