feat: modify_app_theme.sh: support for new enforced priority logo
looks bad, but still usable Signed-off-by: Cuynu <cuynu@proton.me>
This commit is contained in:
parent
ca5548ed77
commit
5f6d43aa63
2 changed files with 96 additions and 2 deletions
|
|
@ -0,0 +1,83 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
width="31"
|
||||
height="16"
|
||||
viewBox="0 0 31 16"
|
||||
fill="none"
|
||||
version="1.1"
|
||||
id="svg1"
|
||||
sodipodi:docname="ic_logo_mb_text.svg"
|
||||
inkscape:version="1.4.2 (ebf0e940d0, 2025-05-08)"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg">
|
||||
<defs
|
||||
id="defs1" />
|
||||
<sodipodi:namedview
|
||||
id="namedview1"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#000000"
|
||||
borderopacity="0.25"
|
||||
inkscape:showpageshadow="2"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pagecheckerboard="0"
|
||||
inkscape:deskcolor="#d1d1d1"
|
||||
inkscape:zoom="13.953125"
|
||||
inkscape:cx="3.1175812"
|
||||
inkscape:cy="28.55991"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1143"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="33"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="svg1" />
|
||||
<path
|
||||
fill-rule="evenodd"
|
||||
clip-rule="evenodd"
|
||||
d="m 15.671508,0.17250811 h -2.677995 c -0.239992,0.510277 -1.908609,4.07433999 -2.672929,6.10775799 l -0.05232,0.139289 h -0.09028 l -0.05233,-0.139289 C 9.3612937,4.2468481 7.6927095,0.68278511 7.4527646,0.17250811 H 4.7747079 C 4.1959603,4.4816671 3.9090757,11.146342 3.8701007,12.100738 h 2.6663522 c 0.024919,-0.79883 0.1848645,-5.8268249 0.2955162,-6.9567549 l 0.027763,-0.284978 h 0.065583 l 0.1064666,0.251385 c 0.8894836,2.099042 2.0352852,4.9825459 2.224465,5.4597819 h 1.9337473 c 0.189179,-0.477236 1.334957,-3.3607399 2.22448,-5.4597819 l 0.106463,-0.251385 h 0.06554 l 0.02782,0.284978 c 0.11083,1.12993 0.270727,6.1579249 0.295638,6.9567549 h 2.666195 C 16.537114,11.146342 16.250289,4.4818571 15.671504,0.17250811 Z m 6.638114,2.16180399 c -0.250108,0 -0.906615,-0.0097 -1.296687,0.06452 v 2.339843 l 0.09889,0.0099 c 0.0052,5.08e-4 0.541225,0.04685 1.158946,0.04685 1.001893,0 1.582974,-0.07851 1.935335,-0.399096 0.354582,-0.322765 0.445336,-0.85416 0.225428,-1.310556 -0.347148,-0.7185 -1.430594,-0.751493 -2.1219,-0.751493 z m -1.29339,7.407009 c 0.579703,0.0373 1.205932,0.06345 1.835305,0.04048 0.488337,-0.01774 1.135263,-0.05701 1.594165,-0.54289 0.410614,-0.433946 0.484658,-1.084791 0.178596,-1.620675 -0.284219,-0.497713 -0.851046,-0.741326 -2.225839,-0.724345 -0.694372,0 -1.364751,0.07634 -1.388897,0.07979 z m 1.153504,2.4602479 c -1.44853,0 -2.805311,-0.03404 -3.863616,-0.09408 V 0.17927311 c 0.368226,-0.03267 1.508471,-0.05853 3.121491,-0.100132 1.011167,-0.02605 1.977799,0.015 2.734641,0.138786 1.713432,0.280102 2.337361,1.12680599 2.606556,1.59216899 0.258617,0.448662 0.431002,0.947664 0.389765,1.59603 -0.04829,0.760605 -0.286747,1.384681 -1.037992,1.99859 l -0.132452,0.10832 0.150769,0.07855 c 0.520531,0.271316 0.853422,0.702397 1.080842,1.12492 0.273257,0.510183 0.41184,1.091539 0.41184,1.727753 0,1.2863 -0.446332,2.2589669 -1.353255,2.9105699 -0.804057,0.578065 -1.925829,0.846742 -4.108589,0.846741 z"
|
||||
fill="#ffffff"
|
||||
id="path1"
|
||||
style="stroke-width:0.762298" />
|
||||
<g
|
||||
style="fill:none"
|
||||
id="g2"
|
||||
transform="matrix(0.4563867,0,0,0.42784456,4.6027227,12.038073)">
|
||||
<path
|
||||
d="M 1.41777,0 H 0.93428 v 9.31654 h 0.48349 z"
|
||||
fill="#6d83a7"
|
||||
id="path1-3" />
|
||||
<path
|
||||
d="m 5.30474,4.76061 h 1.32031 c 0.52068,0 0.85541,-0.05579 1.00418,-0.18596 C 7.778,4.46307 7.83378,4.16554 7.83378,3.71924 7.83378,3.19856 7.77799,2.88243 7.64782,2.77085 7.53625,2.64068 7.22012,2.5849 6.73663,2.5849 H 5.30474 Z M 4.15179,7.69877 V 1.5993 h 2.45467 0.29753 c 0.81821,0 1.37609,0.14878 1.67363,0.42772 0.27893,0.27894 0.42771,0.83681 0.42771,1.65503 0,0.81822 -0.13017,1.3575 -0.40911,1.61784 C 8.31728,5.56024 7.77799,5.709 6.94118,5.709 H 6.68084 5.30474 V 7.68017 H 4.15179 Z"
|
||||
fill="#6d83a7"
|
||||
id="path2" />
|
||||
<path
|
||||
d="m 11.3666,4.66763 h 1.655 c 0.3906,0 0.6509,-0.07438 0.7811,-0.20455 0.1301,-0.14877 0.1859,-0.4277 0.1859,-0.85541 0,-0.42771 -0.0558,-0.70664 -0.1673,-0.83682 C 13.7097,2.64068 13.468,2.5849 13.096,2.5849 H 11.348 V 4.66763 Z M 10.1951,7.69877 V 1.5993 h 3.0125 c 0.7438,0 1.2645,0.13018 1.5435,0.39052 0.2789,0.26035 0.4277,0.72524 0.4277,1.41329 0,0.61366 -0.0744,1.04137 -0.2046,1.26452 -0.1488,0.22315 -0.4277,0.39051 -0.874,0.4649 v 0.03719 c 0.6695,0.03719 1.0042,0.42771 1.0042,1.19014 v 1.33891 h -1.153 V 6.58301 c 0,-0.63226 -0.3161,-0.94839 -0.9298,-0.94839 H 11.348 v 2.04555 h -1.1529 z"
|
||||
fill="#6d83a7"
|
||||
id="path3" />
|
||||
<path
|
||||
d="m 17.5409,1.5993 h -1.153 v 6.09947 h 1.153 z"
|
||||
fill="#6d83a7"
|
||||
id="path4" />
|
||||
<path
|
||||
d="m 21.4646,2.54761 c -0.781,0 -1.2273,0.09297 -1.3575,0.29753 -0.1301,0.20455 -0.2045,0.89261 -0.2045,2.06415 0,0.87401 0.0744,1.39469 0.2231,1.58065 0.1488,0.18596 0.6137,0.26034 1.3575,0.26034 0.7253,0 1.153,-0.09298 1.2832,-0.29753 0.1487,-0.20456 0.2045,-0.81822 0.2045,-1.8224 0,-1.02277 -0.0744,-1.61784 -0.2045,-1.8038 C 22.6548,2.64059 22.2085,2.54761 21.4646,2.54761 Z m 0.093,-1.00418 c 1.1158,0 1.8224,0.18596 2.1386,0.55787 0.3161,0.37192 0.4834,1.19014 0.4834,2.47326 0,1.39469 -0.1673,2.2687 -0.4834,2.64062 C 23.38,7.58709 22.599,7.75446 21.3717,7.75446 20.2559,7.75446 19.5493,7.5685 19.2145,7.21518 18.8984,6.86185 18.731,6.06223 18.731,4.85349 c 0,-1.45048 0.1674,-2.36167 0.4835,-2.73358 0.3162,-0.39052 1.0972,-0.57648 2.3431,-0.57648 z"
|
||||
fill="#6d83a7"
|
||||
id="path5" />
|
||||
<path
|
||||
d="m 26.5228,4.66763 h 1.655 c 0.3905,0 0.6509,-0.07438 0.781,-0.20455 0.1302,-0.14877 0.186,-0.4277 0.186,-0.85541 0,-0.42771 -0.0558,-0.70664 -0.1674,-0.83682 C 28.8659,2.64068 28.6241,2.5849 28.2522,2.5849 h -1.748 v 2.08273 z m -1.153,3.03114 V 1.5993 h 2.994 c 0.7438,0 1.2645,0.13018 1.5434,0.39052 0.279,0.26035 0.4277,0.72524 0.4277,1.41329 0,0.61366 -0.0743,1.04137 -0.2045,1.26452 -0.1488,0.22315 -0.4277,0.39051 -0.874,0.4649 v 0.03719 c 0.6694,0.03719 1.0228,0.42771 1.0228,1.19014 V 7.69877 H 29.1076 V 6.58301 c 0,-0.63226 -0.3161,-0.94839 -0.9298,-0.94839 h -1.6736 v 2.04555 h -1.1344 z"
|
||||
fill="#6d83a7"
|
||||
id="path6" />
|
||||
<path
|
||||
d="m 32.6778,1.5993 h -1.1529 v 6.09947 h 1.1529 z"
|
||||
fill="#6d83a7"
|
||||
id="path7" />
|
||||
<path
|
||||
d="m 36.7876,2.64068 v 5.05809 h -1.153 V 2.64068 H 33.868 V 1.5993 h 4.742 v 1.04138 z"
|
||||
fill="#6d83a7"
|
||||
id="path8" />
|
||||
<path
|
||||
d="M 45.2671,1.5993 43.017,5.37428 V 7.69877 H 41.864 V 5.37428 L 39.6697,1.5993 h 1.3389 l 0.9112,1.59926 c 0.0558,0.09298 0.1302,0.26034 0.2603,0.50209 l 0.1302,0.24174 0.1302,0.24175 h 0.0372 L 42.6078,3.94239 42.738,3.70065 C 42.8496,3.4775 42.9426,3.31013 42.9984,3.19856 L 43.9282,1.5993 Z"
|
||||
fill="#6d83a7"
|
||||
id="path9" />
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 6.6 KiB |
|
|
@ -5,6 +5,18 @@
|
|||
# shellcheck disable=SC1091
|
||||
. "$DIRPATH"/common.sh
|
||||
|
||||
prioritylogo() {
|
||||
if [ -f 'mbapk/mbapk_unpacked/root/assets/flutter_assets/assets/images/dynamic/base/a_logo_img_addon.webp' ]
|
||||
then
|
||||
warn "App newer than v6.4.79+ ! Using enforced logo instead"
|
||||
info "Copying [ic_logo_mb_text_enforced.svg]...
|
||||
cp -f 'blob_patches/semipriority/ic_logo_mb_text_enforced.svg' 'mbapk/mbapk_unpacked/root/assets/flutter_assets/assets/svgs/ic_logo_mb_text.svg'
|
||||
else
|
||||
info 'Copying [ic_logo_mb_text.svg]...'
|
||||
cp -f 'blob_patches/semipriority/ic_logo_mb_text.svg' 'mbapk/mbapk_unpacked/root/assets/flutter_assets/assets/svgs/'
|
||||
fi
|
||||
}
|
||||
|
||||
iszdefend
|
||||
PS3='Select themes : '
|
||||
select opt in 'MBCP SemiPriority' 'MBCP MBClassic' 'Noel 2024' 'Tre trung' 'Mid-autumn festival' 'Exit'
|
||||
|
|
@ -17,8 +29,7 @@ do
|
|||
cp 'blob_patches/semipriority/priority/a_background_image.webp' 'blob_patches/semipriority/priority/qr_img_ThemeDefalut.webp'
|
||||
info 'Copying to [flutter_assets/assets/images/dynamic/base]'
|
||||
cp -r -f 'blob_patches/semipriority/priority/'* 'mbapk/mbapk_unpacked/root/assets/flutter_assets/assets/images/dynamic/base'
|
||||
info 'Copying [ic_logo_mb_text.svg]...'
|
||||
cp -f 'blob_patches/semipriority/ic_logo_mb_text.svg' 'mbapk/mbapk_unpacked/root/assets/flutter_assets/assets/svgs/'
|
||||
prioritylogo
|
||||
info 'Copying [welcom_img_eMbee.webp]...'
|
||||
cp -f 'blob_patches/semipriority/welcom_img_eMbee.webp' 'mbapk/mbapk_unpacked/root/assets/flutter_assets/assets/images/dynamic/base'
|
||||
|
||||
|
|
|
|||
Reference in a new issue