Browse Source

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
patch-4
SomberNight 4 years ago
parent
commit
3d9798757d
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 6
      contrib/android/Dockerfile
  2. 4
      contrib/android/buildozer.spec
  3. BIN
      electrum/gui/icons/android_electrum_icon_background.png
  4. BIN
      electrum/gui/icons/android_electrum_icon_foreground.png
  5. BIN
      electrum/gui/icons/android_electrum_icon_legacy.png

6
contrib/android/Dockerfile

@ -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

4
contrib/android/buildozer.spec

@ -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

BIN
electrum/gui/icons/android_electrum_icon_background.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
electrum/gui/icons/android_electrum_icon_foreground.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

BIN
electrum/gui/icons/android_electrum_icon_legacy.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Loading…
Cancel
Save