Merge pull request #1529 from akshayaurora/overflow_action
fix overflow_icon and use template for `ActionOvrButton`
This commit is contained in:
commit
7b87a7f707
|
@ -298,7 +298,10 @@
|
||||||
text: _('Contacts')
|
text: _('Contacts')
|
||||||
slide: 3
|
slide: 3
|
||||||
|
|
||||||
|
<ActionOvrButton@ActionButton>
|
||||||
|
on_release:
|
||||||
|
if self.parent: self.parent.parent.dismiss()
|
||||||
|
app.popup_dialog(self.text.lower())
|
||||||
|
|
||||||
BoxLayout:
|
BoxLayout:
|
||||||
|
|
||||||
|
@ -320,6 +323,8 @@ BoxLayout:
|
||||||
app_icon: 'atlas://gui/kivy/theming/light/logo'
|
app_icon: 'atlas://gui/kivy/theming/light/logo'
|
||||||
with_previous: False
|
with_previous: False
|
||||||
on_release: app.on_back()
|
on_release: app.on_back()
|
||||||
|
size_hint_x: None
|
||||||
|
width: ao.width
|
||||||
|
|
||||||
ActionButton:
|
ActionButton:
|
||||||
id: action_status
|
id: action_status
|
||||||
|
@ -338,23 +343,18 @@ BoxLayout:
|
||||||
|
|
||||||
ActionOverflow:
|
ActionOverflow:
|
||||||
id: ao
|
id: ao
|
||||||
size_hint: 1, 1
|
ActionOvrButton:
|
||||||
ActionButton:
|
|
||||||
text: _('Network')
|
text: _('Network')
|
||||||
on_press: ao._dropdown.dismiss()
|
on_parent:
|
||||||
on_release: app.popup_dialog('network')
|
# when widget overflow drop down is shown, adjust the width
|
||||||
ActionButton:
|
parent = args[1]
|
||||||
|
if parent: ao._dropdown.width = sp(200)
|
||||||
|
ActionOvrButton:
|
||||||
text: _('Settings')
|
text: _('Settings')
|
||||||
on_press: ao._dropdown.dismiss()
|
ActionOvrButton:
|
||||||
on_release: app.popup_dialog('settings')
|
|
||||||
ActionButton:
|
|
||||||
text: _('Wallets')
|
text: _('Wallets')
|
||||||
on_press: ao._dropdown.dismiss()
|
ActionOvrButton:
|
||||||
on_release: app.popup_dialog('wallet')
|
|
||||||
ActionButton:
|
|
||||||
text: _('Plugins')
|
text: _('Plugins')
|
||||||
on_press: ao._dropdown.dismiss()
|
|
||||||
on_release: app.popup_dialog('plugins')
|
|
||||||
|
|
||||||
ScreenManager:
|
ScreenManager:
|
||||||
id: manager
|
id: manager
|
||||||
|
|
Loading…
Reference in New Issue