Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Switch to adaptive icon 🔑 #13

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 9 additions & 25 deletions app/src/main/res/drawable-v24/ic_launcher_foreground.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,29 +12,13 @@
xmlns:aapt="http://schemas.android.com/aapt"
android:width="108dp"
android:height="108dp"
android:viewportWidth="108"
android:viewportHeight="108">
<path android:pathData="M31,63.928c0,0 6.4,-11 12.1,-13.1c7.2,-2.6 26,-1.4 26,-1.4l38.1,38.1L107,108.928l-32,-1L31,63.928z">
<aapt:attr name="android:fillColor">
<gradient
android:endX="85.84757"
android:endY="92.4963"
android:startX="42.9492"
android:startY="49.59793"
android:type="linear">
<item
android:color="#44000000"
android:offset="0.0" />
<item
android:color="#00000000"
android:offset="1.0" />
</gradient>
</aapt:attr>
</path>
<path
android:fillColor="#FFFFFF"
android:fillType="nonZero"
android:pathData="M65.3,45.828l3.8,-6.6c0.2,-0.4 0.1,-0.9 -0.3,-1.1c-0.4,-0.2 -0.9,-0.1 -1.1,0.3l-3.9,6.7c-6.3,-2.8 -13.4,-2.8 -19.7,0l-3.9,-6.7c-0.2,-0.4 -0.7,-0.5 -1.1,-0.3C38.8,38.328 38.7,38.828 38.9,39.228l3.8,6.6C36.2,49.428 31.7,56.028 31,63.928h46C76.3,56.028 71.8,49.428 65.3,45.828zM43.4,57.328c-0.8,0 -1.5,-0.5 -1.8,-1.2c-0.3,-0.7 -0.1,-1.5 0.4,-2.1c0.5,-0.5 1.4,-0.7 2.1,-0.4c0.7,0.3 1.2,1 1.2,1.8C45.3,56.528 44.5,57.328 43.4,57.328L43.4,57.328zM64.6,57.328c-0.8,0 -1.5,-0.5 -1.8,-1.2s-0.1,-1.5 0.4,-2.1c0.5,-0.5 1.4,-0.7 2.1,-0.4c0.7,0.3 1.2,1 1.2,1.8C66.5,56.528 65.6,57.328 64.6,57.328L64.6,57.328z"
android:strokeWidth="1"
android:strokeColor="#00000000" />
android:viewportWidth="44"
android:viewportHeight="44">
<group
android:translateX="12"
android:translateY="12">
<path
android:fillColor="#fff"
android:pathData="M18.457,9.114c-0.16,0.116 -0.276,0.276 -0.34,0.453l0.043,-0.105s-0.409,0.237 -0.96,0.149c-0.489,-0.077 -0.627,-0.276 -0.627,-0.276s0,0.033 0.006,0.077c-0.144,-1.684 -0.85,-3.202 -1.92,-4.344l0.005,0.005s0.175,-0.833 0.424,-1.236c0.25,-0.403 0.95,-0.8 0.95,-0.8 -0.011,0 -0.027,-0.006 -0.038,-0.006 0.032,0 0.064,0.005 0.096,0.005 0.806,0 1.459,-0.679 1.459,-1.518S16.902,0 16.095,0c-0.805,0 -1.458,0.679 -1.458,1.518 0,0.26 0.064,0.502 0.17,0.712 -0.01,-0.016 -0.016,-0.033 -0.016,-0.033s-0.064,0.734 -0.658,1.353c-0.483,0.502 -0.663,0.485 -0.716,0.463 0.026,0.017 0.074,0.05 0.143,0.1 -1.093,-0.762 -2.409,-1.21 -3.82,-1.21 -0.902,0 -1.761,0.183 -2.551,0.514 0.1,-0.044 0.217,-0.094 0.307,-0.127 0.149,-0.05 0.34,-0.11 0.34,-0.11s-0.308,-0.31 -0.403,-0.541c-0.101,-0.227 -0.07,-0.657 -0.07,-0.657 -0.02,0.027 -0.042,0.05 -0.058,0.072 0.027,-0.034 0.053,-0.061 0.075,-0.1 0.228,-0.37 0.127,-0.861 -0.229,-1.098 -0.355,-0.238 -0.827,-0.133 -1.055,0.237 -0.228,0.37 -0.128,0.861 0.228,1.099 0.127,0.088 0.27,0.127 0.414,0.127 -0.053,0 -0.085,-0.006 -0.085,-0.006s0.286,0.237 0.387,0.685c0.08,0.347 0.005,0.463 -0.01,0.485 -1.619,0.729 -2.908,2.07 -3.603,3.749 -0.08,0.01 -0.551,0.06 -0.827,-0.011 -0.297,-0.078 -0.69,-0.453 -0.69,-0.453 0.01,0.044 0.016,0.083 0.021,0.121 -0.01,-0.055 -0.016,-0.105 -0.037,-0.16 -0.175,-0.53 -0.727,-0.811 -1.236,-0.635 -0.51,0.188 -0.78,0.768 -0.605,1.298 0.175,0.53 0.727,0.811 1.236,0.635 0.186,-0.067 0.34,-0.188 0.451,-0.337l-0.069,0.088s0.457,-0.105 0.966,0.144c0.329,0.16 0.424,0.303 0.45,0.37 -0.137,0.563 -0.211,1.159 -0.211,1.766 0,1.866 0.69,3.572 1.82,4.841 -0.017,0.083 -0.186,0.878 -0.42,1.264 -0.25,0.403 -0.95,0.8 -0.95,0.8 0.011,0 0.027,0.006 0.038,0.006 -0.032,0 -0.064,-0.005 -0.096,-0.005 -0.806,0 -1.459,0.679 -1.459,1.518S2.462,20 3.27,20c0.806,0 1.458,-0.679 1.458,-1.518 0,-0.26 -0.064,-0.497 -0.17,-0.712 0.01,0.016 0.016,0.033 0.016,0.033s0.064,-0.734 0.658,-1.352c0.403,-0.42 0.615,-0.459 0.71,-0.437 1.088,0.751 2.394,1.193 3.8,1.193 0.901,0 1.76,-0.182 2.551,-0.508 -0.09,0.038 -0.164,0.066 -0.164,0.066s0.217,0.226 0.291,0.386c0.075,0.166 0.048,0.475 0.048,0.475 0.016,-0.016 0.032,-0.038 0.043,-0.055 -0.022,0.022 -0.037,0.044 -0.053,0.072 -0.165,0.265 -0.09,0.618 0.164,0.79 0.255,0.17 0.594,0.093 0.759,-0.172 0.164,-0.265 0.09,-0.618 -0.165,-0.79 -0.09,-0.06 -0.196,-0.088 -0.297,-0.088h0.064s-0.207,-0.17 -0.276,-0.49c-0.064,-0.283 0,-0.382 0,-0.382l-0.09,0.044c2.223,-1.065 3.809,-3.34 3.979,-6.011 0.01,-0.006 0.52,-0.26 0.827,-0.27 0.308,-0.012 0.785,0.231 0.785,0.231 -0.021,-0.039 -0.037,-0.072 -0.053,-0.11 0.021,0.05 0.048,0.094 0.075,0.143 0.313,0.458 0.917,0.569 1.358,0.243 0.44,-0.326 0.546,-0.955 0.233,-1.413 -0.318,-0.47 -0.928,-0.574 -1.363,-0.254zM15.337,2.821l-0.032,-0.017c-0.005,-0.005 -0.01,-0.005 -0.015,-0.01 0.02,0.005 0.037,0.016 0.047,0.027zM1.926,7.303c0,0.006 -0.005,0.011 -0.005,0.017 0.016,-0.06 0.026,-0.116 0.031,-0.182 -0.01,0.05 -0.015,0.105 -0.026,0.165zM4.021,17.179c0.011,0.006 0.022,0.011 0.027,0.017 0.005,0.005 0.01,0.005 0.016,0.01l-0.043,-0.027zM14.032,4.477c-0.138,-0.116 -0.281,-0.226 -0.43,-0.331 0.128,0.094 0.297,0.215 0.43,0.331zM7.051,2.252c-0.006,0 -0.01,0.006 -0.01,0.006 0.041,-0.017 0.079,-0.044 0.121,-0.066 -0.032,0.016 -0.069,0.038 -0.111,0.06zM10.934,9.506l-1.003,1.043c0.112,0.315 0.048,0.68 -0.196,0.933 -0.334,0.348 -0.87,0.348 -1.204,0 -0.334,-0.348 -0.334,-0.905 0,-1.253 0.244,-0.254 0.594,-0.32 0.896,-0.204l1.003,-1.043c0.138,-0.144 0.366,-0.144 0.504,0 0.143,0.143 0.143,0.38 0,0.524zM11.984,12.802c-0.106,-0.11 -0.106,-0.282 0,-0.392 1.2,-1.248 1.2,-3.274 0,-4.516 -1.199,-1.248 -3.146,-1.248 -4.34,0 -0.105,0.11 -0.27,0.11 -0.376,0 -0.106,-0.11 -0.106,-0.282 0,-0.392 1.406,-1.463 3.687,-1.463 5.093,0 1.406,1.463 1.406,3.837 0,5.3 -0.1,0.104 -0.27,0.104 -0.377,0zM12.684,17.427c0.006,0 0.006,0 0.011,-0.005 -0.032,0.011 -0.058,0.028 -0.085,0.05 0.022,-0.017 0.048,-0.033 0.075,-0.045zM12.377,16.649c-0.021,0.006 -0.037,0.017 -0.053,0.022 0.09,-0.038 0.18,-0.077 0.27,-0.121 -0.063,0.033 -0.148,0.072 -0.217,0.1zM13.783,14.275c-0.106,0.11 -0.27,0.11 -0.377,0 -0.106,-0.11 -0.106,-0.281 0,-0.392 1.979,-2.058 1.979,-5.41 0,-7.468 -1.979,-2.06 -5.199,-2.06 -7.178,0 -0.106,0.11 -0.27,0.11 -0.376,0 -0.106,-0.11 -0.106,-0.282 0,-0.392 2.185,-2.275 5.745,-2.275 7.93,0 2.187,2.274 2.187,5.978 0,8.252zM16.595,10.328c0.005,-0.088 0.005,-0.182 0.005,-0.276 0.005,0.089 0,0.188 -0.006,0.277zM18.043,9.992v-0.017c0,0.06 0.01,0.122 0.021,0.182 -0.01,-0.05 -0.016,-0.105 -0.021,-0.165zM18.064,10.168c0.01,0.056 0.026,0.105 0.048,0.155 -0.016,-0.044 -0.032,-0.094 -0.048,-0.155z" />
</group>
</vector>
177 changes: 8 additions & 169 deletions app/src/main/res/drawable/ic_launcher_background.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (c) 2020 Gobierno de España
~
Expand All @@ -9,172 +8,12 @@
~ SPDX-License-Identifier: MPL-2.0
-->

