Skip to content

Commit

Permalink
android: update app icon; use "adaptive icons" on API 26+
Browse files Browse the repository at this point in the history
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:
kivy/python-for-android#2446
kivy/buildozer#1312
  • Loading branch information
SomberNight committed Apr 7, 2021
1 parent f815f8e commit 750e8cd
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions contrib/android/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
4 changes: 3 additions & 1 deletion contrib/android/buildozer.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 750e8cd

Please sign in to comment.