Mercurial > libervia-desktop-kivy
comparison src/cagou/kv/menu.kv @ 85:c2a7234d13d2
menu: use of garden's contextmenu for menus
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 24 Dec 2016 14:20:49 +0100 |
parents | 3f8599d9a766 |
children | c711be670ecd |
comparison
equal
deleted
inserted
replaced
84:2caee196d19a | 85:c2a7234d13d2 |
---|---|
12 # GNU Affero General Public License for more details. | 12 # GNU Affero General Public License for more details. |
13 | 13 |
14 # You should have received a copy of the GNU Affero General Public License | 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/>. | 15 # along with this program. If not, see <http://www.gnu.org/licenses/>. |
16 | 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 | 17 |
36 <AboutContent>: | 18 <AboutContent>: |
37 text_size: self.size | 19 text_size: self.size |
38 halign: "center" | 20 halign: "center" |
39 valign: "middle" | 21 valign: "middle" |
40 | 22 |
41 <AboutPopup>: | 23 <AboutPopup>: |
42 title_align: "center" | 24 title_align: "center" |
43 size_hint: 0.8, 0.8 | 25 size_hint: 0.8, 0.8 |
26 | |
27 <MenuItem>: | |
28 # following is need to fix a bug in contextmenu | |
29 size_hint: 1, None | |
30 | |
31 <MenusWidget>: | |
32 height: self.children[0].height if self.children else 30 | |
33 | |
34 <MainMenu>: | |
35 cancel_handler_widget: self.parent |