Skip to content

Commit 1f2e31d

Browse files
authored
Add Adaptive Icon (#5687)
* Add Adaptive Icon allows for better theming on android O and above. * remove values-yue-hant
1 parent de95c46 commit 1f2e31d

File tree

3 files changed

+76
-9
lines changed

3 files changed

+76
-9
lines changed
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
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+
<path
7+
android:pathData="M54,60.31m-7.08,0a7.08,7.08 0,1 1,14.15 0a7.08,7.08 0,1 1,-14.15 0"
8+
android:strokeAlpha="0.85"
9+
android:fillColor="#fff"
10+
android:fillAlpha="0.85"/>
11+
<group>
12+
<clip-path
13+
android:pathData="M54,60.31m-21.09,0a21.09,21.09 0,1 1,42.17 0a21.09,21.09 0,1 1,-42.17 0"/>
14+
<path
15+
android:pathData="m53.22,73.05l0,8.35l1.56,0l0,-8.35"
16+
android:fillColor="#fff"/>
17+
<path
18+
android:pathData="m50.96,73.4 l3.04,-5.31 3.04,5.31"
19+
android:fillColor="#fff"/>
20+
</group>
21+
<path
22+
android:pathData="m44.44,68.77l-5.9,5.9l1.1,1.1l5.9,-5.9"
23+
android:fillColor="#fff"/>
24+
<path
25+
android:pathData="m42.59,67.42l5.9,-1.6 -1.6,5.9"
26+
android:fillColor="#fff"/>
27+
<path
28+
android:pathData="m41.26,59.54l-8.35,0l-0,1.56l8.35,0"
29+
android:fillColor="#fff"/>
30+
<path
31+
android:pathData="m40.91,57.27l5.31,3.04 -5.31,3.04"
32+
android:fillColor="#fff"/>
33+
<path
34+
android:pathData="m45.54,50.76l-5.9,-5.9l-1.1,1.1l5.9,5.9"
35+
android:fillColor="#fff"/>
36+
<path
37+
android:pathData="m46.89,48.91l1.6,5.9 -5.9,-1.6"
38+
android:fillColor="#fff"/>
39+
<group>
40+
<clip-path
41+
android:pathData="M54,60.31m14.91,-14.91a21.09,21.09 0,1 0,-29.82 29.82a21.09,21.09 0,1 0,29.82 -29.82"/>
42+
<path
43+
android:pathData="m63.56,68.77l5.9,5.9l-1.1,1.1l-5.9,-5.9"
44+
android:fillColor="#fff"/>
45+
<path
46+
android:pathData="m65.41,67.42 l-5.9,-1.6 1.6,5.9"
47+
android:fillColor="#fff"/>
48+
</group>
49+
<group>
50+
<clip-path
51+
android:pathData="M54,60.31m0,-21.09a21.09,21.09 0,1 0,0 42.17a21.09,21.09 0,1 0,0 -42.17"/>
52+
<path
53+
android:pathData="m66.74,59.54l8.35,0l0,1.56l-8.35,0"
54+
android:fillColor="#fff"/>
55+
<path
56+
android:pathData="m67.09,57.27 l-5.31,3.04 5.31,3.04"
57+
android:fillColor="#fff"/>
58+
</group>
59+
<group>
60+
<clip-path
61+
android:pathData="M54,60.31m-14.91,-14.91a21.09,21.09 0,1 0,29.82 29.82a21.09,21.09 0,1 0,-29.82 -29.82"/>
62+
<path
63+
android:pathData="m62.46,50.76l5.9,-5.9l1.1,1.1l-5.9,5.9"
64+
android:fillColor="#fff"/>
65+
<path
66+
android:pathData="m61.11,48.91 l-1.6,5.9 5.9,-1.6"
67+
android:fillColor="#fff"/>
68+
</group>
69+
<path
70+
android:pathData="m49.8,34.45c0.84,6.2 4.11,9.61 7.32,11.23 3.21,1.62 5.79,2.13 7.58,3.93 4.34,4.34 5.63,10.84 3.28,16.5 -2.35,5.67 -7.86,9.35 -13.99,9.35 -6.13,-0 -11.64,-3.68 -13.99,-9.35 -2.35,-5.67 -1.05,-12.17 3.28,-16.5l-4.2,-4.2c-6.02,6.02 -7.83,15.11 -4.57,22.98 3.26,7.87 10.96,13.02 19.48,13.02s16.22,-5.15 19.48,-13.02c3.26,-7.87 1.45,-16.96 -4.57,-22.98 -3.21,-3.21 -6.91,-3.92 -9.11,-5.03 -2.2,-1.11 -3.45,-1.92 -4.11,-6.73z"
71+
android:fillColor="#fff"/>
72+
<path
73+
android:pathData="m52.37,23.87s-2.55,9.55 -5.66,13.09 8.21,-4.39 12.03,-0.35 -6.37,-12.74 -6.37,-12.74z"
74+
android:fillColor="#fff"/>
75+
</vector>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
3+
<monochrome android:drawable="@drawable/commons_logo_monochrome" />
34
<background android:drawable="@color/ic_launcher_background"/>
45
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
56
</adaptive-icon>

app/src/main/res/values-yue-hant/error.xml

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)