feat: patches: introduce adaptive_ic_launcher
adaptive launcher icon, with monochrome for actual "themed icon" support this "unfortunately" overrides all changes done if change_app_logo is applied Signed-off-by: fukiame <fukiame@proton.me>
This commit is contained in:
parent
a78a993305
commit
e11051874b
4 changed files with 68 additions and 0 deletions
|
|
@ -0,0 +1,41 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="108dp"
|
||||
android:height="108dp"
|
||||
android:viewportWidth="37"
|
||||
android:viewportHeight="40">
|
||||
<group android:scaleX="0.41625"
|
||||
android:scaleY="0.45"
|
||||
android:translateX="10.799375"
|
||||
android:translateY="11">
|
||||
<path
|
||||
android:pathData="M8.047,12.186L14.83,15.306C15.224,15.472 15.658,15.597 16.131,15.514C17.353,15.306 18.181,14.1 17.984,12.81C17.826,11.812 17.156,11.063 16.289,10.897L9.033,9.192C8.836,9.15 8.638,9.108 8.402,9.15C7.574,9.275 7.022,10.107 7.14,10.98C7.219,11.521 7.574,11.978 8.047,12.186Z"
|
||||
android:fillColor="#ff0000"/>
|
||||
<path
|
||||
android:pathData="M16.367,7.071C16.131,7.528 16.012,8.069 16.17,8.61C16.446,9.567 17.432,10.066 18.299,9.775C18.575,9.691 18.851,9.483 19.049,9.275L23.308,4.076C23.82,3.452 24.096,2.579 23.82,1.705C23.426,0.458 22.164,-0.208 20.981,0.166C20.468,0.333 20.035,0.707 19.758,1.165C19.68,1.289 16.367,7.071 16.367,7.071Z"
|
||||
android:fillColor="#ff0000"/>
|
||||
<path
|
||||
android:pathData="M28.552,15.68C28.079,15.555 27.566,15.639 27.132,15.971C26.383,16.553 26.226,17.677 26.778,18.467C26.975,18.716 27.211,18.924 27.448,19.049C27.448,19.049 33.442,21.67 33.442,21.711C34.191,22.044 35.019,22.002 35.729,21.503C36.715,20.713 36.951,19.257 36.202,18.217C35.887,17.76 35.414,17.427 34.901,17.302C34.822,17.219 28.592,15.68 28.552,15.68Z"
|
||||
android:fillColor="#ff0000"/>
|
||||
<path
|
||||
android:pathData="M24.611,30.529C24.571,29.989 24.334,29.489 23.901,29.198C23.152,28.616 22.087,28.782 21.535,29.614C21.337,29.864 21.259,30.197 21.219,30.488C21.219,30.488 20.667,37.309 20.667,37.351C20.588,38.182 20.904,39.056 21.574,39.555C22.56,40.304 23.98,40.096 24.689,39.014C25.005,38.557 25.163,37.974 25.123,37.434C25.123,37.267 24.611,30.571 24.611,30.529Z"
|
||||
android:fillColor="#ff0000"/>
|
||||
<path
|
||||
android:pathData="M9.941,31.195C10.414,30.987 10.769,30.613 10.927,30.072C11.203,29.116 10.729,28.117 9.822,27.826C9.546,27.743 9.231,27.701 8.955,27.785C8.955,27.785 2.645,29.365 2.606,29.365C1.817,29.573 1.147,30.114 0.871,30.946C0.477,32.194 1.147,33.525 2.291,33.94C2.803,34.107 3.355,34.107 3.828,33.899C4.026,33.816 9.941,31.195 9.941,31.195Z"
|
||||
android:fillColor="#ff0000"/>
|
||||
<path
|
||||
android:pathData="M4.853,16.679C5.169,17.053 5.642,17.344 6.155,17.344C7.101,17.344 7.85,16.554 7.85,15.556C7.85,15.223 7.771,14.932 7.614,14.641L4.222,8.776C3.789,8.069 3.118,7.528 2.251,7.528C1.028,7.528 0.003,8.568 0.003,9.899C0.003,10.481 0.2,11.022 0.555,11.438C0.673,11.563 4.853,16.679 4.853,16.679Z"
|
||||
android:fillColor="#ff0000"/>
|
||||
<path
|
||||
android:pathData="M21.417,8.9L20.707,16.678C20.667,17.136 20.707,17.593 20.943,18.051C21.495,19.215 22.836,19.673 23.94,19.091C24.768,18.633 25.242,17.718 25.163,16.761L24.453,8.942C24.453,8.734 24.374,8.526 24.295,8.318C23.901,7.528 22.994,7.195 22.245,7.611C21.732,7.902 21.456,8.359 21.417,8.9Z"
|
||||
android:fillColor="#ff0000"/>
|
||||
<path
|
||||
android:pathData="M28.474,21.295L21.258,23C20.824,23.084 20.43,23.292 20.075,23.666C19.207,24.581 19.207,26.078 20.075,26.993C20.745,27.701 21.731,27.867 22.52,27.493L29.342,24.373C29.539,24.29 29.697,24.165 29.855,23.999C30.446,23.375 30.446,22.335 29.855,21.711C29.5,21.295 28.987,21.17 28.474,21.295Z"
|
||||
android:fillColor="#ff0000"/>
|
||||
<path
|
||||
android:pathData="M19.524,32.193L15.777,25.455C15.541,25.039 15.265,24.706 14.831,24.499C13.727,23.916 12.386,24.374 11.834,25.538C11.4,26.412 11.558,27.452 12.149,28.159C12.149,28.159 17.079,34.023 17.079,34.065C17.197,34.231 17.355,34.356 17.552,34.481C18.301,34.897 19.208,34.564 19.602,33.774C19.799,33.233 19.76,32.692 19.524,32.193Z"
|
||||
android:fillColor="#ff0000"/>
|
||||
<path
|
||||
android:pathData="M6.905,26.577C6.905,26.577 11.794,20.754 11.834,20.713C12.11,20.38 12.347,19.964 12.425,19.465C12.623,18.176 11.794,16.969 10.572,16.761C9.626,16.595 8.758,17.094 8.285,17.885C8.285,17.885 4.499,24.623 4.499,24.664C4.381,24.831 4.302,25.039 4.263,25.288C4.144,26.162 4.696,26.993 5.524,27.118C6.037,27.201 6.55,26.993 6.905,26.577Z"
|
||||
android:fillColor="#ff0000"/>
|
||||
</group>
|
||||
</vector>
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<background android:drawable="#000BD0"/>
|
||||
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
|
||||
<monochrome android:drawable="@drawable/ic_launcher_foreground"/>
|
||||
</adaptive-icon>
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<background android:drawable="#000BD0"/>
|
||||
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
|
||||
<monochrome android:drawable="@drawable/ic_launcher_foreground"/>
|
||||
</adaptive-icon>
|
||||
15
MBCPApp/patches/adaptive_ic_launcher.sh
Normal file
15
MBCPApp/patches/adaptive_ic_launcher.sh
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#!/usr/bin/env bash
|
||||
# PATCHNAME: Adaptive launcher icon
|
||||
# MAXVER:
|
||||
# MINVER:
|
||||
# shellcheck disable=SC1091
|
||||
. "$DIRPATH"/common.sh
|
||||
|
||||
confirm "This will override all changes in [Change app icon], are you sure you want to apply?" || exit 69
|
||||
|
||||
res="$DIRPATH/mbapk/mbapk_unpacked/resources/package_1/res/"
|
||||
blob="$DIRPATH/blob_patches/adaptive_ic_launcher/"
|
||||
|
||||
cp -r "$blob"/* "$res"
|
||||
|
||||
sed -i '0,/type=.font/s|^.*type="font".*| <public id="0x7f080365" type="drawable" name="ic_launcher_foreground" />\n&|' "$res"/values/public.xml
|
||||
Loading…
Reference in a new issue