Skip to content

Commit 71f2382

Browse files
authored
Fix: fix android 13 adaptable launcher icons (#552)
* add monochrome version of logo * remove fill colors to circles inside foreground * remove foreground icon parts from background * fix
1 parent cd2014a commit 71f2382

File tree

10 files changed

+152
-60
lines changed

10 files changed

+152
-60
lines changed

app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
android:appCategory="productivity"
3434
android:banner="@drawable/ic_launcher_foreground"
3535
android:enableOnBackInvokedCallback="true"
36-
android:icon="@drawable/ic_launcher_background"
36+
android:icon="@mipmap/ic_launcher"
3737
android:label="@string/app_name"
3838
android:roundIcon="@mipmap/ic_launcher_round"
3939
android:supportsRtl="true"
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<vector
2+
xmlns:android="http://schemas.android.com/apk/res/android"
3+
android:name="vector"
4+
android:width="108dp"
5+
android:height="108dp"
6+
android:viewportWidth="1445"
7+
android:viewportHeight="1445">
8+
<group
9+
android:name="logogroup"
10+
android:pivotX="54"
11+
android:pivotY="54"
12+
android:translateX="96.90746491494747"
13+
android:translateY="82.00398531293763">
14+
<path
15+
android:name="path"
16+
android:pathData="M 394.092 776.79 C 318.321 640.601 368.314 468.818 505.794 393.759 C 643.274 318.701 816.687 368.224 892.457 504.413"
17+
android:strokeColor="@color/logo_accent"
18+
android:strokeWidth="70"
19+
android:strokeLineCap="round"/>
20+
<path
21+
android:name="path_1"
22+
android:pathData="M 643.274 922.264 C 486.266 922.264 358.941 796.135 358.941 640.601 C 358.941 485.068 486.266 358.939 643.274 358.939"
23+
android:strokeColor="@color/logo_stroke"
24+
android:strokeWidth="70"
25+
android:strokeLineCap="round"/>
26+
<path
27+
android:name="path_2"
28+
android:pathData="M 523.76 640.601 C 523.76 609.214 536.361 579.08 558.765 556.886 C 581.17 534.692 611.589 522.21 643.274 522.21 C 674.96 522.21 705.379 534.692 727.783 556.886 C 750.188 579.08 762.788 609.214 762.788 640.601 C 762.788 671.989 750.188 702.122 727.783 724.316 C 705.379 746.51 674.96 758.993 643.274 758.993 C 611.589 758.993 581.17 746.51 558.765 724.316 C 536.361 702.122 523.76 671.989 523.76 640.601 Z"
29+
android:strokeColor="@color/logo_stroke"
30+
android:strokeWidth="105"/>
31+
</group>
32+
</vector>
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<vector
2+
xmlns:android="http://schemas.android.com/apk/res/android"
3+
android:name="vector"
4+
android:width="108dp"
5+
android:height="108dp"
6+
android:viewportWidth="1445"
7+
android:viewportHeight="1445">
8+
<group
9+
android:name="logogroup"
10+
android:pivotX="54"
11+
android:pivotY="54"
12+
android:translateX="96.90746491494747"
13+
android:translateY="82.00398531293763">
14+
<path
15+
android:name="path"
16+
android:pathData="M 394.092 776.79 C 318.321 640.601 368.314 468.818 505.794 393.759 C 643.274 318.701 816.687 368.224 892.457 504.413"
17+
android:strokeColor="#000000"
18+
android:strokeWidth="70"
19+
android:strokeLineCap="round"/>
20+
<path
21+
android:name="path_1"
22+
android:pathData="M 643.274 922.264 C 486.266 922.264 358.941 796.135 358.941 640.601 C 358.941 485.068 486.266 358.939 643.274 358.939"
23+
android:strokeColor="#000000"
24+
android:strokeWidth="70"
25+
android:strokeLineCap="round"/>
26+
<path
27+
android:name="path_2"
28+
android:pathData="M 523.76 640.601 C 523.76 609.214 536.361 579.08 558.765 556.886 C 581.17 534.692 611.589 522.21 643.274 522.21 C 674.96 522.21 705.379 534.692 727.783 556.886 C 750.188 579.08 762.788 609.214 762.788 640.601 C 762.788 671.989 750.188 702.122 727.783 724.316 C 705.379 746.51 674.96 758.993 643.274 758.993 C 611.589 758.993 581.17 746.51 558.765 724.316 C 536.361 702.122 523.76 671.989 523.76 640.601 Z"
29+
android:strokeColor="#000000"
30+
android:strokeWidth="105"/>
31+
</group>
32+
</vector>
Lines changed: 12 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,12 @@
1-
<!--
2-
~ This file is part of Cosmic IDE.
3-
~ Cosmic IDE is a free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
4-
~ Cosmic IDE is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
5-
~ You should have received a copy of the GNU General Public License along with Cosmic IDE. If not, see <https://www.gnu.org/licenses/>.
6-
-->
7-
8-
<vector xmlns:android="http://schemas.android.com/apk/res/android"
9-
android:width="108dp"
10-
android:height="108dp"
11-
android:viewportWidth="1445"
12-
android:viewportHeight="1445">
13-
14-
<path
15-
android:fillColor="@color/logo_background"
16-
android:pathData="M0,0h1445v1445h-1445z" />
17-
18-
<path
19-
android:pathData="M404,899C307,723 371,501 547,404C723,307 945,371 1042,547"
20-
android:strokeWidth="100"
21-
android:strokeColor="@color/logo_accent"
22-
android:strokeLineCap="round" />
23-
24-
<path
25-
android:pathData="M723,1087C522,1087 359,924 359,723C359,522 522,359 723,359"
26-
android:strokeWidth="100"
27-
android:strokeColor="@color/logo_stroke"
28-
android:strokeLineCap="round" />
29-
30-
<path
31-
android:pathData="M570,723a153,153 0,1 1,306 0a153,153 0,1 1,-306 0"
32-
android:strokeWidth="150"
33-
android:strokeColor="@color/logo_stroke" />
34-
35-
</vector>
1+
<vector
2+
xmlns:android="http://schemas.android.com/apk/res/android"
3+
android:name="vector"
4+
android:width="108dp"
5+
android:height="108dp"
6+
android:viewportWidth="108"
7+
android:viewportHeight="108">
8+
<path android:name="path"
9+
android:pathData="M -14.204 130.914 L -14.204 -20.449 L 123.817 -20.449 L 123.817 130.914 Z"
10+
android:fillColor="@color/logo_background"
11+
android:strokeWidth="0"/>
12+
</vector>

app/src/main/res/drawable/ic_launcher_foreground.xml

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5,37 +5,35 @@
55
~ You should have received a copy of the GNU General Public License along with Cosmic IDE. If not, see <https://www.gnu.org/licenses/>.
66
-->
77

8-
<vector xmlns:android="http://schemas.android.com/apk/res/android"
8+
<vector
9+
xmlns:android="http://schemas.android.com/apk/res/android"
10+
android:name="vector"
911
android:width="108dp"
1012
android:height="108dp"
1113
android:viewportWidth="1445"
1214
android:viewportHeight="1445">
13-
1415
<group
15-
android:name="logoGroup"
16+
android:name="logogroup"
1617
android:pivotX="54"
17-
android:pivotY="54">
18-
18+
android:pivotY="54"
19+
android:translateX="96.90746491494747"
20+
android:translateY="82.00398531293763">
1921
<path
20-
android:fillColor="@color/logo_background"
21-
android:pathData="M404,899C307,723 371,501 547,404C723,307 945,371 1042,547"
22-
android:strokeWidth="100"
22+
android:name="path"
23+
android:pathData="M 394.092 776.79 C 318.321 640.601 368.314 468.818 505.794 393.759 C 643.274 318.701 816.687 368.224 892.457 504.413"
2324
android:strokeColor="@color/logo_accent"
24-
android:strokeLineCap="round" />
25-
25+
android:strokeWidth="70"
26+
android:strokeLineCap="round"/>
2627
<path
27-
android:fillColor="@color/logo_background"
28-
android:pathData="M723,1087C522,1087 359,924 359,723C359,522 522,359 723,359"
29-
android:strokeWidth="100"
28+
android:name="path_1"
29+
android:pathData="M 643.274 922.264 C 486.266 922.264 358.941 796.135 358.941 640.601 C 358.941 485.068 486.266 358.939 643.274 358.939"
3030
android:strokeColor="@color/logo_stroke"
31-
android:strokeLineCap="round" />
32-
31+
android:strokeWidth="70"
32+
android:strokeLineCap="round"/>
3333
<path
34-
android:fillColor="@color/logo_background"
35-
android:pathData="M570,723a153,153 0,1 1,306 0a153,153 0,1 1,-306 0"
36-
android:strokeWidth="150"
37-
android:strokeColor="@color/logo_stroke" />
38-
34+
android:name="path_2"
35+
android:pathData="M 523.76 640.601 C 523.76 609.214 536.361 579.08 558.765 556.886 C 581.17 534.692 611.589 522.21 643.274 522.21 C 674.96 522.21 705.379 534.692 727.783 556.886 C 750.188 579.08 762.788 609.214 762.788 640.601 C 762.788 671.989 750.188 702.122 727.783 724.316 C 705.379 746.51 674.96 758.993 643.274 758.993 C 611.589 758.993 581.17 746.51 558.765 724.316 C 536.361 702.122 523.76 671.989 523.76 640.601 Z"
36+
android:strokeColor="@color/logo_stroke"
37+
android:strokeWidth="105"/>
3938
</group>
40-
41-
</vector>
39+
</vector>
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<!--
2+
~ This file is part of Cosmic IDE.
3+
~ Cosmic IDE is a free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
4+
~ Cosmic IDE is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
5+
~ You should have received a copy of the GNU General Public License along with Cosmic IDE. If not, see <https://www.gnu.org/licenses/>.
6+
-->
7+
8+
<vector
9+
xmlns:android="http://schemas.android.com/apk/res/android"
10+
android:name="vector"
11+
android:width="108dp"
12+
android:height="108dp"
13+
android:viewportWidth="1445"
14+
android:viewportHeight="1445">
15+
<group
16+
android:name="logogroup"
17+
android:pivotX="54"
18+
android:pivotY="54"
19+
android:translateX="96.90746491494747"
20+
android:translateY="82.00398531293763">
21+
<path
22+
android:name="path"
23+
android:pathData="M 394.092 776.79 C 318.321 640.601 368.314 468.818 505.794 393.759 C 643.274 318.701 816.687 368.224 892.457 504.413"
24+
android:strokeColor="#000000"
25+
android:strokeWidth="70"
26+
android:strokeLineCap="round"/>
27+
<path
28+
android:name="path_1"
29+
android:pathData="M 643.274 922.264 C 486.266 922.264 358.941 796.135 358.941 640.601 C 358.941 485.068 486.266 358.939 643.274 358.939"
30+
android:strokeColor="#000000"
31+
android:strokeWidth="70"
32+
android:strokeLineCap="round"/>
33+
<path
34+
android:name="path_2"
35+
android:pathData="M 523.76 640.601 C 523.76 609.214 536.361 579.08 558.765 556.886 C 581.17 534.692 611.589 522.21 643.274 522.21 C 674.96 522.21 705.379 534.692 727.783 556.886 C 750.188 579.08 762.788 609.214 762.788 640.601 C 762.788 671.989 750.188 702.122 727.783 724.316 C 705.379 746.51 674.96 758.993 643.274 758.993 C 611.589 758.993 581.17 746.51 558.765 724.316 C 536.361 702.122 523.76 671.989 523.76 640.601 Z"
36+
android:strokeColor="#000000"
37+
android:strokeWidth="105"/>
38+
</group>
39+
</vector>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
3+
<background android:drawable="@drawable/ic_launcher_background" />
4+
<foreground android:drawable="@drawable/ic_launcher_foreground" />
5+
<monochrome android:drawable="@drawable/ic_launcher_monochrome" />
6+
7+
</adaptive-icon>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
3+
<background android:drawable="@drawable/ic_launcher_background" />
4+
<foreground android:drawable="@drawable/ic_launcher_foreground" />
5+
<monochrome android:drawable="@drawable/ic_launcher_monochrome" />
6+
7+
</adaptive-icon>

app/src/main/res/mipmap-anydpi/ic_launcher.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77

88
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
99
<foreground android:drawable="@drawable/ic_launcher_foreground" />
10-
<monochrome android:drawable="@drawable/ic_launcher_foreground" />
10+
<monochrome android:drawable="@drawable/ic_launcher_monochrome" />
1111
</adaptive-icon>

app/src/main/res/mipmap-anydpi/ic_launcher_round.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
99
<background android:drawable="@drawable/ic_launcher_background" />
1010
<foreground android:drawable="@drawable/ic_launcher_foreground" />
11-
<monochrome android:drawable="@drawable/ic_launcher_foreground" />
11+
<monochrome android:drawable="@drawable/ic_launcher_monochrome" />
1212
</adaptive-icon>

0 commit comments

Comments
 (0)