Skip to content

Commit

Permalink
Fix icon scale and rebase off latest revision of the material icon
Browse files Browse the repository at this point in the history
This also adjusts how transformations are applied to make the math
prettier.

Signed-off-by: Andrew Gunnerson <[email protected]>
  • Loading branch information
chenxiaolong committed Nov 16, 2024
1 parent 7309bf7 commit 3fc8b51
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 26 deletions.
19 changes: 11 additions & 8 deletions app/images/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 9 additions & 8 deletions app/src/main/res/drawable/ic_launcher_foreground.xml
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:tint="?attr/colorControlNormal"
android:viewportWidth="48"
android:viewportHeight="48">
android:viewportWidth="960"
android:viewportHeight="960">

<group
android:scaleX="0.4"
android:scaleY="0.4"
android:pivotX="24"
android:pivotY="24">
android:scaleX="0.5"
android:scaleY="0.5"
android:pivotX="480"
android:pivotY="-480"
android:translateX="0"
android:translateY="960">
<path
android:fillColor="@android:color/white"
android:pathData="M22.85 26.5h9.05q1.2 0 2.05-.85.85-.85.85-2.05 0-1.2-.85-2.075-.85-.875-2.05-.875h-.6l-.1-.5q-.2-1.55-1.4-2.6T27 16.5q-1.3 0-2.4.65-1.1.65-1.5 1.8l-.1.35h-.4q-1.45 0-2.425 1.075Q19.2 21.45 19.2 22.9t1.075 2.525Q21.35 26.5 22.85 26.5ZM5 42q-1.2 0-2.1-.9Q2 40.2 2 39V10.5h3V39h36.5v3Zm6-6q-1.2 0-2.1-.9Q8 34.2 8 33V7q0-1.2.9-2.1Q9.8 4 11 4h13l3 3h16q1.2 0 2.1.9.9.9.9 2.1v23q0 1.2-.9 2.1-.9.9-2.1.9Zm0-3h32V10H25.75l-3-3H11v26Zm0 0V7v26Z" />
android:pathData="M471.15-446.15h171.46q22.54 0 38.24-15.7 15.69-15.69 15.69-38.23 0-22.53-15.69-38.73Q665.15-555 642.61-555h-12l-1.53-9.62q-4.24-29.3-26.5-49.26-22.27-19.97-52.58-19.97-24.08 0-43.15 12.54-19.08 12.54-29.31 33.62l-3.08 6.15-7.31.39q-26.92 2-45.3 21-18.39 19-18.39 46.3 0 27.31 19.58 47.5 19.57 20.2 48.11 20.2ZM132.31-144.62q-30.31 0-51.31-21-21-21-21-51.3v-461.54h60v461.54q0 4.61 3.85 8.46 3.84 3.84 8.46 3.84h648.46v60H132.31Zm140-140q-30.31 0-51.31-21-21-21-21-51.3v-430.77Q200-818 221-839q21-21 51.31-21H480l64.61 64.62h283.08q30.31 0 51.31 21 21 21 21 51.3v366.16q0 30.3-21 51.3-21 21-51.31 21H272.31Zm0-59.99h555.38q4.62 0 8.46-3.85 3.85-3.85 3.85-8.46v-366.16q0-4.61-3.85-8.46-3.84-3.85-8.46-3.85h-308L455.08-800H272.31q-5.39 0-8.85 3.46t-3.46 8.85v430.77q0 4.61 3.84 8.46 3.85 3.85 8.47 3.85Zm-12.31 0V-800v455.39Z" />
</group>
</vector>
17 changes: 7 additions & 10 deletions app/src/main/res/drawable/ic_notifications.xml
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:tint="?attr/colorControlNormal"
android:viewportWidth="24"
android:viewportHeight="24">
android:viewportWidth="960"
android:viewportHeight="960">

<group
android:scaleX="0.4"
android:scaleY="0.4"
android:pivotX="24"
android:pivotY="24"
android:translateX="-12"
android:translateY="-12">
android:pivotX="480"
android:pivotY="-480"
android:translateX="0"
android:translateY="960">
<path
android:fillColor="@android:color/white"
android:pathData="M22.85 26.5h9.05q1.2 0 2.05-.85.85-.85.85-2.05 0-1.2-.85-2.075-.85-.875-2.05-.875h-.6l-.1-.5q-.2-1.55-1.4-2.6T27 16.5q-1.3 0-2.4.65-1.1.65-1.5 1.8l-.1.35h-.4q-1.45 0-2.425 1.075Q19.2 21.45 19.2 22.9t1.075 2.525Q21.35 26.5 22.85 26.5ZM5 42q-1.2 0-2.1-.9Q2 40.2 2 39V10.5h3V39h36.5v3Zm6-6q-1.2 0-2.1-.9Q8 34.2 8 33V7q0-1.2.9-2.1Q9.8 4 11 4h13l3 3h16q1.2 0 2.1.9.9.9.9 2.1v23q0 1.2-.9 2.1-.9.9-2.1.9Zm0-3h32V10H25.75l-3-3H11v26Zm0 0V7v26Z" />
android:pathData="M471.15-446.15h171.46q22.54 0 38.24-15.7 15.69-15.69 15.69-38.23 0-22.53-15.69-38.73Q665.15-555 642.61-555h-12l-1.53-9.62q-4.24-29.3-26.5-49.26-22.27-19.97-52.58-19.97-24.08 0-43.15 12.54-19.08 12.54-29.31 33.62l-3.08 6.15-7.31.39q-26.92 2-45.3 21-18.39 19-18.39 46.3 0 27.31 19.58 47.5 19.57 20.2 48.11 20.2ZM132.31-144.62q-30.31 0-51.31-21-21-21-21-51.3v-461.54h60v461.54q0 4.61 3.85 8.46 3.84 3.84 8.46 3.84h648.46v60H132.31Zm140-140q-30.31 0-51.31-21-21-21-21-51.3v-430.77Q200-818 221-839q21-21 51.31-21H480l64.61 64.62h283.08q30.31 0 51.31 21 21 21 21 51.3v366.16q0 30.3-21 51.3-21 21-51.31 21H272.31Zm0-59.99h555.38q4.62 0 8.46-3.85 3.85-3.85 3.85-8.46v-366.16q0-4.61-3.85-8.46-3.84-3.85-8.46-3.85h-308L455.08-800H272.31q-5.39 0-8.85 3.46t-3.46 8.85v430.77q0 4.61 3.84 8.46 3.85 3.85 8.47 3.85Zm-12.31 0V-800v455.39Z" />
</group>
</vector>

0 comments on commit 3fc8b51

Please sign in to comment.