0
0
mirror of https://github.com/markusfisch/BinaryEye.git synced 2024-09-19 19:42:18 +02:00

Add adaptive icons for shortcuts

This commit is contained in:
Markus Fisch 2020-11-01 17:55:30 +01:00
parent 8a310a1144
commit 5cd6114ba1
9 changed files with 64 additions and 0 deletions

View File

@ -0,0 +1,4 @@
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/accent"/>
<foreground android:drawable="@drawable/ic_shortcut_decode_foreground"/>
</adaptive-icon>

View File

@ -0,0 +1,12 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
android:height="108dp"
android:viewportWidth="108"
android:viewportHeight="108">
<path
android:pathData="M54,55.787m-5.719,0a5.719,5.719 0,1 1,11.438 0a5.719,5.719 0,1 1,-11.438 0"
android:fillColor="#ffffff"/>
<path
android:pathData="M48.639,37.916L45.368,41.491L39.703,41.491C37.738,41.491 36.129,43.099 36.129,45.065L36.129,66.509C36.129,68.475 37.738,70.084 39.703,70.084L68.297,70.084C70.262,70.084 71.871,68.475 71.871,66.509L71.871,45.065C71.871,43.099 70.262,41.491 68.297,41.491L62.632,41.491L59.361,37.916ZM54,64.722C49.068,64.722 45.065,60.719 45.065,55.787C45.065,50.855 49.068,46.852 54,46.852C58.932,46.852 62.935,50.855 62.935,55.787C62.935,60.719 58.932,64.722 54,64.722Z"
android:fillColor="#ffffff"/>
</vector>

View File

@ -0,0 +1,4 @@
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/accent"/>
<foreground android:drawable="@drawable/ic_shortcut_encode_foreground"/>
</adaptive-icon>

View File

@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
android:height="108dp"
android:viewportWidth="108"
android:viewportHeight="108">
<path
android:pathData="M69.75,56.25L56.25,56.25L56.25,69.75L51.75,69.75L51.75,56.25L38.25,56.25L38.25,51.75L51.75,51.75L51.75,38.25L56.25,38.25L56.25,51.75L69.75,51.75Z"
android:fillColor="#FFFFFF"/>
</vector>

View File

@ -0,0 +1,4 @@
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/accent"/>
<foreground android:drawable="@drawable/ic_shortcut_preferences_foreground"/>
</adaptive-icon>

View File

