Update icons

This commit is contained in:
Sad Ellie 2024-01-09 17:54:46 +03:00
parent 982dc250ce
commit a39b0c0bd6
5 changed files with 44 additions and 21 deletions

View File

@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?><!--
~ 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/>.
-->
<resources>
<color name="unitto_primary">#FF5722</color>
</resources>

View File

@ -23,9 +23,9 @@
android:viewportHeight="24"> android:viewportHeight="24">
<group> <group>
<clip-path <clip-path
android:pathData="M0,0h24v24h-24z"/> android:pathData="M0.922,-0.002h24v24h-24z"/>
<path <path
android:pathData="M6,19H18L16.575,9H7.425L6,19ZM12,7C12.283,7 12.521,6.904 12.713,6.713C12.904,6.521 13,6.283 13,6C13,5.717 12.904,5.479 12.713,5.287C12.521,5.096 12.283,5 12,5C11.717,5 11.479,5.096 11.288,5.287C11.096,5.479 11,5.717 11,6C11,6.283 11.096,6.521 11.288,6.713C11.479,6.904 11.717,7 12,7ZM14.825,7H16.575C17.075,7 17.508,7.167 17.875,7.5C18.242,7.833 18.467,8.242 18.55,8.725L19.975,18.725C20.058,19.325 19.904,19.854 19.513,20.313C19.121,20.771 18.617,21 18,21H6C5.383,21 4.879,20.771 4.488,20.313C4.096,19.854 3.942,19.325 4.025,18.725L5.45,8.725C5.533,8.242 5.758,7.833 6.125,7.5C6.492,7.167 6.925,7 7.425,7H9.175C9.125,6.833 9.083,6.671 9.05,6.512C9.017,6.354 9,6.183 9,6C9,5.167 9.292,4.458 9.875,3.875C10.458,3.292 11.167,3 12,3C12.833,3 13.542,3.292 14.125,3.875C14.708,4.458 15,5.167 15,6C15,6.183 14.983,6.354 14.95,6.512C14.917,6.671 14.875,6.833 14.825,7Z" android:pathData="M12.922,5.998C12.372,5.998 11.901,5.802 11.509,5.41C11.118,5.019 10.922,4.548 10.922,3.998C10.922,3.448 11.118,2.977 11.509,2.585C11.901,2.194 12.372,1.998 12.922,1.998C13.472,1.998 13.943,2.194 14.334,2.585C14.726,2.977 14.922,3.448 14.922,3.998C14.922,4.548 14.726,5.019 14.334,5.41C13.943,5.802 13.472,5.998 12.922,5.998ZM9.922,21.998V8.998C8.922,8.914 7.905,8.789 6.872,8.623C5.839,8.456 4.855,8.248 3.922,7.998L4.422,5.998C5.722,6.348 7.105,6.602 8.572,6.76C10.038,6.919 11.488,6.998 12.922,6.998C14.355,6.998 15.805,6.919 17.272,6.76C18.739,6.602 20.122,6.348 21.422,5.998L21.922,7.998C20.989,8.248 20.005,8.456 18.972,8.623C17.938,8.789 16.922,8.914 15.922,8.998V21.998H13.922V15.998H11.922V21.998H9.922Z"
android:fillColor="@color/unitto_primary"/> android:fillColor="#378648"/>
</group> </group>
</vector> </vector>

View File

