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

Added adaptive icon. #672

Merged
merged 2 commits into from
Feb 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 2 additions & 2 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<application
android:name=".ThumbkeyApplication"
android:allowBackup="true"
android:icon="@drawable/thumb_key_icon"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@drawable/thumb_key_icon"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.AppCompat.NoActionBar">
<activity
Expand Down
Binary file added app/src/main/ic_launcher-playstore.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
75 changes: 50 additions & 25 deletions app/src/main/res/drawable-v24/ic_launcher_foreground.xml
Original file line number Diff line number Diff line change
@@ -1,30 +1,55 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
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" />
</vector>
<path
android:fillColor="#000000"
android:pathData="m44.33,25.94c-3,0 -5.46,2.45 -5.46,5.46v45.2c0,3 2.45,5.46 5.46,5.46h19.35c3,0 5.46,-2.45 5.46,-5.46L69.13,31.4c0,-3 -2.45,-5.46 -5.46,-5.46zM44.33,28.36h2.04c-0.01,0.06 -0.01,0.12 -0.01,0.18 0,1.04 0.88,1.92 1.92,1.92h11.44c1.04,0 1.92,-0.88 1.92,-1.92 0,-0.06 -0,-0.12 -0.01,-0.18h2.04c1.71,0 3.04,1.34 3.04,3.04v45.2c0,1.71 -1.34,3.04 -3.04,3.04L44.33,79.64c-1.71,0 -3.04,-1.34 -3.04,-3.04L41.28,31.4c0,-1.71 1.34,-3.04 3.04,-3.04z"
android:strokeWidth="0.265666" />
<path
android:fillColor="#000000"
android:pathData="M54,46.84m-2.51,0a2.51,2.51 0,1 1,5.03 0a2.51,2.51 0,1 1,-5.03 0"
android:strokeWidth="2.37"
android:strokeColor="#00000000" />
<path
android:fillColor="#000000"
android:pathData="M46.84,46.84m-2.51,0a2.51,2.51 0,1 1,5.03 0a2.51,2.51 0,1 1,-5.03 0"
android:strokeWidth="2.37"
android:strokeColor="#00000000" />
<path
android:fillColor="#000000"
android:pathData="M61.16,46.84m-2.51,0a2.51,2.51 0,1 1,5.03 0a2.51,2.51 0,1 1,-5.03 0"
android:strokeWidth="2.37"
android:strokeColor="#00000000" />
<path
android:fillColor="#000000"
android:pathData="M61.16,54m-2.51,0a2.51,2.51 0,1 1,5.03 0a2.51,2.51 135,1 1,-5.03 0"
android:strokeWidth="2.37"
android:strokeColor="#00000000" />
<path
android:fillColor="#000000"
android:pathData="M54,54m-2.51,0a2.51,2.51 45,1 1,5.03 0a2.51,2.51 135,1 1,-5.03 0"
android:strokeWidth="2.37"
android:strokeColor="#00000000" />
<path
android:fillColor="#000000"
android:pathData="M46.84,54m-2.51,0a2.51,2.51 0,1 1,5.03 0a2.51,2.51 0,1 1,-5.03 0"
android:strokeWidth="2.37"
android:strokeColor="#00000000" />
<path
android:fillColor="#000000"
android:pathData="M46.84,61.16m-2.51,0a2.51,2.51 0,1 1,5.03 0a2.51,2.51 0,1 1,-5.03 0"
android:strokeWidth="2.37"
android:strokeColor="#00000000" />
<path
android:fillColor="#000000"
android:pathData="M54,61.16m-2.51,0a2.51,2.51 0,1 1,5.03 0a2.51,2.51 0,1 1,-5.03 0"
android:strokeWidth="2.37"
android:strokeColor="#00000000" />
<path
android:fillColor="#000000"
android:pathData="M61.16,61.16m-2.51,0a2.51,2.51 0,1 1,5.03 0a2.51,2.51 0,1 1,-5.03 0"
android:strokeWidth="2.37"
android:strokeColor="#00000000" />
</vector>
163 changes: 1 addition & 162 deletions app/src/main/res/drawable/ic_launcher_background.xml
Original file line number Diff line number Diff line change
@@ -1,170 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<vector 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:fillColor="#ffffff"
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>
77 changes: 53 additions & 24 deletions app/src/main/res/drawable/thumb_key_icon.xml
Original file line number Diff line number Diff line change
@@ -1,27 +1,56 @@
<vector android:autoMirrored="true"
android:height="108dp"
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:autoMirrored="true"
android:width="108dp"
android:viewportHeight="108"
android:height="108dp"
android:viewportWidth="108"
xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="#000000"
android:pathData="M102.5,27.6c-4.3,2.2 -6.45,4.4 -8.6,8.6 -2.95,5.8 -2.95,182.85 0,188.6 5.75,11.15 6.05,11.2 55.7,11.2 47.8,-0 47.2,0.1 53.1,-7.65l2.8,-3.7 0.25,-92.6 0.3,-92.6 -3,-4.7c-5.65,-8.9 -4.6,-8.75 -54.25,-8.75 -37.3,-0 -43.7,0.25 -46.3,1.6zM120,37.05c2.4,5.8 3.2,5.95 29.1,5.95 25.95,-0 27.8,-0.4 29.3,-6.5 1.1,-4.3 11.6,-3.7 16.2,0.9l3.4,3.4 0,90.2 0,90.2 -3.4,3.4 -3.4,3.4 -41.15,-0c-45.35,-0 -45.15,0.05 -48.4,-6.15 -1.65,-3.15 -1.75,-9.2 -1.45,-92.7l0.3,-89.3 3.25,-2.95c4.95,-4.4 14.4,-4.35 16.25,0.15z" android:strokeColor="#00000000"/>
<path android:fillColor="#000000"
android:pathData="M117.9,94.5c-8.25,4.5 -4.6,17.5 4.9,17.5 8.75,-0 12.75,-10.85 6.1,-16.4 -3.4,-2.9 -7.05,-3.25 -11,-1.1z" android:strokeColor="#00000000"/>
<path android:fillColor="#000000"
android:pathData="M143.2,95.5c-7.05,5.95 -3.2,16.5 6.05,16.5 9.2,-0 12.6,-11.05 5.2,-16.85 -3.6,-2.85 -7.65,-2.7 -11.25,0.35z" android:strokeColor="#00000000"/>
<path android:fillColor="#000000"
android:pathData="M169.1,95.6c-6.65,5.55 -2.65,16.4 6.1,16.4 2.8,-0 4.6,-0.7 6.3,-2.4 8.9,-8.9 -2.85,-22.1 -12.4,-14z" android:strokeColor="#00000000"/>
<path android:fillColor="#000000"
android:pathData="M119.5,121.9c-6.4,2.75 -8.15,11.4 -3.15,15.7 3.85,3.3 9.85,3.3 13.2,-0.05 6.85,-6.85 -1.25,-19.4 -10.05,-15.65z" android:strokeColor="#00000000"/>
<path android:fillColor="#000000"
android:pathData="M145.5,121.9c-9.6,4.1 -6.9,18.1 3.5,18.1 11.6,-0 12.9,-16.55 1.45,-18.45 -1.6,-0.3 -3.85,-0.1 -4.95,0.35z" android:strokeColor="#00000000"/>
<path android:fillColor="#000000"
android:pathData="M171.35,121.95c-5.6,2.35 -7.25,11.25 -2.9,15.6 3.35,3.35 9.35,3.35 13.2,0.05 7.6,-6.5 -1,-19.55 -10.3,-15.65z" android:strokeColor="#00000000"/>
<path android:fillColor="#000000"
android:pathData="M116.35,152.4c-3.9,3.35 -3.95,9.45 -0.1,13.35 6.2,6.15 15.75,2 15.75,-6.85 0,-8.15 -9.3,-12 -15.65,-6.5z" android:strokeColor="#00000000"/>
<path android:fillColor="#000000"
android:pathData="M143.65,151.15c-2.5,1.45 -4.6,6.75 -3.95,10 1.8,9.6 16.8,9.6 18.6,-0 1.55,-7.95 -7.55,-14.15 -14.65,-10z" android:strokeColor="#00000000"/>
<path android:fillColor="#000000"
android:pathData="M168.45,152.45c-5.7,5.75 -1.6,16 6.45,16 8.7,-0 13.15,-10.55 6.75,-16.05 -3.85,-3.3 -9.85,-3.3 -13.2,0.05z" android:strokeColor="#00000000"/>
android:viewportHeight="108">
<path
android:pathData="m37.1,4.98c-5.25,0 -9.53,4.29 -9.53,9.54v78.97c0,5.25 4.29,9.54 9.53,9.54h33.81c5.25,0 9.54,-4.29 9.54,-9.54L80.44,14.51c0,-5.25 -4.29,-9.54 -9.54,-9.54zM37.1,9.2h3.57c-0.01,0.1 -0.02,0.2 -0.02,0.31 0,1.82 1.54,3.35 3.35,3.35h19.99c1.82,0 3.35,-1.54 3.35,-3.35 0,-0.1 -0.01,-0.21 -0.02,-0.31h3.57c2.98,0 5.32,2.33 5.32,5.32v78.97c0,2.98 -2.33,5.32 -5.32,5.32L37.1,98.8c-2.98,0 -5.32,-2.33 -5.32,-5.32L31.78,14.51c0,-2.98 2.33,-5.32 5.32,-5.32z"
android:strokeWidth="0.464184"
android:fillColor="#000000"/>
<path
android:pathData="M54,41.5m-4.39,0a4.39,4.39 0,1 1,8.78 0a4.39,4.39 0,1 1,-8.78 0"
android:strokeWidth="4.13"
android:fillColor="#000000"
android:strokeColor="#00000000"/>
<path
android:pathData="M41.5,41.5m-4.39,0a4.39,4.39 0,1 1,8.78 0a4.39,4.39 0,1 1,-8.78 0"
android:strokeWidth="4.13"
android:fillColor="#000000"
android:strokeColor="#00000000"/>
<path
android:pathData="M66.5,41.5m-4.39,0a4.39,4.39 0,1 1,8.78 0a4.39,4.39 0,1 1,-8.78 0"
android:strokeWidth="4.13"
android:fillColor="#000000"
android:strokeColor="#00000000"/>
<path
android:pathData="M66.5,54m-4.39,0a4.39,4.39 0,1 1,8.78 0a4.39,4.39 135,1 1,-8.78 0"
android:strokeWidth="4.13"
android:fillColor="#000000"
android:strokeColor="#00000000"/>
<path
android:pathData="M54,54m-4.39,0a4.39,4.39 45,1 1,8.78 0a4.39,4.39 135,1 1,-8.78 0"
android:strokeWidth="4.13"
android:fillColor="#000000"
android:strokeColor="#00000000"/>
<path
android:pathData="M41.5,54m-4.39,0a4.39,4.39 0,1 1,8.78 0a4.39,4.39 0,1 1,-8.78 0"
android:strokeWidth="4.13"
android:fillColor="#000000"
android:strokeColor="#00000000"/>
<path
android:pathData="M41.5,66.5m-4.39,0a4.39,4.39 0,1 1,8.78 0a4.39,4.39 0,1 1,-8.78 0"
android:strokeWidth="4.13"
android:fillColor="#000000"
android:strokeColor="#00000000"/>
<path
android:pathData="M54,66.5m-4.39,0a4.39,4.39 0,1 1,8.78 0a4.39,4.39 0,1 1,-8.78 0"
android:strokeWidth="4.13"
android:fillColor="#000000"
android:strokeColor="#00000000"/>
<path
android:pathData="M66.5,66.5m-4.39,0a4.39,4.39 0,1 1,8.78 0a4.39,4.39 0,1 1,-8.78 0"
android:strokeWidth="4.13"
android:fillColor="#000000"
android:strokeColor="#00000000"/>
</vector>
1 change: 1 addition & 0 deletions app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
<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" />
<monochrome android:drawable="@drawable/ic_launcher_foreground" />
</adaptive-icon>
1 change: 1 addition & 0 deletions app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
<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" />
<monochrome android:drawable="@drawable/ic_launcher_foreground" />
</adaptive-icon>
Binary file removed app/src/main/res/mipmap-hdpi/ic_launcher.png
Binary file not shown.
Binary file added app/src/main/res/mipmap-hdpi/ic_launcher.webp
Binary file not shown.
Binary file removed app/src/main/res/mipmap-hdpi/ic_launcher_round.png
Binary file not shown.
Binary file not shown.
Binary file removed app/src/main/res/mipmap-mdpi/ic_launcher.png
Binary file not shown.
Binary file added app/src/main/res/mipmap-mdpi/ic_launcher.webp
Binary file not shown.
Binary file removed app/src/main/res/mipmap-mdpi/ic_launcher_round.png
Binary file not shown.
Binary file not shown.
Binary file removed app/src/main/res/mipmap-xhdpi/ic_launcher.png
Binary file not shown.
Binary file added app/src/main/res/mipmap-xhdpi/ic_launcher.webp
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed app/src/main/res/mipmap-xxhdpi/ic_launcher.png
Binary file not shown.
Binary file added app/src/main/res/mipmap-xxhdpi/ic_launcher.webp
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.