Mercurial > libervia-desktop-kivy
comparison cagou/kv/menu.kv @ 376:9ef01266e3fe
core: new extra menu:
a new "extra" menu is added in CagouWidget's header selector (at the end). This activate a
side menu with global actions, like showing the "about" screen. Platform specific menus
can be added with `local_platform.on_extra_menu_init`.
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 27 Jan 2020 21:17:09 +0100 |
parents | 5d994be1161b |
children | f7476818f9fb |
comparison
equal
deleted
inserted
replaced
375:ae9059b791fe | 376:9ef01266e3fe |
---|---|
25 | 25 |
26 <AboutPopup>: | 26 <AboutPopup>: |
27 title_align: "center" | 27 title_align: "center" |
28 size_hint: 0.8, 0.8 | 28 size_hint: 0.8, 0.8 |
29 | 29 |
30 <MenuItem>: | 30 <ExtraMenuItem>: |
31 # following is needed to fix a bug in contextmenu | |
32 size_hint: 1, None | 31 size_hint: 1, None |
32 height: dp(30) | |
33 | 33 |
34 <ExtraSideMenu>: | |
35 bg_color: 0.23, 0.23, 0.23, 1 | |
36 ExtraMenuItem: | |
37 text: _("About") | |
38 on_press: root.onAbout() | |
39 Widget: | |
40 # to push content to the top | |
34 | 41 |
35 <TransferMenu>: | 42 <TransferMenu>: |
36 items_layout: items_layout | 43 items_layout: items_layout |
37 orientation: "vertical" | 44 orientation: "vertical" |
38 size_hint: 1, 0.5 | 45 size_hint: 1, 0.5 |