mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-22 01:51:47 +00:00
Add monochrome drawable (i.e. Android 13 themed icon)
## Summary Since a lot of devices now have Android 13, some users might want support for the new themed app icons. This adds support for these, by adding a monochrome drawable (just the default icon with only the phone border and K) in `res/drawable-v24/ic_launcher_monochrome.xml` and then referencing this in `res/minimap-anydpi-v26/ic_laucher(_round).xml`. ## Test Plan This can be tested by simply compiling and installing the app as usual on any device running Android 13. After installing the app, the option for an adaptive colour theme will need to be enabled: - OneUI5: Long-press home screen > Wallpaper and Style > Colour palette > enable colour palette and check "Apply palette to app icons" - Pixel: Long-press home screen > Wallpaper & style > check "Themed icons" The app icon should now follow the system theme (on some devices only on home screen, on others both home screen and app drawer). 
This commit is contained in:
parent
39ff1da82d
commit
9df91577d3
17
res/drawable-v24/ic_launcher_monochrome.xml
Normal file
17
res/drawable-v24/ic_launcher_monochrome.xml
Normal file
@ -0,0 +1,17 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="108dp"
|
||||
android:height="108dp"
|
||||
android:viewportWidth="108"
|
||||
android:viewportHeight="108">
|
||||
<group android:scaleX="0.8"
|
||||
android:scaleY="0.8"
|
||||
android:translateX="10.8"
|
||||
android:translateY="10.8">
|
||||
<path
|
||||
android:pathData="M40,27A2,2 0,0 0,38 29L38,79A2,2 0,0 0,40 81L68,81A2,2 0,0 0,70 79L70,29A2,2 0,0 0,68 27L40,27zM50.25,28.25L57.75,28.25A0.25,0.25 0,0 1,58 28.5A0.25,0.25 0,0 1,57.75 28.75L50.25,28.75A0.25,0.25 0,0 1,50 28.5A0.25,0.25 0,0 1,50.25 28.25zM41,30L67,30L67,78L41,78L41,30z"
|
||||
android:fillColor="#ffffff"/>
|
||||
<path
|
||||
android:pathData="m47.69,47.38c-0.04,0 -0.08,0.01 -0.11,0.05 0,0 -1.38,1.38 -1.38,1.38 -0.06,0.06 -0.06,0.15 -0.02,0.22 0,0 1.61,2.66 1.61,2.66 -0.29,0.48 -0.52,1 -0.68,1.55 0,0 -2.96,0.62 -2.96,0.62C44.06,53.87 44,53.95 44,54.03v1.95c0,0.08 0.06,0.15 0.14,0.17 0,0 2.88,0.7 2.88,0.7 0.15,0.63 0.39,1.24 0.71,1.79 0,0 -1.67,2.54 -1.67,2.54 -0.05,0.07 -0.04,0.17 0.02,0.22 0,0 1.38,1.38 1.38,1.38 0.06,0.06 0.15,0.06 0.22,0.02 0,0 2.61,-1.58 2.61,-1.58 0.51,0.3 1.07,0.53 1.65,0.69 0,0 0.61,2.93 0.61,2.93 0.02,0.08 0.09,0.14 0.17,0.14h1.95c0.08,0 0.15,-0.05 0.17,-0.14 0,0 0.72,-2.94 0.72,-2.94 0.6,-0.16 1.17,-0.4 1.7,-0.71 0,0 2.58,1.69 2.58,1.69 0.07,0.05 0.17,0.04 0.22,-0.02 0,0 1.37,-1.38 1.37,-1.38 0.06,-0.06 0.07,-0.15 0.03,-0.22 0,0 -0.94,-1.55 -0.94,-1.55 0,0 -0.31,0.1 -0.31,0.1 -0.04,0.01 -0.09,-0.01 -0.12,-0.05 0,0 -0.59,-0.87 -1.37,-2.01 -0.93,1.81 -2.81,3.05 -4.99,3.05 -3.09,0 -5.59,-2.51 -5.59,-5.59 0,-2.27 1.36,-4.22 3.3,-5.1v-1.44c-0.35,0.12 -0.7,0.27 -1.02,0.45 -0,0 0,-0.01 0,-0.01 0,0 -2.63,-1.73 -2.63,-1.73 -0.04,-0.02 -0.07,-0.03 -0.11,-0.02 0,0 0,0 0,0zM55.66,43.85c0,0 -3.51,0.34 -3.51,0.34v14.48c0,0 3.48,-0.53 3.48,-0.53v-6.17c0,0 4.68,6.85 4.68,6.85 0,0 3.66,-1.16 3.66,-1.16 0,0 -4.79,-6.58 -4.79,-6.58 0,0 4.83,-6.21 4.83,-6.21 0,0 -3.74,-0.86 -3.74,-0.86 0,0 -4.64,6.21 -4.64,6.21 0,0 0.04,-6.36 0.04,-6.36z"
|
||||
android:fillColor="#f2f2f2"/>
|
||||
</group>
|
||||
</vector>
|
@ -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_monochrome"/>
|
||||
</adaptive-icon>
|
@ -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_monochrome"/>
|
||||
</adaptive-icon>
|
Loading…
x
Reference in New Issue
Block a user