comparison src/libs/garden/garden.contextmenu/app_menu.kv @ 84:2caee196d19a

garden: context menu fixes: - fixed size so menus are displayed correclty on different screen resolutions - fixed position of ContextMenu on show these fixes haven been proposed upstream
author Goffi <goffi@goffi.org>
date Sat, 24 Dec 2016 14:20:40 +0100
parents 741a7d6d8c28
children
comparison
equal deleted inserted replaced
83:741a7d6d8c28 84:2caee196d19a
1 <AppMenu>: 1 <AppMenu>:
2 height: 30 2 height: dp(30)
3 size_hint: 1, None 3 size_hint: 1, None
4 4
5 canvas.before: 5 canvas.before:
6 Color: 6 Color:
7 rgb: 0.2, 0.2, 0.2 7 rgb: 0.2, 0.2, 0.2
12 12
13 <AppMenuTextItem>: 13 <AppMenuTextItem>:
14 disabled: True 14 disabled: True
15 size_hint: None, None 15 size_hint: None, None
16 on_children: self._check_submenu() 16 on_children: self._check_submenu()
17 font_size: '15sp'
17 background_normal: "" 18 background_normal: ""
18 background_down: "" 19 background_down: ""
19 background_color: (0.2, 0.71, 0.9, 1.0) if self.state == 'down' else (0.2, 0.2, 0.2, 1.0) 20 background_color: (0.2, 0.71, 0.9, 1.0) if self.state == 'down' else (0.2, 0.2, 0.2, 1.0)
20 background_disabled_normal: "" 21 background_disabled_normal: ""
21 background_disabled_down: "" 22 background_disabled_down: ""
22 border: (0, 0, 0, 0) 23 border: (0, 0, 0, 0)
23 size: self.texture_size[0], 30 24 size: self.texture_size[0], dp(30)
24 padding_x: 10 25 padding_x: dp(10)