Skip to content

Commit 1ca0873

Browse files
authoredMar 17, 2025Β·Β·
Add monochromatic icon (#332)
* Add monochromatic icon * Add monochromatic icon for debug
1 parent 9aec435 commit 1ca0873

File tree

5 files changed

+70
-77
lines changed

5 files changed

+70
-77
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<!--
2+
Copyright (C) 2015 The Android Open Source Project
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+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
17+
android:width="108dp"
18+
android:height="108dp"
19+
android:viewportWidth="48"
20+
android:viewportHeight="48">
21+
<group
22+
android:pivotX="24.0"
23+
android:pivotY="24.0"
24+
android:scaleX="0.8"
25+
android:scaleY="0.8">
26+
<path
27+
android:fillColor="#000000"
28+
android:pathData="M24,24L14,14L14,29a 5,5 0 0,1 5,5L34,34L34,14z" />
29+
<path
30+
android:fillColor="#000000"
31+
android:pathData="M14,34m -4, 0a 4,4 0 1,0 8,0 a 4,4 0 1,0 -8,0zM14.5,36h-1v-1h1v1zM14.5,34h-1v-2h1v1z" />
32+
</group>
33+
</vector>
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-
<background android:drawable="@color/ic_launcher_background"/>
4-
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
3+
<background android:drawable="@color/ic_launcher_background" />
4+
<foreground android:drawable="@drawable/ic_launcher_foreground" />
5+
<monochrome android:drawable="@drawable/ic_launcher_monochrome" />
56
</adaptive-icon>

β€Žapp/src/main/res/drawable/ic_launcher_foreground_debug.xml

-75
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<!--
2+
Copyright (C) 2015 The Android Open Source Project
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+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
17+
android:width="108dp"
18+
android:height="108dp"
19+
android:viewportWidth="48"
20+
android:viewportHeight="48">
21+
<group
22+
android:pivotX="24.0"
23+
android:pivotY="24.0"
24+
android:scaleX="0.8"
25+
android:scaleY="0.8">
26+
<path
27+
android:fillColor="#000000"
28+
android:pathData="M24,24L14,14L14,30a 4,4 0 0,1 4,4L34,34L34,14z" />
29+
<path
30+
android:fillColor="#000000"
31+
android:pathData="M14,34m -3, 0a 3,3 0 1,0 6,0 a 3,3 0 1,0 -6,0z" />
32+
</group>
33+
</vector>

β€Žapp/src/main/res/mipmap-anydpi-v26/ic_launcher.xml

+1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
33
<background android:drawable="@color/ic_launcher_background"/>
44
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
5+
<monochrome android:drawable="@drawable/ic_launcher_monochrome" />
56
</adaptive-icon>

0 commit comments

Comments
 (0)
Please sign in to comment.