Mercurial > libervia-desktop-kivy
comparison cagou/kv/cagou_widget.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 | 1b835bcfa663 |
children | d61bbbac4160 |
comparison
equal
deleted
inserted
replaced
375:ae9059b791fe | 376:9ef01266e3fe |
---|---|
15 # along with this program. If not, see <http://www.gnu.org/licenses/>. | 15 # along with this program. If not, see <http://www.gnu.org/licenses/>. |
16 | 16 |
17 #:import C cagou.core.constants.Const | 17 #:import C cagou.core.constants.Const |
18 | 18 |
19 | 19 |
20 <HeaderWidgetChoice>: | 20 <HeaderChoice>: |
21 canvas.before: | 21 canvas.before: |
22 Color: | 22 Color: |
23 rgba: 1, 1, 1, 1 | 23 rgba: 1, 1, 1, 1 |
24 BorderImage: | 24 BorderImage: |
25 pos: self.pos | 25 pos: self.pos |
27 source: 'atlas://data/images/defaulttheme/button' | 27 source: 'atlas://data/images/defaulttheme/button' |
28 size_hint_y: None | 28 size_hint_y: None |
29 height: dp(44) | 29 height: dp(44) |
30 spacing: dp(20) | 30 spacing: dp(20) |
31 padding: dp(5), dp(3), dp(10), dp(3) | 31 padding: dp(5), dp(3), dp(10), dp(3) |
32 | |
33 <HeaderChoiceWidget>: | |
32 ActionIcon: | 34 ActionIcon: |
33 plugin_info: root.plugin_info | 35 plugin_info: root.plugin_info |
34 size_hint: None, 1 | 36 size_hint: None, 1 |
35 width: self.height | 37 width: self.height |
36 Label: | 38 Label: |
37 size_hint: None, 1 | 39 size_hint: None, 1 |
38 text: root.plugin_info['name'] | 40 text: root.plugin_info['name'] |
41 color: 1, 1, 1, 1 | |
42 bold: True | |
43 size: self.texture_size | |
44 halign: "center" | |
45 valign: "middle" | |
46 | |
47 <HeaderChoiceExtraMenu>: | |
48 ActionSymbol: | |
49 symbol: "dot-3-vert" | |
50 size_hint: None, 1 | |
51 width: self.height | |
52 Label: | |
53 size_hint: None, 1 | |
54 text: _("extra") | |
39 color: 1, 1, 1, 1 | 55 color: 1, 1, 1, 1 |
40 bold: True | 56 bold: True |
41 size: self.texture_size | 57 size: self.texture_size |
42 halign: "center" | 58 halign: "center" |
43 valign: "middle" | 59 valign: "middle" |