Skip to content
This repository was archived by the owner on May 4, 2023. It is now read-only.

Commit a116a7b

Browse files
author
DerGoogler
committed
Add adaptive icon with monet
1 parent c2cc1e9 commit a116a7b

File tree

5 files changed

+26
-6
lines changed

5 files changed

+26
-6
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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+
android:tint="?attr/colorControlNormal">
7+
<group android:scaleX="1.8531"
8+
android:scaleY="1.8531"
9+
android:translateX="31.7628"
10+
android:translateY="31.7628">
11+
<path
12+
android:fillColor="@color/launcher_icon"
13+
android:pathData="M20.5,11H19V7c0,-1.1 -0.9,-2 -2,-2h-4V3.5C13,2.12 11.88,1 10.5,1S8,2.12 8,3.5V5H4c-1.1,0 -1.99,0.9 -1.99,2v3.8H3.5c1.49,0 2.7,1.21 2.7,2.7s-1.21,2.7 -2.7,2.7H2V20c0,1.1 0.9,2 2,2h3.8v-1.5c0,-1.49 1.21,-2.7 2.7,-2.7 1.49,0 2.7,1.21 2.7,2.7V22H17c1.1,0 2,-0.9 2,-2v-4h1.5c1.38,0 2.5,-1.12 2.5,-2.5S21.88,11 20.5,11z"/>
14+
</group>
15+
</vector>
Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
3-
<!-- Thanks https://romannurik.github.io/AndroidAssetStudio/ for icons -->
4-
<!--
5-
https://romannurik.github.io/AndroidAssetStudio/icons-launcher.html#foreground.type=clipart&foreground.clipart=extension&foreground.space.trim=0&foreground.space.pad=0.25&foreColor=rgb(255%2C%20255%2C%20255)&backColor=rgb(255%2C%20152%2C%200)&crop=0&backgroundShape=circle&effects=elevate&name=ic_launcher
6-
-->
7-
<background android:drawable="@mipmap/ic_launcher_adaptive_back"/>
8-
<foreground android:drawable="@mipmap/ic_launcher_adaptive_fore"/>
3+
<background android:drawable="@color/launcher_icon_background"/>
4+
<foreground android:drawable="@drawable/ic_foreground"/>
95
</adaptive-icon>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
3+
<background android:drawable="@color/launcher_icon_background"/>
4+
<foreground android:drawable="@drawable/ic_foreground"/>
5+
</adaptive-icon>

app/src/main/res/values-v31/colors.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
<color name="system_accent3_800">@android:color/system_accent3_800</color>
7373
<color name="system_accent3_900">@android:color/system_accent3_900</color>
7474
<color name="system_accent3_1000">@android:color/system_accent3_1000</color>
75+
<!-- Icon -->
7576
<color name="launcher_icon_background">@android:color/system_accent1_100</color>
7677
<color name="launcher_icon">@android:color/system_neutral2_700</color>
7778
</resources>

app/src/main/res/values/colors.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,7 @@
1414
<color name="white">#FFFFFFFF</color>
1515
<color name="status_bar_color">@color/black_transparent</color>
1616
<color name="module_holder_div">@color/black_transparent</color>
17+
<!-- Icon -->
18+
<color name="launcher_icon_background">#FF9B08</color>
19+
<color name="launcher_icon">@android:color/white</color>
1720
</resources>

0 commit comments

Comments
 (0)