Fix monochrome icon

This commit is contained in:
Sad Ellie 2023-04-25 10:36:56 +03:00
parent 0f43a75bd9
commit 953b3e51f4
3 changed files with 63 additions and 2 deletions

View File

@ -0,0 +1,61 @@
<!--
~ Unitto is a unit converter for Android
~ Copyright (c) 2023 Elshan Agaev
~
~ This program is free software: you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by
~ the Free Software Foundation, either version 3 of the License, or
~ (at your option) any later version.
~
~ This program is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU General Public License for more details.
~
~ You should have received a copy of the GNU General Public License
~ along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
android:height="108dp"
android:viewportWidth="512"
android:viewportHeight="512">
<group android:scaleX="0.594"
android:scaleY="0.594"
android:translateX="103.936"
android:translateY="103.936">
<group>
<clip-path
android:pathData="M357,269L357,269A88,88 0,0 1,445 357L445,357A88,88 0,0 1,357 445L357,445A88,88 0,0 1,269 357L269,357A88,88 0,0 1,357 269z"/>
<path
android:pathData="M446,268H268V446H446V268ZM345,321C345,314.37 350.37,309 357,309C363.63,309 369,314.37 369,321C369,327.63 363.63,333 357,333C350.37,333 345,327.63 345,321ZM307,357C307,350.37 312.37,345 319,345H395C401.63,345 407,350.37 407,357C407,363.63 401.63,369 395,369H319C312.37,369 307,363.63 307,357ZM357,381C350.37,381 345,386.37 345,393C345,399.63 350.37,405 357,405C363.63,405 369,399.63 369,393C369,386.37 363.63,381 357,381Z"
android:fillColor="#378648"
android:fillType="evenOdd"/>
</group>
<group>
<clip-path
android:pathData="M155,269L155,269A88,88 0,0 1,243 357L243,357A88,88 0,0 1,155 445L155,445A88,88 0,0 1,67 357L67,357A88,88 0,0 1,155 269z"/>
<path
android:pathData="M244,268H66V446H244V268ZM130.37,317.15C126.17,312.95 119.35,312.95 115.15,317.15C110.95,321.35 110.95,328.17 115.15,332.37L140.17,357.39L115.15,382.4C110.95,386.6 110.95,393.42 115.15,397.62C119.35,401.82 126.17,401.82 130.37,397.62L155.38,372.6L180.4,397.62C184.6,401.82 191.42,401.82 195.62,397.62C199.82,393.42 199.82,386.6 195.62,382.4L170.6,357.39L195.62,332.37C199.82,328.17 199.82,321.35 195.62,317.15C191.42,312.95 184.6,312.95 180.4,317.15L155.38,342.17L130.37,317.15Z"
android:fillColor="#378648"
android:fillType="evenOdd"/>
</group>
<group>
<clip-path
android:pathData="M357,67L357,67A88,88 0,0 1,445 155L445,155A88,88 0,0 1,357 243L357,243A88,88 0,0 1,269 155L269,155A88,88 0,0 1,357 67z"/>
<path
android:pathData="M446,66H268V244H446V66ZM319,143C312.37,143 307,148.37 307,155C307,161.63 312.37,167 319,167H395C401.63,167 407,161.63 407,155C407,148.37 401.63,143 395,143H319Z"
android:fillColor="#378648"
android:fillType="evenOdd"/>
</group>
<group>
<clip-path
android:pathData="M155,67L155,67A88,88 0,0 1,243 155L243,155A88,88 0,0 1,155 243L155,243A88,88 0,0 1,67 155L67,155A88,88 0,0 1,155 67z"/>
<path
android:pathData="M244,66H66V244H244V66ZM167,117C167,110.37 161.63,105 155,105C148.37,105 143,110.37 143,117V143H117C110.37,143 105,148.37 105,155C105,161.63 110.37,167 117,167H143V193C143,199.63 148.37,205 155,205C161.63,205 167,199.63 167,193V167H193C199.63,167 205,161.63 205,155C205,148.37 199.63,143 193,143H167V117Z"
android:fillColor="#378648"
android:fillType="evenOdd"/>
</group>
</group>
</vector>

View File

@ -20,5 +20,5 @@
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_icon_background"/>
<foreground android:drawable="@drawable/ic_launcher_icon_foreground"/>
<monochrome android:drawable="@drawable/ic_launcher_icon_foreground"/>
<monochrome android:drawable="@drawable/ic_launcher_icon_monochrome"/>
</adaptive-icon>

View File

@ -20,5 +20,5 @@
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_icon_background"/>
<foreground android:drawable="@drawable/ic_launcher_icon_foreground"/>
<monochrome android:drawable="@drawable/ic_launcher_icon_foreground"/>
<monochrome android:drawable="@drawable/ic_launcher_icon_monochrome"/>
</adaptive-icon>