comparison cagou/kv/root_widget.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 bf9474e164f3
children 3c9ba4a694ef
comparison
equal deleted inserted replaced
372:1481f09c9175 373:5d994be1161b
119 width: 0 if app.connected else dp(30) 119 width: 0 if app.connected else dp(30)
120 opacity: 0 if app.connected else 1 120 opacity: 0 if app.connected else 1
121 symbol: "plug" 121 symbol: "plug"
122 color: 0.80, 0.0, 0.0, 1 122 color: 0.80, 0.0, 0.0, 1
123 123
124 <RootMenus>:
125 size_hint: 1, None
126 pos_hint: {'top': 1}
127
128 <CagouRootWidget>: 124 <CagouRootWidget>:
129 root_body: root_body 125 root_body: root_body
130 root_menus: root_menus
131 # main body
132 RootBody: 126 RootBody:
133 id: root_body 127 id: root_body
134 orientation: "vertical" 128 orientation: "vertical"
135 size_hint: 1, None
136 height: root.height - root_menus.height
137 # general menus
138 # need to be added at the end so it's drawed above other widgets
139 RootMenus:
140 id: root_menus
141 height: self.HEIGHT