Skip to content

Commit 53ec163

Browse files
authored
🎨 App icon updates (#21)
* app: AndroidManifest: Remove uneeded roundIcon attribute * app: Switch to adaptive launcher icon * app: Add monochrome icon support
1 parent 79fdbf3 commit 53ec163

File tree

5 files changed

+54
-2
lines changed

5 files changed

+54
-2
lines changed

app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,9 @@
3030

3131
<application
3232
android:name=".App"
33-
android:icon="@drawable/icon"
33+
android:icon="@mipmap/ic_launcher"
3434
android:label="@string/app_name"
3535
android:localeConfig="@xml/locales_config"
36-
android:roundIcon="@drawable/icon"
3736
android:supportsRtl="true"
3837
android:theme="@style/Theme.SiYuan"
3938
android:usesCleartextTraffic="true"
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
2+
android:width="108dp"
3+
android:height="108dp"
4+
android:viewportWidth="28.575"
5+
android:viewportHeight="28.575">
6+
<path
7+
android:pathData="M7.673,12.333 L11.431,8.575v7.667l-3.758,3.758z"
8+
android:strokeWidth="0.013927"
9+
android:fillColor="#d23f31"/>
10+
<path
11+
android:pathData="M11.431,8.575 L14.288,11.431v7.667l-2.856,-2.856z"
12+
android:strokeWidth="0.013927"
13+
android:fillColor="#3b3e43"/>
14+
<path
15+
android:pathData="M14.288,11.431 L17.144,8.575V16.242L14.288,19.098Z"
16+
android:strokeWidth="0.013927"
17+
android:fillColor="#d23f31"/>
18+
<path
19+
android:pathData="m17.144,8.575 l3.758,3.758v7.667l-3.758,-3.758z"
20+
android:strokeWidth="0.013927"
21+
android:fillColor="#3b3e43"/>
22+
</vector>
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
2+
android:width="108dp"
3+
android:height="108dp"
4+
android:viewportWidth="28.575"
5+
android:viewportHeight="28.575">
6+
<path
7+
android:pathData="M7.673,12.333 L11.431,8.575v7.667l-3.758,3.758z"
8+
android:strokeWidth="0.013927"
9+
android:fillColor="#d23f31"
10+
android:fillAlpha="0.503482"/>
11+
<path
12+
android:pathData="M11.431,8.575 L14.288,11.431v7.667l-2.856,-2.856z"
13+
android:strokeWidth="0.013927"
14+
android:fillColor="#3b3e43"/>
15+
<path
16+
android:pathData="M14.288,11.431 L17.144,8.575V16.242L14.288,19.098Z"
17+
android:strokeWidth="0.013927"
18+
android:fillColor="#d23f31"
19+
android:fillAlpha="0.5"/>
20+
<path
21+
android:pathData="m17.144,8.575 l3.758,3.758v7.667l-3.758,-3.758z"
22+
android:strokeWidth="0.013927"
23+
android:fillColor="#3b3e43"/>
24+
</vector>
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+
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
3+
<background android:drawable="@color/ic_launcher_background" />
4+
<foreground android:drawable="@drawable/launcher_foreground" />
5+
<monochrome android:drawable="@drawable/launcher_monochrome" />
6+
</adaptive-icon>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@
88
<color name="black">#FF000000</color>
99
<color name="white">#FFFFFFFF</color>
1010
<color name="dark">#1e1e1e</color>
11+
<color name="ic_launcher_background">#FFFFFF</color>
1112
</resources>

0 commit comments

Comments
 (0)