From 9df91577d3e3d132a405cc85735f6828688796ec Mon Sep 17 00:00:00 2001 From: Felix Fischer Date: Mon, 19 Dec 2022 22:12:03 +0000 Subject: [PATCH] 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). ![Screenshot_20221204_231210](/uploads/75ec96d9a3b17486622e32148cfd775c/Screenshot_20221204_231210.png) --- res/drawable-v24/ic_launcher_monochrome.xml | 17 +++++++++++++++++ res/mipmap-anydpi-v26/ic_launcher.xml | 1 + res/mipmap-anydpi-v26/ic_launcher_round.xml | 1 + 3 files changed, 19 insertions(+) create mode 100644 res/drawable-v24/ic_launcher_monochrome.xml diff --git a/res/drawable-v24/ic_launcher_monochrome.xml b/res/drawable-v24/ic_launcher_monochrome.xml new file mode 100644 index 00000000..e21c0bfe --- /dev/null +++ b/res/drawable-v24/ic_launcher_monochrome.xml @@ -0,0 +1,17 @@ + + + + + + diff --git a/res/mipmap-anydpi-v26/ic_launcher.xml b/res/mipmap-anydpi-v26/ic_launcher.xml index bbd3e021..04091bd1 100644 --- a/res/mipmap-anydpi-v26/ic_launcher.xml +++ b/res/mipmap-anydpi-v26/ic_launcher.xml @@ -2,4 +2,5 @@ + \ No newline at end of file diff --git a/res/mipmap-anydpi-v26/ic_launcher_round.xml b/res/mipmap-anydpi-v26/ic_launcher_round.xml index bbd3e021..04091bd1 100644 --- a/res/mipmap-anydpi-v26/ic_launcher_round.xml +++ b/res/mipmap-anydpi-v26/ic_launcher_round.xml @@ -2,4 +2,5 @@ + \ No newline at end of file