<vector xmlns:android="http://schemas.android.com/apk/res/android"
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
android:height="108dp"
android:viewportWidth="108"
android:viewportHeight="108">
<path
android:fillColor="#3DDC84"
android:pathData="M0,0h108v108h-108z" />
<path
android:fillColor="#00000000"
android:pathData="M9,0L9,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,0L19,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M29,0L29,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M39,0L39,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M49,0L49,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M59,0L59,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M69,0L69,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M79,0L79,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M89,0L89,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M99,0L99,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,9L108,9"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,19L108,19"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,29L108,29"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,39L108,39"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,49L108,49"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,59L108,59"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,69L108,69"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,79L108,79"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,89L108,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,99L108,99"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,29L89,29"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,39L89,39"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,49L89,49"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,59L89,59"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,69L89,69"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,79L89,79"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M29,19L29,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M39,19L39,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M49,19L49,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M59,19L59,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M69,19L69,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M79,19L79,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
</vector>
android:height="108dp">
<gradient
android:angle="-90"
android:endColor="#907BAF"
android:startColor="#7493ED"
android:type="linear" />
</shape>
5 changes: 5 additions & 0 deletions app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/ic_launcher_background" />
<foreground android:drawable="@drawable/ic_launcher_foreground" />
</adaptive-icon>