Mercurial > libervia-desktop-kivy
comparison src/cagou/kv/menu.kv @ 51:3f8599d9a766
core: menus first draft:
- menus are handled. Global menus are shown above notification for the moment, but may be displayed differently depending on plateform (e.g. using a button on mobile plateforms)
- menu are displayed after profile is connected
- backends menus are displayed but not working yet
- help/about menu has been added.
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 11 Sep 2016 12:15:41 +0200 |
parents | |
children | c2a7234d13d2 |
comparison
equal
deleted
inserted
replaced
50:c45d6e9ec731 | 51:3f8599d9a766 |
---|---|
1 # Cagou: desktop/mobile frontend for Salut à Toi XMPP client | |
2 # Copyright (C) 2016 Jérôme Poisson (goffi@goffi.org) | |
3 | |
4 # This program is free software: you can redistribute it and/or modify | |
5 # it under the terms of the GNU Affero General Public License as published by | |
6 # the Free Software Foundation, either version 3 of the License, or | |
7 # (at your option) any later version. | |
8 | |
9 # This program is distributed in the hope that it will be useful, | |
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12 # GNU Affero General Public License for more details. | |
13 | |
14 # You should have received a copy of the GNU Affero General Public License | |
15 # along with this program. If not, see <http://www.gnu.org/licenses/>. | |
16 | |
17 <MenuItem>: | |
18 size_hint: None, 1 | |
19 padding: 10, 0 | |
20 width: self.texture_size[0] | |
21 height: 30 | |
22 | |
23 <MenuSeparator>: | |
24 size_hint: None, None | |
25 width: 30 | |
26 | |
27 <MenuContainer>: | |
28 size_hint: None, 1 | |
29 width: self.texture_size[0] + dp(20) | |
30 background_color: 0, 0, 0, 1 | |
31 | |
32 <MenusWidget>: | |
33 size_hint: 1, None | |
34 height: 30 | |
35 | |
36 <AboutContent>: | |
37 text_size: self.size | |
38 halign: "center" | |
39 valign: "middle" | |
40 | |
41 <AboutPopup>: | |
42 title_align: "center" | |
43 size_hint: 0.8, 0.8 |