1
0

kivy: fix some resource path issues

When running kivy on Linux desktop,
running from git clone, `./run_electrum -g kivy` worked,
but `pip install -e .; electrum -g kivy` did not.
This was due to the relative paths using cwd as base.

see #6835
This commit is contained in:
SomberNight
2020-12-10 06:42:08 +01:00
parent 1851ec962f
commit 9e45108395
18 changed files with 90 additions and 65 deletions

View File

@@ -25,6 +25,7 @@ if TYPE_CHECKING:
Builder.load_string('''
#:import KIVY_GUI_PATH electrum.gui.kivy.KIVY_GUI_PATH
<TxDialog>
id: popup
@@ -102,7 +103,7 @@ Builder.load_string('''
IconButton:
size_hint: 0.5, None
height: '48dp'
icon: 'atlas://electrum/gui/kivy/theming/light/qrcode'
icon: f'atlas://{KIVY_GUI_PATH}/theming/light/qrcode'
on_release: root.show_qr()
Button:
size_hint: 0.5, None