comparison cagou/kv/menu.kv @ 373:5d994be1161b

core: removed root menus (i.e. global menu on top of window): root menus were not really useful as most actions doable there are doable through others widgets in Cagou. For actions without equivalent in widgets (like about screen), a new menu, more discreet, will be added soon. Kivy Garden's ContextMenu is not used anymore, so it has been removed from dependencies
author Goffi <goffi@goffi.org>
date Mon, 27 Jan 2020 21:17:09 +0100
parents 1b835bcfa663
children 9ef01266e3fe
comparison
equal deleted inserted replaced
372:1481f09c9175 373:5d994be1161b
29 29
30 <MenuItem>: 30 <MenuItem>:
31 # following is needed to fix a bug in contextmenu 31 # following is needed to fix a bug in contextmenu
32 size_hint: 1, None 32 size_hint: 1, None
33 33
34 <MenusWidget>:
35 height: 30
36 padding: app.MARGIN_LEFT-dp(5), 0, app.MARGIN_RIGHT, 0
37 canvas.before:
38 Color:
39 rgba: 0.2, 0.2, 0.2, 1.0
40
41 Rectangle:
42 pos: self.pos
43 size: self.size
44
45 <MainMenu>:
46 cancel_handler_widget: self.parent
47
48 <RootMenuContainer>:
49 background_color: app.c_sec if self.state == 'down' else (0.2, 0.2, 0.2, 1.0)
50 34
51 <TransferMenu>: 35 <TransferMenu>:
52 items_layout: items_layout 36 items_layout: items_layout
53 orientation: "vertical" 37 orientation: "vertical"
54 size_hint: 1, 0.5 38 size_hint: 1, 0.5