Skip to content

Commit 7d1ec5e

Browse files
Merge pull request #297 from Idadelveloper/themed-icons
update: ensure themed icons
2 parents 1cbefab + 0f482b8 commit 7d1ec5e

20 files changed

+76
-77
lines changed

app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
android:networkSecurityConfig="@xml/network_security_config"
3737
android:roundIcon="@mipmap/ic_launcher_round"
3838
android:supportsRtl="true"
39-
android:theme="@style/Theme.main">
39+
android:theme="@style/Theme.Material3.DayNight">
4040
<activity
4141
android:name=".MainActivity"
4242
android:windowSoftInputMode="adjustResize"
-32.2 KB
Loading
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
2+
android:width="1024dp"
3+
android:height="1024dp"
4+
android:viewportWidth="1024"
5+
android:viewportHeight="1024">
6+
<path
7+
android:pathData="M360,233c59.7,-0.6 124.3,-2.7 183.5,-0 20.3,0.9 40.3,6.7 59.5,8 1.3,1.5 3.3,1.5 5,2s3.9,0.6 5,1c7.5,2.4 17.7,6 25,9 6.1,2.5 16.3,7.1 22,10 4.8,2.5 9.6,7.5 16,10 3.3,4 9.1,6.1 13,9 6.5,4.8 12.6,10.9 19,16 3.7,2.9 7,6.4 11,9 3,4.5 8.6,12.3 13,15 2.9,6.3 9.1,10.6 13,16l0,3c0.6,0.2 1.5,-0.2 2,0 4.2,6.7 8.9,14.1 13,21s8.8,17.2 12,25c1.6,3.9 3.6,8.2 5,12s2.8,9.1 4,13c1.7,5.7 3.7,12.3 5,18 1.6,7 3.1,15.9 4,23 1.1,8.4 1.7,18.5 2,27 0.7,18.7 0.4,38 -1,56 -0.9,12.2 -2,20.7 -4.5,32 -13.4,60.5 -47.2,114.7 -97.5,151l-2,-4.4 -144.9,-105.1 -2.1,-4.4c42.5,0.4 85.4,0.3 127.8,-0.7 27.9,-11 19.5,-49.5 -10.3,-49.3 -43.8,2.8 -91.8,-3.6 -135,0.1 -11.1,0.9 -24.4,7.9 -26.5,20 -1.7,-0.2 -3,-1.3 -4.3,-2.2 -66.9,-46.2 -131.1,-99.5 -198.4,-144.6 -2.8,-1.9 -5.7,-4.7 -9.3,-4.2 0.1,-38.3 -0.5,-76.7 0,-115 0.3,-24.6 -3.9,-48.7 17.5,-66 16.6,-13.3 38.4,-9.8 58.5,-10ZM403.8,417.3c-33.8,5.5 -34.8,51.7 -1.2,58.6h173.8c33.9,-6.8 32.3,-54.3 -2,-58.8l-170.6,0.2Z"
8+
android:fillColor="#c296fc"/>
9+
<path
10+
android:pathData="M496,575c-1.5,8.4 2,20.3 9.1,25.4 9.5,6.9 23.5,4.4 34.9,4.6l2.1,4.4 144.9,105.1 2,4.4c-14.8,10.7 -30.3,19.5 -47,27l-2.6,-3.9 -348.5,-253.5 -6.9,-2.6c0,-20.6 -0,-41.3 0,-62 3.7,-0.5 6.5,2.3 9.3,4.2 67.3,45.2 131.4,98.5 198.4,144.6 1.4,0.9 2.6,2 4.3,2.2Z"
11+
android:fillColor="#bf92fc"/>
12+
<path
13+
android:pathData="M642,746c-8.5,3.8 -16.1,7 -25,10l-333,-242c0,-9.3 -0,-18.7 0,-28l6.9,2.6 348.5,253.5 2.6,3.9Z"
14+
android:fillColor="#bd8ffc"/>
15+
<path
16+
android:pathData="M511,769c-16,0.2 -52,-2.7 -65,2l-1.2,-4.3 -155.6,-113.3 -5.2,-1.3c-0.1,-16.3 0,-32.7 0,-49 3.2,0 5.8,2.5 8.3,4.2 73.3,50.8 143.3,106.6 216.4,157.6l2.3,4.3Z"
17+
android:fillColor="#b888fc"/>
18+
<path
19+
android:pathData="M557,768c-15.3,1.1 -30.6,0.8 -46,1l-2.3,-4.3c-73.2,-51 -143.2,-106.8 -216.4,-157.6 -2.5,-1.7 -5.2,-4.2 -8.3,-4.2 -0,-11.6 0,-23.4 0,-35l7.3,3.2c83.1,64.7 174.6,122 257,187 3.3,2.6 8.8,5.2 8.7,9.8Z"
20+
android:fillColor="#ba8afc"/>
21+
<path
22+
android:pathData="M592,763c-12.1,2.6 -22.7,4.1 -35,5 0.1,-4.7 -5.4,-7.3 -8.7,-9.8 -82.4,-65 -173.9,-122.3 -257,-187l-7.3,-3.2c-0,-10 0,-20 0,-30l5.1,1.5 299.9,218.1 3.1,5.4Z"
23+
android:fillColor="#bb8cfc"/>
24+
<path
25+
android:pathData="M284,652l5.2,1.3 155.6,113.3 1.2,4.3c-15.2,5.4 -35.6,16.8 -51,24 -0.1,-2.2 -1.6,-3.2 -3.1,-4.4 -31.9,-26.5 -70.7,-48.6 -103,-75l-4.9,-1.6c-0.1,-20.6 0.1,-41.3 0,-62Z"
26+
android:fillColor="#b684fc"/>
27+
<path
28+
android:pathData="M617,756c-8.3,2.8 -16.4,5.1 -25,7l-3.1,-5.4 -299.9,-218.1 -5.1,-1.5c0,-8 0,-16 0,-24l333,242Z"
29+
android:fillColor="#bc8efc"/>
30+
<path
31+
android:pathData="M395,795c-4.7,2.2 -9.3,4.8 -14,7 -3.4,1.6 -6.7,3.4 -10,5 -2,1 -4,2.1 -6,3 -4.4,2.1 -3.9,2 -7,4 -0.5,0.3 -3.7,0.4 -5,1s-2.3,1.6 -3,2c-1.4,0.6 -2.7,1.4 -4,2 -2.2,1.1 -4.7,1.9 -7,3 -2.8,1.4 -5,3 -7,4s-4.6,1.9 -7,3c-1.4,0.6 -2.7,1.4 -4,2 -1.4,0.6 -2.7,1.4 -4,2s-3.1,1.1 -5,2c-0.8,0.4 -2,0.5 -3,1 -2.5,1.1 -5,3.1 -7,4 -1.1,0.5 -2.9,0.5 -4,1 -2,0.9 -4,2 -6,3 -2.3,1.1 -4.5,2.8 -7,3v-122.5c0,-2.4 -1,-6.9 -1,-10.5l4.9,1.6c32.3,26.5 71.1,48.5 103,75 1.5,1.3 3,2.2 3.1,4.4Z"
32+
android:fillColor="#b37ffc"/>
33+
</vector>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<shape xmlns:android="http://schemas.android.com/apk/res/android"
2+
android:shape="rectangle">
3+
<solid android:color="@android:color/white" />
4+
</shape>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<vector xmlns:android="http://schemas.android.com/apk/res/android" android:height="24dp" android:viewportHeight="1024" android:viewportWidth="1024" android:width="24dp">
2+
3+
<path android:fillColor="#C497FE" android:fillType="evenOdd" android:pathData="M757,476.3C757,611.8 647.3,721.6 512,721.6H407L267,793L267,275.2C267,250.8 286.7,231 311.1,231H512C647.3,231 757,340.8 757,476.3ZM379.7,384.3C363.5,384.3 350.3,397.5 350.3,413.8C350.3,430.1 363.5,443.3 379.7,443.3H545.3C561.6,443.3 574.7,430.1 574.7,413.8C574.7,397.5 561.6,384.3 545.3,384.3H379.7ZM465.2,498.3C449,498.3 435.8,511.5 435.8,527.8C435.8,544.1 449,557.3 465.2,557.3H611.2C627.5,557.3 640.6,544.1 640.6,527.8C640.6,511.5 627.5,498.3 611.2,498.3H465.2Z"/>
4+
5+
</vector>
Lines changed: 4 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -1,74 +1,4 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<vector
3-
android:height="108dp"
4-
android:width="108dp"
5-
android:viewportHeight="108"
6-
android:viewportWidth="108"
7-
xmlns:android="http://schemas.android.com/apk/res/android">
8-
<path android:fillColor="#3DDC84"
9-
android:pathData="M0,0h108v108h-108z"/>
10-
<path android:fillColor="#00000000" android:pathData="M9,0L9,108"
11-
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
12-
<path android:fillColor="#00000000" android:pathData="M19,0L19,108"
13-
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
14-
<path android:fillColor="#00000000" android:pathData="M29,0L29,108"
15-
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
16-
<path android:fillColor="#00000000" android:pathData="M39,0L39,108"
17-
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
18-
<path android:fillColor="#00000000" android:pathData="M49,0L49,108"
19-
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
20-
<path android:fillColor="#00000000" android:pathData="M59,0L59,108"
21-
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
22-
<path android:fillColor="#00000000" android:pathData="M69,0L69,108"
23-
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
24-
<path android:fillColor="#00000000" android:pathData="M79,0L79,108"
25-
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
26-
<path android:fillColor="#00000000" android:pathData="M89,0L89,108"
27-
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
28-
<path android:fillColor="#00000000" android:pathData="M99,0L99,108"
29-
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
30-
<path android:fillColor="#00000000" android:pathData="M0,9L108,9"
31-
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
32-
<path android:fillColor="#00000000" android:pathData="M0,19L108,19"
33-
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
34-
<path android:fillColor="#00000000" android:pathData="M0,29L108,29"
35-
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
36-
<path android:fillColor="#00000000" android:pathData="M0,39L108,39"
37-
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
38-
<path android:fillColor="#00000000" android:pathData="M0,49L108,49"
39-
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
40-
<path android:fillColor="#00000000" android:pathData="M0,59L108,59"
41-
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
42-
<path android:fillColor="#00000000" android:pathData="M0,69L108,69"
43-
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
44-
<path android:fillColor="#00000000" android:pathData="M0,79L108,79"
45-
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
46-
<path android:fillColor="#00000000" android:pathData="M0,89L108,89"
47-
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
48-
<path android:fillColor="#00000000" android:pathData="M0,99L108,99"
49-
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
50-
<path android:fillColor="#00000000" android:pathData="M19,29L89,29"
51-
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
52-
<path android:fillColor="#00000000" android:pathData="M19,39L89,39"
53-
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
54-
<path android:fillColor="#00000000" android:pathData="M19,49L89,49"
55-
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
56-
<path android:fillColor="#00000000" android:pathData="M19,59L89,59"
57-
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
58-
<path android:fillColor="#00000000" android:pathData="M19,69L89,69"
59-
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
60-
<path android:fillColor="#00000000" android:pathData="M19,79L89,79"
61-
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
62-
<path android:fillColor="#00000000" android:pathData="M29,19L29,89"
63-
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
64-
<path android:fillColor="#00000000" android:pathData="M39,19L39,89"
65-
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
66-
<path android:fillColor="#00000000" android:pathData="M49,19L49,89"
67-
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
68-
<path android:fillColor="#00000000" android:pathData="M59,19L59,89"
69-
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
70-
<path android:fillColor="#00000000" android:pathData="M69,19L69,89"
71-
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
72-
<path android:fillColor="#00000000" android:pathData="M79,19L79,89"
73-
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
74-
</vector>
1+
<shape xmlns:android="http://schemas.android.com/apk/res/android"
2+
android:shape="rectangle">
3+
<solid android:color="@android:color/white" />
4+
</shape>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
2+
android:width="108dp"
3+
android:height="108dp"
4+
android:viewportWidth="1024"
5+
android:viewportHeight="1024">
6+
<group android:scaleX="0.67"
7+
android:scaleY="0.67"
8+
android:translateX="168.96"
9+
android:translateY="168.96">>
10+
11+
<path android:fillColor="#C497FE" android:fillType="evenOdd" android:pathData="M757,476.3C757,611.8 647.3,721.6 512,721.6H407L267,793L267,275.2C267,250.8 286.7,231 311.1,231H512C647.3,231 757,340.8 757,476.3ZM379.7,384.3C363.5,384.3 350.3,397.5 350.3,413.8C350.3,430.1 363.5,443.3 379.7,443.3H545.3C561.6,443.3 574.7,430.1 574.7,413.8C574.7,397.5 561.6,384.3 545.3,384.3H379.7ZM465.2,498.3C449,498.3 435.8,511.5 435.8,527.8C435.8,544.1 449,557.3 465.2,557.3H611.2C627.5,557.3 640.6,544.1 640.6,527.8C640.6,511.5 627.5,498.3 611.2,498.3H465.2Z"/>
12+
13+
</group>
14+
</vector>
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
33
<background android:drawable="@drawable/ic_launcher_background"/>
4-
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
4+
<foreground
5+
android:drawable="@drawable/ic_launcher_foreground"
6+
android:translateX="@dimen/icon_offset_x"
7+
android:translateY="@dimen/icon_offset_y"/>
8+
<monochrome android:drawable="@drawable/ic_launcher_foreground"/>
59
</adaptive-icon>
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
33
<background android:drawable="@drawable/ic_launcher_background"/>
4-
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
4+
<foreground
5+
android:drawable="@drawable/ic_launcher_foreground"
6+
android:translateX="@dimen/icon_offset_x"
7+
android:translateY="@dimen/icon_offset_y"/>
8+
<monochrome android:drawable="@drawable/ic_launcher_foreground"/>
59
</adaptive-icon>
-1.44 KB
Loading

0 commit comments

Comments
 (0)