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

@@ -15,6 +15,8 @@ if TYPE_CHECKING:
Builder.load_string('''
#:import KIVY_GUI_PATH electrum.gui.kivy.KIVY_GUI_PATH
<InvoiceDialog@Popup>
id: popup
amount_str: ''
@@ -66,12 +68,12 @@ Builder.load_string('''
text: _('Delete')
on_release: root.delete_dialog()
IconButton:
icon: 'atlas://electrum/gui/kivy/theming/light/copy'
icon: f'atlas://{KIVY_GUI_PATH}/theming/light/copy'
size_hint: 0.5, None
height: '48dp'
on_release: root.copy_to_clipboard()
IconButton:
icon: 'atlas://electrum/gui/kivy/theming/light/share'
icon: f'atlas://{KIVY_GUI_PATH}/theming/light/share'
size_hint: 0.5, None
height: '48dp'
on_release: root.do_share()