Skip to content

Commit 617fa79

Browse files
committed
(android) Use adaptive launcher icons and add monochrome option
1 parent c56d0fa commit 617fa79

File tree

4 files changed

+83
-12
lines changed

4 files changed

+83
-12
lines changed
Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
~ Copyright 2019 ACINQ SAS
2+
~ Copyright 2025 ACINQ SAS
33
~
44
~ Licensed under the Apache License, Version 2.0 (the "License");
55
~ you may not use this file except in compliance with the License.
@@ -17,20 +17,18 @@
1717
<vector xmlns:android="http://schemas.android.com/apk/res/android"
1818
android:width="108dp"
1919
android:height="108dp"
20-
android:viewportWidth="144"
21-
android:viewportHeight="144">
20+
android:viewportWidth="108"
21+
android:viewportHeight="108">
2222
<group
23-
android:translateX="18"
24-
android:translateY="18">
23+
android:scaleX="0.75"
24+
android:scaleY="0.75"
25+
android:translateX="13.5"
26+
android:translateY="13.5">
2527
<path
26-
android:fillColor="#91B4D1"
27-
android:pathData="M30,81c-7,-1 -8.37,-9.51 -0.84,-35.13C35,26 46.18,26 58,26c15.17,0 23.61,3.18 25.79,9.73a7.16,7.16 0,0 1,-1 7,6 6,0 0,1 -0.58,0.65c2.89,1.93 4.67,4.64 4.31,8.52 -0.39,4.36 -3.36,6.65 -8,7.76A5.52,5.52 0,0 1,79 62a7.7,7.7 0,0 1,-3.16 6.14C70.09,72.76 60,75 46,73c-3,-0.43 -5,2 -7,4C36.62,79.38 34.24,81.61 30,81Z" />
28+
android:fillColor="#25a5ff"
29+
android:pathData="M82.17,43.34a6,6 0,0 0,0.58 -0.65,7.16 7.16,0 0,0 1,-7C81.61,29.18 73.17,26 58,26c-11.82,0 -23,0 -28.84,19.87C21.63,71.49 23,80 30,81c4.24,0.61 6.62,-1.62 9,-4 2,-2 4,-4.46 7,-4 14,2 24.1,-0.21 29.85,-4.83A7.7,7.7 0,0 0,79 62a5.52,5.52 0,0 0,-0.49 -2.38c4.61,-1.11 7.58,-3.4 8,-7.76C86.84,48 85.06,45.27 82.17,43.34ZM81.5,51.41c-0.43,4.74 -11.72,4.46 -26.44,3.59a1,1 0,0 0,-1.06 0.91A1,1 0,0 0,54.88 57l2.43,0.3C63.14,58 74,59.28 74,62a3.44,3.44 0,0 1,-1.41 2.56c-4,3.4 -15.54,5.16 -24.77,3.76 -4.9,-0.74 -7.55,1.45 -9.9,3.38 -2.09,1.71 -3.73,3.06 -6.68,2.33a1.59,1.59 0,0 1,-1 -0.83C28.5,70 29.88,60.35 34,47.3 39.05,31 46.59,31 58,31c12.22,0 19.69,2.24 21,6.32a2.17,2.17 0,0 1,-0.2 2.25C76.33,42.73 63.36,41.43 59.1,41a1,1 0,0 0,-0.21 2l2.06,0.23C69.35,44.11 82.05,45.45 81.5,51.41Z" />
2830
<path
2931
android:fillColor="#fff"
30-
android:pathData="M58,30c8,0 20,1 22,7 2.24,6.71 -11,6 -21,5 9,1 24.18,2 23.5,9.5C82,57 72,57 55,56c8,1 20,2 20,6 0,6.28 -16.26,9 -27.33,7.31C39,68 38.06,76.77 31,75c-4,-1 -3,-12 2,-28C38.29,30.09 46.49,30 58,30Z"
31-
android:strokeWidth="2"
32-
android:strokeColor="#91B4D1"
33-
android:strokeLineCap="round"
34-
android:strokeLineJoin="round" />
32+
android:pathData="M61,43.22 L58.89,43a1,1 0,0 1,0.21 -2c4.26,0.43 17.23,1.73 19.75,-1.43a2.17,2.17 0,0 0,0.2 -2.25C77.69,33.24 70.22,31 58,31c-11.41,0 -19,0 -24,16.3C29.88,60.35 28.5,70 30.28,73.2a1.59,1.59 0,0 0,1 0.83c2.95,0.73 4.59,-0.62 6.68,-2.33 2.35,-1.93 5,-4.12 9.9,-3.38 9.23,1.4 20.81,-0.36 24.77,-3.76A3.44,3.44 0,0 0,74 62c0,-2.72 -10.86,-4 -16.69,-4.71L54.88,57A1,1 0,0 1,54 55.91,1 1,0 0,1 55.06,55c14.72,0.87 26,1.15 26.44,-3.59C82.05,45.45 69.35,44.11 61,43.22Z" />
3533
</group>
3634
</vector>
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<!--
2+
~ Copyright 2025 ACINQ SAS
3+
~
4+
~ Licensed under the Apache License, Version 2.0 (the "License");
5+
~ you may not use this file except in compliance with the License.
6+
~ You may obtain a copy of the License at
7+
~
8+
~ http://www.apache.org/licenses/LICENSE-2.0
9+
~
10+
~ Unless required by applicable law or agreed to in writing, software
11+
~ distributed under the License is distributed on an "AS IS" BASIS,
12+
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
~ See the License for the specific language governing permissions and
14+
~ limitations under the License.
15+
-->
16+
17+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
18+
android:width="108dp"
19+
android:height="108dp"
20+
android:viewportWidth="108"
21+
android:viewportHeight="108">
22+
<group
23+
android:scaleX="0.75"
24+
android:scaleY="0.75"
25+
android:translateX="13.5"
26+
android:translateY="13.5">
27+
<path
28+
android:fillColor="#000"
29+
android:pathData="M82.17,43.34a6,6 0,0 0,0.58 -0.65,7.16 7.16,0 0,0 1,-7C81.61,29.18 73.17,26 58,26c-11.82,0 -23,0 -28.84,19.87C21.63,71.49 23,80 30,81c4.24,0.61 6.62,-1.62 9,-4 2,-2 4,-4.46 7,-4 14,2 24.1,-0.21 29.85,-4.83A7.7,7.7 0,0 0,79 62a5.52,5.52 0,0 0,-0.49 -2.38c4.61,-1.11 7.58,-3.4 8,-7.76C86.84,48 85.06,45.27 82.17,43.34ZM81.5,51.41c-0.43,4.74 -11.72,4.46 -26.44,3.59a1,1 0,0 0,-1.06 0.91A1,1 0,0 0,54.88 57l2.43,0.3C63.14,58 74,59.28 74,62a3.44,3.44 0,0 1,-1.41 2.56c-4,3.4 -15.54,5.16 -24.77,3.76 -4.9,-0.74 -7.55,1.45 -9.9,3.38 -2.09,1.71 -3.73,3.06 -6.68,2.33a1.59,1.59 0,0 1,-1 -0.83C28.5,70 29.88,60.35 34,47.3 39.05,31 46.59,31 58,31c12.22,0 19.69,2.24 21,6.32a2.17,2.17 0,0 1,-0.2 2.25C76.33,42.73 63.36,41.43 59.1,41a1,1 0,0 0,-0.21 2l2.06,0.23C69.35,44.11 82.05,45.45 81.5,51.41Z" />
30+
</group>
31+
</vector>
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="utf-8"?><!--
2+
~ Copyright 2025 ACINQ SAS
3+
~
4+
~ Licensed under the Apache License, Version 2.0 (the "License");
5+
~ you may not use this file except in compliance with the License.
6+
~ You may obtain a copy of the License at
7+
~
8+
~ http://www.apache.org/licenses/LICENSE-2.0
9+
~
10+
~ Unless required by applicable law or agreed to in writing, software
11+
~ distributed under the License is distributed on an "AS IS" BASIS,
12+
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
~ See the License for the specific language governing permissions and
14+
~ limitations under the License.
15+
-->
16+
17+
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
18+
<background android:drawable="@color/ic_launcher_background" />
19+
<foreground android:drawable="@drawable/ic_launcher_foreground" />
20+
<monochrome android:drawable="@drawable/ic_launcher_monochrome" />
21+
</adaptive-icon>
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="utf-8"?><!--
2+
~ Copyright 2025 ACINQ SAS
3+
~
4+
~ Licensed under the Apache License, Version 2.0 (the "License");
5+
~ you may not use this file except in compliance with the License.
6+
~ You may obtain a copy of the License at
7+
~
8+
~ http://www.apache.org/licenses/LICENSE-2.0
9+
~
10+
~ Unless required by applicable law or agreed to in writing, software
11+
~ distributed under the License is distributed on an "AS IS" BASIS,
12+
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
~ See the License for the specific language governing permissions and
14+
~ limitations under the License.
15+
-->
16+
17+
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
18+
<background android:drawable="@color/ic_launcher_background" />
19+
<foreground android:drawable="@drawable/ic_launcher_foreground" />
20+
<monochrome android:drawable="@drawable/ic_launcher_monochrome" />
21+
</adaptive-icon>

0 commit comments

Comments
 (0)