@ -27,39 +27,39 @@
android:translateY="116.608"> android:translateY="116.608">
<path <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" 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"
android:fillColor="#378648"/> android:fillColor="@color/unitto_primary"/>
<path <path
android:pathData="M307,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,357Z" android:pathData="M307,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,357Z"
android:fillColor="#FCFCF7"/> android:fillColor="@color/ic_launcher_icon_background"/>
<path <path
android:pathData="M345,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,321Z" android:pathData="M345,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,321Z"
android:fillColor="#FCFCF7"/> android:fillColor="@color/ic_launcher_icon_background"/>
<path <path
android:pathData="M345,393C345,386.37 350.37,381 357,381C363.63,381 369,386.37 369,393C369,399.63 363.63,405 357,405C350.37,405 345,399.63 345,393Z" android:pathData="M345,393C345,386.37 350.37,381 357,381C363.63,381 369,386.37 369,393C369,399.63 363.63,405 357,405C350.37,405 345,399.63 345,393Z"
android:fillColor="#FCFCF7"/> android:fillColor="@color/ic_launcher_icon_background"/>
<path <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" 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"
android:fillColor="#378648"/> android:fillColor="@color/unitto_primary"/>
<path <path
android:pathData="M115.15,317.15C119.35,312.95 126.17,312.95 130.37,317.15L195.62,382.4C199.82,386.6 199.82,393.42 195.62,397.62C191.42,401.82 184.6,401.82 180.4,397.62L115.15,332.37C110.95,328.17 110.95,321.35 115.15,317.15Z" android:pathData="M115.15,317.15C119.35,312.95 126.17,312.95 130.37,317.15L195.62,382.4C199.82,386.6 199.82,393.42 195.62,397.62C191.42,401.82 184.6,401.82 180.4,397.62L115.15,332.37C110.95,328.17 110.95,321.35 115.15,317.15Z"
android:fillColor="#FCFCF7"/> android:fillColor="@color/ic_launcher_icon_background"/>
<path <path
android:pathData="M195.62,317.15C199.82,321.35 199.82,328.17 195.62,332.37L130.37,397.62C126.17,401.82 119.35,401.82 115.15,397.62C110.95,393.42 110.95,386.6 115.15,382.4L180.4,317.15C184.6,312.95 191.42,312.95 195.62,317.15Z" android:pathData="M195.62,317.15C199.82,321.35 199.82,328.17 195.62,332.37L130.37,397.62C126.17,401.82 119.35,401.82 115.15,397.62C110.95,393.42 110.95,386.6 115.15,382.4L180.4,317.15C184.6,312.95 191.42,312.95 195.62,317.15Z"
android:fillColor="#FCFCF7"/> android:fillColor="@color/ic_launcher_icon_background"/>
<path <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" 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"
android:fillColor="#378648"/> android:fillColor="@color/unitto_primary"/>
<path <path
android:pathData="M307,155C307,148.37 312.37,143 319,143H395C401.63,143 407,148.37 407,155C407,161.63 401.63,167 395,167H319C312.37,167 307,161.63 307,155Z" android:pathData="M307,155C307,148.37 312.37,143 319,143H395C401.63,143 407,148.37 407,155C407,161.63 401.63,167 395,167H319C312.37,167 307,161.63 307,155Z"
android:fillColor="#FCFCF7"/> android:fillColor="@color/ic_launcher_icon_background"/>
<path <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" 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"
android:fillColor="#378648"/> android:fillColor="@color/unitto_primary"/>
<path <path
android:pathData="M105,155C105,148.37 110.37,143 117,143H193C199.63,143 205,148.37 205,155C205,161.63 199.63,167 193,167H117C110.37,167 105,161.63 105,155Z" android:pathData="M105,155C105,148.37 110.37,143 117,143H193C199.63,143 205,148.37 205,155C205,161.63 199.63,167 193,167H117C110.37,167 105,161.63 105,155Z"
android:fillColor="#FCFCF7"/> android:fillColor="@color/ic_launcher_icon_background"/>
<path <path
android:pathData="M155,105C161.63,105 167,110.37 167,117L167,193C167,199.63 161.63,205 155,205C148.37,205 143,199.63 143,193L143,117C143,110.37 148.37,105 155,105Z" android:pathData="M155,105C161.63,105 167,110.37 167,117L167,193C167,199.63 161.63,205 155,205C148.37,205 143,199.63 143,193L143,117C143,110.37 148.37,105 155,105Z"
android:fillColor="#FCFCF7"/> android:fillColor="@color/ic_launcher_icon_background"/>
</group> </group>
</vector> </vector>

View File

@ -30,7 +30,7 @@
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"/> 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 <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: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:fillColor="@color/unitto_primary"
android:fillType="evenOdd"/> android:fillType="evenOdd"/>
</group> </group>
<group> <group>
@ -38,7 +38,7 @@
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"/> 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 <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: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:fillColor="@color/unitto_primary"
android:fillType="evenOdd"/> android:fillType="evenOdd"/>
</group> </group>
<group> <group>
@ -46,7 +46,7 @@
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"/> 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 <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: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:fillColor="@color/unitto_primary"
android:fillType="evenOdd"/> android:fillType="evenOdd"/>
</group> </group>
<group> <group>
@ -54,7 +54,7 @@
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"/> 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 <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: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:fillColor="@color/unitto_primary"
android:fillType="evenOdd"/> android:fillType="evenOdd"/>
</group> </group>
</group> </group>

View File

@ -21,12 +21,14 @@ package com.sadellie.unitto.core.ui.model
import android.os.Build import android.os.Build
import androidx.compose.material.icons.Icons import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Accessibility import androidx.compose.material.icons.filled.Accessibility
import androidx.compose.material.icons.filled.AccessibilityNew
import androidx.compose.material.icons.filled.Calculate import androidx.compose.material.icons.filled.Calculate
import androidx.compose.material.icons.filled.Event import androidx.compose.material.icons.filled.Event
import androidx.compose.material.icons.filled.Schedule import androidx.compose.material.icons.filled.Schedule
import androidx.compose.material.icons.filled.Settings import androidx.compose.material.icons.filled.Settings
import androidx.compose.material.icons.filled.SwapHoriz import androidx.compose.material.icons.filled.SwapHoriz
import androidx.compose.material.icons.outlined.Accessibility import androidx.compose.material.icons.outlined.Accessibility
import androidx.compose.material.icons.outlined.AccessibilityNew
import androidx.compose.material.icons.outlined.Calculate import androidx.compose.material.icons.outlined.Calculate
import androidx.compose.material.icons.outlined.Event import androidx.compose.material.icons.outlined.Event
import androidx.compose.material.icons.outlined.Schedule import androidx.compose.material.icons.outlined.Schedule
@ -66,8 +68,8 @@ sealed class DrawerItems(
data object BodyMass : DrawerItems( data object BodyMass : DrawerItems(
destination = TopLevelDestinations.BodyMass, destination = TopLevelDestinations.BodyMass,
selectedIcon = Icons.Filled.Accessibility, // temporary selectedIcon = Icons.Filled.AccessibilityNew,
defaultIcon = Icons.Outlined.Accessibility // temporary defaultIcon = Icons.Outlined.AccessibilityNew
) )
data object Settings : DrawerItems( data object Settings : DrawerItems(