0
0
mirror of https://github.com/markusfisch/BinaryEye.git synced 2024-09-20 03:52:16 +02:00

Add a drop shadow to crop handle

To give it a similar look like the FAB.
This commit is contained in:
Markus Fisch 2020-05-30 12:34:32 +02:00
parent fcac0add8b
commit 6b03935b9a
2 changed files with 32 additions and 6 deletions

View File

@ -1,12 +1,26 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="48dp"
android:height="48dp"
android:viewportWidth="48"
android:viewportHeight="48">
xmlns:aapt="http://schemas.android.com/aapt"
android:width="56dp"
android:height="56dp"
android:viewportWidth="56"
android:viewportHeight="56">
<path
android:pathData="M24,24m-24,0a24,24 0,1 1,48 0a24,24 0,1 1,-48 0"
android:pathData="M28,32m-24,0a24,24 0,1 1,48 0a24,24 0,1 1,-48 0">
<aapt:attr name="android:fillColor">
<gradient
android:gradientRadius="24"
android:centerX="28"
android:centerY="32"
android:type="radial">
<item android:offset="0" android:color="#FF000000"/>
<item android:offset="1" android:color="#00000000"/>
</gradient>
</aapt:attr>
</path>
<path
android:pathData="M28,28m-24,0a24,24 0,1 1,48 0a24,24 0,1 1,-48 0"
android:fillColor="#B6D46F"/>
<path
android:pathData="M29,27L31,27L31,19C31,17.9 30.1,17 29,17L21,17L21,19L29,19L29,27ZM19,29L19,13L17,13L17,17L13,17L13,19L17,19L17,29C17,30.1 17.9,31 19,31L29,31L29,35L31,35L31,31L35,31L35,29L19,29Z"
android:pathData="M33,31L35,31L35,23C35,21.9 34.1,21 33,21L25,21L25,23L33,23L33,31ZM23,33L23,17L21,17L21,21L17,21L17,23L21,23L21,33C21,34.1 21.9,35 23,35L33,35L33,39L35,39L35,35L39,35L39,33L23,33Z"
android:fillColor="#FFFFFF"/>
</vector>

12
svg/ic_crop_handle.svg Normal file
View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<svg height="56px" viewBox="0 0 56 56" width="56px" xmlns="http://www.w3.org/2000/svg">
<defs>
<radialGradient gradientUnits="userSpaceOnUse" cx="28" cy="30" r="24" id="gradient-0" gradientTransform="matrix(1, 0, 0, 1, 0, 2)">
<stop offset="0" style="stop-color: rgb(0, 0, 0);"/>
<stop offset="1" style="stop-color: rgb(0, 0, 0); stop-opacity: 0;"/>
</radialGradient>
</defs>
<circle style="filter: none; fill: url(#gradient-0);" cx="28" cy="32" r="24"/>
<circle style="fill: rgb(182, 212, 111); filter: none;" cx="28" cy="28" r="24"/>
<path d="M 33 31 L 35 31 L 35 23 C 35 21.9 34.1 21 33 21 L 25 21 L 25 23 L 33 23 L 33 31 Z M 23 33 L 23 17 L 21 17 L 21 21 L 17 21 L 17 23 L 21 23 L 21 33 C 21 34.1 21.9 35 23 35 L 33 35 L 33 39 L 35 39 L 35 35 L 39 35 L 39 33 L 23 33 Z" style="fill: rgb(255, 255, 255);"/>
</svg>

After

Width:  |  Height:  |  Size: 885 B