feat: monochrome icon support (#41)

This commit is contained in:
Ushie 2022-11-05 22:30:13 +03:00 • committed by GitHub
parent af8e51c5a3
commit e7a796ad58
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 56 deletions

View file

@ -4,58 +4,17 @@
android:viewportWidth="108"
android:viewportHeight="108">
<path
android:fillColor="#00000000"
android:pathData="m61.557,45.919c1.52,-0.596 3.04,-1.192 4.023,-1.566 0.983,-0.374 1.485,-0.545 1.095,-1.456 -0.39,-0.91 -1.413,-2.387 -3.086,-3.984 -1.673,-1.596 -2.94,-2.058 -3.336,-2.199 -0.396,-0.14 -1.091,-0.37 -1.563,-0.506 -0.472,-0.136 -0.953,-0.255 -2.288,-0.298 -1.335,-0.043 -4.019,-0.001 -5.11,0.085 -1.091,0.086 -1.859,0.315 -2.415,0.498 -0.556,0.183 -1.041,0.362 -1.492,0.551 -0.451,0.189 -0.854,0.383 -1.201,0.567 -0.348,0.184 -0.588,0.33 -1.292,0.898 -0.704,0.569 -1.737,1.451 -2.646,2.953 -0.91,1.502 -1.522,3.335 -1.864,4.87 -0.343,1.534 -0.351,2.483 -0.342,4.885 0.009,2.402 0.049,8.183 0.095,8.975 0.046,0.792 0.365,1.208 0.563,1.467"
android:strokeWidth="2.5"
android:strokeAlpha="0.5"
android:strokeColor="#000000"
android:strokeLineCap="butt"
android:strokeLineJoin="miter" />
<path
android:fillColor="#00000000"
android:pathData="M49.252,56.956V49.586"
android:strokeWidth="2.5"
android:strokeAlpha="0.5019608"
android:strokeColor="#000000"
android:strokeLineCap="butt"
android:strokeLineJoin="miter" />
<path
android:fillColor="#00000000"
android:pathData="m47.257,70.319 l-0.571,1.788H36.635l5.398,-15.146h14.598l-2.565,-10.416h-0.262l-1.597,6.112 -6.306,-6.082 3.663,-10.094h8.532L71.341,72.107H61.29l-0.58,-1.719c2.606,-1.365 4.614,-3.013 6.134,-5.265 0.104,-0.15 0.763,-1.271 0.763,-1.271l-6.778,-3.011c-1.095,2.369 -5.016,3.932 -7.295,4.111l-4.546,0.009z"
android:strokeWidth="2.5"
android:strokeColor="#000000"
android:strokeLineCap="butt"
android:strokeLineJoin="miter" />
<path
android:fillColor="#00000000"
android:pathData="m47.257,70.319c1.626,0.664 3.253,1.328 5.061,1.47 1.808,0.142 3.8,-0.238 5.228,-0.558 1.429,-0.32 2.296,-0.581 3.164,-0.842"
android:strokeWidth="2.5"
android:strokeAlpha="0.501961"
android:strokeColor="#000000"
android:strokeLineCap="butt"
android:strokeLineJoin="miter" />
<path
android:fillAlpha="0.501961"
android:fillColor="#000000"
android:pathData="m41.318,53.87c-0.052,-4.613 -0.018,-5.691 0.218,-6.885 0.359,-1.817 1.072,-3.722 1.869,-4.993 0.637,-1.016 1.519,-1.935 2.752,-2.866 0.2,-0.151 0.501,-0.332 0.838,-0.504 0.289,-0.147 0.529,-0.263 0.533,-0.257 0.004,0.006 -0.685,1.916 -1.532,4.245 -0.847,2.329 -1.54,4.255 -1.541,4.281 -0.001,0.026 0.793,0.812 1.764,1.747l1.765,1.7v2.682,2.682h-3.323,-3.323z"
android:strokeWidth="0.078125"
android:strokeAlpha="0.5"
android:strokeColor="#00000000"
android:strokeLineJoin="miter" />
android:fillAlpha="0.9"
android:pathData="m46.85,70.39 l2.08,-6.94l0,0l-2.08,6.94c2.63,1.17 5.6,1.8 8.58,1.8 2.18,0 4.52,-0.44 6.79,-1.37l0,0c3.47,-1.42 6.75,-4.01 8.95,-8.19l-9.63,-4.33c-2.5,4.85 -9.26,3.68 -12.06,3.66" />
<path
android:fillAlpha="0.501961"
android:fillColor="#000000"
android:pathData="m61.176,41.134c-0.639,-1.72 -1.155,-3.134 -1.147,-3.143 0.03,-0.03 0.789,0.365 1.126,0.588 0.714,0.471 1.27,0.943 2.047,1.737 0.586,0.6 1.038,1.123 1.461,1.691 0.325,0.437 0.704,1.043 0.672,1.074 -0.013,0.013 -0.621,0.254 -1.352,0.537 -0.73,0.283 -1.4,0.543 -1.487,0.578l-0.159,0.064z"
android:strokeWidth="0.078125"
android:strokeAlpha="0.5"
android:strokeColor="#00000000"
android:strokeLineJoin="miter" />
android:fillAlpha="0.9"
android:pathData="m53.81,26.37c-8.77,0 -17.42,4.93 -17.42,14.54l0,14.66c0,1.01 0.15,1.94 0.33,2.85l2.22,-6.19l8.51,0L47.44,43.58L43.44,39.67 47.82,27.46l10.19,0l4.2,11.44 6.97,-2.74C65.66,28.59 59.18,26.37 53.81,26.37Z" />
<path
android:fillAlpha="0.501961"
android:fillColor="#000000"
android:pathData="m52.087,70.498c-0.776,-0.094 -1.676,-0.326 -2.676,-0.691 -0.312,-0.114 -0.571,-0.21 -0.577,-0.214 -0.005,-0.004 0.233,-0.762 0.531,-1.683l0.541,-1.675 1.485,-0.001c2.337,-0.002 2.808,-0.038 3.863,-0.296 1.522,-0.373 3.157,-1.096 4.342,-1.921 0.572,-0.398 1.157,-0.915 1.554,-1.372l0.174,-0.2 2.198,0.976c1.209,0.537 2.211,0.988 2.226,1.003 0.035,0.033 -0.326,0.541 -0.741,1.044 -0.373,0.452 -1.259,1.342 -1.693,1.702 -0.697,0.577 -1.494,1.133 -2.303,1.607 -0.679,0.398 -0.774,0.44 -1.419,0.627 -1.961,0.57 -4.04,0.993 -5.465,1.112 -0.518,0.043 -1.615,0.034 -2.038,-0.017z"
android:strokeWidth="0.078125"
android:strokeAlpha="0.5"
android:strokeColor="#00000000"
android:strokeLineJoin="miter" />
android:pathData="m55.71,63.56c-4.46,-0.1 -5.1,-0.09 -7.69,-0.13l-2.75,8.64L33.26,72.07L39.83,53.76L57.15,53.76L54.08,41.16l-0.31,0l-1.91,7.39 -7.53,-7.35 4.38,-12.2l10.19,0L74.72,72.07L62.07,72.07l-0.78,-1.82"
android:strokeLineJoin="miter"
android:strokeWidth="3.3"
android:strokeColor="#000000"
android:strokeLineCap="butt"/>
</vector>

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background" />
<foreground android:drawable="@drawable/ic_launcher_foreground" />
<monochrome android:drawable="@drawable/ic_launcher_monochrome" />
<background android:drawable="@color/ic_launcher_background"/>
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
<monochrome android:drawable="@drawable/ic_launcher_monochrome"/>
</adaptive-icon>

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background" />
<foreground android:drawable="@drawable/ic_launcher_foreground" />
<monochrome android:drawable="@drawable/ic_launcher_monochrome" />
<background android:drawable="@color/ic_launcher_background"/>
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
<monochrome android:drawable="@drawable/ic_launcher_monochrome"/>
</adaptive-icon>