@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
android:height="108dp"
android:viewportWidth="108"
android:viewportHeight="108">
<path
android:pathData="M70.057,56.114C70.147,55.439 70.192,54.742 70.192,54C70.192,53.281 70.147,52.561 70.034,51.886L74.6,48.333C75.005,48.018 75.117,47.411 74.87,46.961L70.552,39.495C70.282,39 69.72,38.843 69.225,39L63.85,41.159C62.726,40.305 61.534,39.585 60.207,39.045L59.397,33.333C59.307,32.793 58.858,32.411 58.318,32.411L49.682,32.411C49.142,32.411 48.715,32.793 48.625,33.333L47.816,39.045C46.489,39.585 45.274,40.327 44.172,41.159L38.798,39C38.303,38.82 37.741,39 37.471,39.495L33.175,46.961C32.906,47.433 32.996,48.018 33.445,48.333L38.011,51.886C37.898,52.561 37.808,53.303 37.808,54C37.808,54.697 37.853,55.439 37.966,56.114L33.4,59.667C32.996,59.982 32.883,60.589 33.13,61.039L37.448,68.505C37.718,69 38.28,69.158 38.775,69L44.15,66.841C45.274,67.696 46.466,68.415 47.793,68.955L48.603,74.667C48.715,75.207 49.142,75.589 49.682,75.589L58.318,75.589C58.858,75.589 59.307,75.207 59.375,74.667L60.184,68.955C61.511,68.415 62.726,67.696 63.828,66.841L69.202,69C69.697,69.18 70.259,69 70.529,68.505L74.847,61.039C75.117,60.544 75.005,59.982 74.577,59.667ZM54,62.096C49.547,62.096 45.904,58.453 45.904,54C45.904,49.547 49.547,45.904 54,45.904C58.453,45.904 62.096,49.547 62.096,54C62.096,58.453 58.453,62.096 54,62.096Z"
android:fillColor="#ffffff"/>
</vector>

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<svg version="1.1" id="Ebene_1" x="0px" y="0px" viewBox="0 0 108 108" width="108px" height="108px" xmlns="http://www.w3.org/2000/svg">
<style type="text/css" id="style3">
.st0{clip-path:url(#SVGID_2_);fill:#FFFFFF;}
</style>
<circle style="opacity:1;fill:#ffffff;stop-opacity:1" cx="54" cy="55.787" r="5.719" id="circle911"/>
<path style="opacity:1;fill:#ffffff;stop-opacity:1" d="M 48.639 37.916 L 45.368 41.491 L 39.703 41.491 C 37.738 41.491 36.129 43.099 36.129 45.065 L 36.129 66.509 C 36.129 68.475 37.738 70.084 39.703 70.084 L 68.297 70.084 C 70.262 70.084 71.871 68.475 71.871 66.509 L 71.871 45.065 C 71.871 43.099 70.262 41.491 68.297 41.491 L 62.632 41.491 L 59.361 37.916 Z M 54 64.722 C 49.068 64.722 45.065 60.719 45.065 55.787 C 45.065 50.855 49.068 46.852 54 46.852 C 58.932 46.852 62.935 50.855 62.935 55.787 C 62.935 60.719 58.932 64.722 54 64.722 Z" id="path913"/>
</svg>

After

Width:  |  Height:  |  Size: 931 B

View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<svg height="108px" width="108px" viewBox="0 0 108 108" y="0px" x="0px" id="Ebene_1" version="1.1" xmlns="http://www.w3.org/2000/svg">
<style id="style3" type="text/css">
.st0{clip-path:url(#SVGID_2_);fill:#FFFFFF;}
</style>
<path id="path879" d="M 69.75 56.25 L 56.25 56.25 L 56.25 69.75 L 51.75 69.75 L 51.75 56.25 L 38.25 56.25 L 38.25 51.75 L 51.75 51.75 L 51.75 38.25 L 56.25 38.25 L 56.25 51.75 L 69.75 51.75 Z" style="opacity: 1; stop-opacity: 1; fill: rgb(255, 255, 255);"/>
</svg>

After

Width:  |  Height:  |  Size: 529 B

View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<svg height="108px" width="108px" viewBox="0 0 108 108" y="0px" x="0px" id="Ebene_1" version="1.1" xmlns="http://www.w3.org/2000/svg">
<style id="style3" type="text/css">
.st0{clip-path:url(#SVGID_2_);fill:#FFFFFF;}
</style>
<path id="path895" d="M 70.057 56.114 C 70.147 55.439 70.192 54.742 70.192 54 C 70.192 53.281 70.147 52.561 70.034 51.886 L 74.6 48.333 C 75.005 48.018 75.117 47.411 74.87 46.961 L 70.552 39.495 C 70.282 39 69.72 38.843 69.225 39 L 63.85 41.159 C 62.726 40.305 61.534 39.585 60.207 39.045 L 59.397 33.333 C 59.307 32.793 58.858 32.411 58.318 32.411 L 49.682 32.411 C 49.142 32.411 48.715 32.793 48.625 33.333 L 47.816 39.045 C 46.489 39.585 45.274 40.327 44.172 41.159 L 38.798 39 C 38.303 38.82 37.741 39 37.471 39.495 L 33.175 46.961 C 32.906 47.433 32.996 48.018 33.445 48.333 L 38.011 51.886 C 37.898 52.561 37.808 53.303 37.808 54 C 37.808 54.697 37.853 55.439 37.966 56.114 L 33.4 59.667 C 32.996 59.982 32.883 60.589 33.13 61.039 L 37.448 68.505 C 37.718 69 38.28 69.158 38.775 69 L 44.15 66.841 C 45.274 67.696 46.466 68.415 47.793 68.955 L 48.603 74.667 C 48.715 75.207 49.142 75.589 49.682 75.589 L 58.318 75.589 C 58.858 75.589 59.307 75.207 59.375 74.667 L 60.184 68.955 C 61.511 68.415 62.726 67.696 63.828 66.841 L 69.202 69 C 69.697 69.18 70.259 69 70.529 68.505 L 74.847 61.039 C 75.117 60.544 75.005 59.982 74.577 59.667 Z M 54 62.096 C 49.547 62.096 45.904 58.453 45.904 54 C 45.904 49.547 49.547 45.904 54 45.904 C 58.453 45.904 62.096 49.547 62.096 54 C 62.096 58.453 58.453 62.096 54 62.096 Z" style="opacity:1;fill:#ffffff;stop-opacity:1"/>
</svg>

After

Width:  |  Height:  |  Size: 1.6 KiB