Skip to content

Commit

Permalink
shortcut icons updated to be consistent with the UI (ankidroid#14268)
Browse files Browse the repository at this point in the history
* shortcut icons updated to be consistent with the UI

* shortcut icons updated to be consistent with the UI
  • Loading branch information
criticalAY authored Aug 21, 2023
1 parent 254516f commit 76157cf
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 51 deletions.
37 changes: 20 additions & 17 deletions AnkiDroid/src/main/res/drawable/add_shortcut.xml
Original file line number Diff line number Diff line change
@@ -1,25 +1,28 @@
<!--
~ Copyright 2xxx, Google Material Design Icons
~ Copyright (c) 2023 Ashish Yadav <[email protected]>
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~ 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.
~
~ http://www.apache.org/licenses/LICENSE-2.0
~ 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.
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
~ You should have received a copy of the GNU General Public License along with
~ this program. If not, see <http://www.gnu.org/licenses/>.
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="96dp"
android:height="96dp"
android:viewportHeight="24"
android:viewportWidth="24"
android:tint="@android:color/holo_blue_dark">
android:width="48dp"
android:height="48dp"
android:viewportWidth="1000"
android:viewportHeight="1000">
<path
android:fillColor="#FFFFFF"
android:pathData="M19,13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z" />
android:strokeWidth="0"
android:strokeMiterLimit="100"
android:pathData="m500 58.9c238.1 0 431.1 193 431.1 431.1c0 238.1 -193 431.1 -431.1 431.1c-238.1 0 -431.1 -193 -431.1 -431.1c0 -238.1 193 -431.1 431.1 -431.1z" />
<path android:fillColor="@android:color/holo_blue_dark"
android:pathData="M470,359.5l0,110.5 -110.5,-0 -110.5,-0 0,30 0,30 110.5,-0 110.5,-0 0,110.5 0,110.5 30,-0 30,-0 0,-110.5 0,-110.5 110.5,-0 110.5,-0 0,-30 0,-30 -110.5,-0 -110.5,-0 0,-110.5 0,-110.5 -30,-0 -30,-0 0,110.5z" android:strokeColor="#00000000"/>
</vector>
43 changes: 24 additions & 19 deletions AnkiDroid/src/main/res/drawable/browse_shortcut.xml
Original file line number Diff line number Diff line change
@@ -1,25 +1,30 @@
<!--
~ Copyright 2xxx, Google Material Design Icons
~ Copyright (c) 2023 Ashish Yadav <[email protected]>
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~ 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.
~
~ http://www.apache.org/licenses/LICENSE-2.0
~ 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.
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
~ You should have received a copy of the GNU General Public License along with
~ this program. If not, see <http://www.gnu.org/licenses/>.
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:viewportWidth="24"
android:viewportHeight="24"
android:tint="@android:color/holo_blue_dark"
android:width="24dp"
android:height="24dp">
android:width="48dp"
android:height="48dp"
android:viewportWidth="1000"
android:viewportHeight="1000">
<path
android:pathData="M19 14V6C19 4.9 18.1 4 17 4H3C1.9 4 1 4.9 1 6v8c0 1.1 0.9 2 2 2h14c1.1 0 2 -0.9 2 -2zm-2 0H3V6H17ZM23 8.9846154V18c0 1.1 -0.9 2 -2 2H5.9846154A1.9846154 1.9846154 45 0 1 4 18.015385V18H21V7h0.01538A1.9846154 1.9846154 45 0 1 23 8.9846154Z"
android:fillColor="#FFFFFF" />
</vector>
android:fillColor="#FFFFFF"
android:strokeWidth="0"
android:strokeMiterLimit="100"
android:pathData="m500 58.9c238.1 0 431.1 193 431.1 431.1c0 238.1 -193 431.1 -431.1 431.1c-238.1 0 -431.1 -193 -431.1 -431.1c0 -238.1 193 -431.1 431.1 -431.1z" />
<path android:fillColor="@android:color/holo_blue_dark"
android:pathData="M284.3,319.5c-13.6,3.7 -23.9,12.3 -30.1,25.2l-3.7,7.8 -0.3,98.5c-0.2,72.3 0,100 0.8,104 2.6,11.9 12,24.5 22.6,30.2 11.2,6 2.7,5.8 180.9,5.8 178.1,-0 169.8,0.2 180.8,-5.7 6.4,-3.6 14.5,-11.6 17.9,-17.9 6,-11 5.8,-8 5.8,-112.9 0,-104.4 0.2,-101.3 -5.6,-112.7 -5.3,-10.5 -16.5,-19 -29.1,-22.3 -8.4,-2.2 -331.9,-2.1 -340,-0zM614,454.5l0,91.5 -159.5,-0 -159.5,-0 0,-91.5 0,-91.5 159.5,-0 159.5,-0 0,91.5z" android:strokeColor="#00000000"/>
<path android:fillColor="@android:color/holo_blue_dark"
android:pathData="M705,511.6l0,125.4 -193.6,-0 -193.6,-0 0.6,4.7c2.8,19.5 15.5,33.9 34.3,38.8 8.6,2.3 354,2.3 362.6,-0 14,-3.6 24.2,-12.1 30.5,-25.2l3.7,-7.8 0,-113.5 0,-113.5 -3.3,-6.9c-1.8,-3.9 -4.8,-8.8 -6.7,-11.1 -6.7,-8.2 -18.8,-14.6 -29.7,-15.8l-4.8,-0.5 0,125.4z" android:strokeColor="#00000000"/>
</vector>
41 changes: 26 additions & 15 deletions AnkiDroid/src/main/res/drawable/review_shortcut.xml
Original file line number Diff line number Diff line change
@@ -1,17 +1,28 @@
<!--
~ Copyright (c) 2023 Ashish Yadav <[email protected]>
~
~ 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 <http://www.gnu.org/licenses/>.
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="120"
android:viewportHeight="124"
android:tint="@android:color/holo_blue_dark">
<group android:scaleX="0.89032257"
android:scaleY="0.92"
android:translateX="6.580645"
android:translateY="4.96">
<path
android:name="path_1"
android:pathData="M 48 0 C 47 0 45.9 0.1 44.9 0.4 C 40.7 1.8 38.6 5.8 37.6 9.5 C 36.6 13.2 36.4 17.3 36.3 21.4 C 36.2 25.5 36.1 29.7 35.8 33.1 C 35.5 36.5 34.6 39 34.1 39.7 C 33.6 40.4 31.4 42 28.3 43.3 C 25.2 44.7 21.3 46 17.4 47.4 C 13.5 48.8 9.7 50.3 6.4 52.3 C 3.2 54.3 0 57.5 0 62 C 0 66.5 3.1 69.6 6.4 71.7 C 9.7 73.8 13.4 75.2 17.3 76.7 C 21.2 78.1 25.1 79.4 28.2 80.8 C 31.3 82.2 33.5 83.7 34 84.4 C 34.5 85.1 35.3 87.7 35.6 91.1 C 35.9 94.5 36 98.6 36.1 102.8 C 36.2 106.9 36.5 111 37.4 114.7 C 38.3 118.4 40.4 122.4 44.6 123.8 C 48.8 125.2 52.8 123.2 55.8 120.7 C 58.8 118.2 61.4 115.1 63.9 111.9 C 66.4 108.7 68.9 105.3 71.2 102.8 C 73.5 100.3 75.6 98.6 76.5 98.4 C 77.3 98.1 80 98.2 83.3 98.9 C 86.6 99.6 90.6 100.9 94.5 102 C 98.5 103.1 102.4 104.2 106.2 104.4 C 110 104.6 114.4 103.9 117.1 100.3 C 119.7 96.7 119.1 92.3 117.7 88.7 C 116.3 85.1 114.1 81.7 111.8 78.3 C 109.5 74.9 107.1 71.5 105.4 68.6 C 103.7 65.7 102.8 63.1 102.8 62.2 C 102.8 61.2 103.9 58.2 106.1 54.8 C 108.2 51.4 111.1 47.5 113.6 43.7 C 115.6 40.7 117.3 37.6 118.4 34.5 C 119.4 31.3 119.7 27.4 117.4 24.2 C 114.8 20.6 110.4 19.9 106.5 20.1 C 102.7 20.3 98.7 21.4 94.7 22.5 C 90.7 23.6 86.8 24.9 83.5 25.6 C 80.2 26.3 77.5 26.3 76.7 26.1 C 75.9 25.9 73.7 24.2 71.4 21.7 C 69.1 19.1 66.7 15.8 64.2 12.5 C 61.7 9.2 59.1 6.1 56.1 3.6 C 53.8 1.7 51 0.1 48 0 Z"
android:fillColor="#FFFFFF"
android:strokeWidth="1"/>
</group>
android:width="48dp"
android:height="48dp"
android:viewportWidth="1000"
android:viewportHeight="1000">
<path
android:fillColor="#FFFFFF"
android:strokeWidth="0"
android:strokeMiterLimit="100"
android:pathData="m500 58.9c238.1 0 431.1 193 431.1 431.1c0 238.1 -193 431.1 -431.1 431.1c-238.1 0 -431.1 -193 -431.1 -431.1c0 -238.1 193 -431.1 431.1 -431.1z" />
<path android:fillColor="@android:color/holo_blue_dark"
android:pathData="M438.8,232.9c-11.3,3.7 -20.9,13.5 -26.8,27.7 -6.5,15.6 -8.4,30.6 -10,80.4 -1.4,40.6 -4,57.1 -10.2,63.8 -6.4,6.7 -24.8,15.6 -56.3,27.1 -44,16.1 -60.1,24.5 -72.3,37.5 -17.4,18.7 -17.4,41.5 0,60.2 11.6,12.3 30.7,22.5 69.8,36.9 27.3,10.1 49.5,20.5 56.1,26.3 3.9,3.5 4.9,5.2 6.7,11.4 3.3,11.4 4.2,20.6 5.7,60.8 1.9,48.4 4,62.7 11.5,78.5 8.9,18.7 26.7,28.6 44.1,24.5 20,-4.6 37.1,-20.9 73.9,-70 14.6,-19.5 33.3,-39 39.4,-41 8.7,-2.8 24.3,-0 64.7,11.9 31.1,9.1 40.6,11.5 53.4,13.2 40.8,5.4 66.3,-17.5 59,-53.2 -3.4,-17.1 -10,-30 -35.3,-68.9 -17.6,-27.1 -25.7,-41.4 -29.2,-52 -2,-5.8 -2.1,-7.1 -1,-11.9 2.1,-9.2 11.2,-25.6 31,-55.6 18.4,-27.9 29.6,-48 33.5,-60 2.9,-9 4,-19.8 2.8,-27.1 -4.2,-24.1 -23.7,-37 -53,-35 -15.3,1.1 -26.6,3.7 -71.3,16.9 -23.5,7 -33.3,8.9 -44.6,9.1 -8.4,0.1 -9.4,-0.1 -13.1,-2.7 -10.5,-7.2 -21.1,-19.5 -46,-53.3 -7.3,-9.8 -16.5,-21.5 -20.5,-26 -23.9,-26.4 -43,-35.5 -62,-29.5z" android:strokeColor="#00000000"/>
</vector>

0 comments on commit 76157cf

Please sign in to comment.