1
0

android: update app icon; use "adaptive icons" on API 26+

see https://developer.android.com/guide/practices/ui_guidelines/icon_design_adaptive

p4a and buildozer had to be patched for this; I will try to upstream the patches, see:
https://github.com/kivy/python-for-android/pull/2446
https://github.com/kivy/buildozer/pull/1312
This commit is contained in:
SomberNight
2021-04-07 18:57:04 +02:00
parent f815f8eb30
commit 3d9798757d
5 changed files with 6 additions and 4 deletions

View File

@@ -160,8 +160,8 @@ RUN cd /opt \
&& cd buildozer \
&& git remote add sombernight https://github.com/SomberNight/buildozer \
&& git fetch --all \
# commit: kivy/buildozer "1.2.0" tag
&& git checkout "94cfcb8d591c11d6ad0e11f129b08c1e27a161c5^{commit}" \
# commit: from branch sombernight/202104_android_adaptiveicon
&& git checkout "0ce292fabec299c78c8ffeaf42072ab879f29d8a^{commit}" \
&& python3 -m pip install --user -e .
# install python-for-android
@@ -171,7 +171,7 @@ RUN cd /opt \
&& git remote add sombernight https://github.com/SomberNight/python-for-android \
&& git fetch --all \
# commit: from branch sombernight/electrum_20200703
&& git checkout "0dd2ce87a8f380d20505ca5dc1e2d2357b4a08fc^{commit}" \
&& git checkout "a4059599211a87af895d9ee2223f052a406357ca^{commit}" \
&& python3 -m pip install --user -e .
# build env vars

View File

@@ -53,7 +53,9 @@ requirements =
presplash.filename = %(source.dir)s/electrum/gui/icons/electrum_presplash.png
# (str) Icon of the application
icon.filename = %(source.dir)s/electrum/gui/icons/Electrum_512.png
icon.filename = %(source.dir)s/electrum/gui/icons/android_electrum_icon_legacy.png
icon.adaptive_foreground.filename = %(source.dir)s/electrum/gui/icons/android_electrum_icon_foreground.png
icon.adaptive_background.filename = %(source.dir)s/electrum/gui/icons/android_electrum_icon_background.png
# (str) Supported orientation (one of landscape, portrait or all)
orientation = portrait

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB