comparison cagou/kv/menu.kv @ 216:e42e0c45d384

core (menu): allow to specify size in SideMenu: size menu now use 4 variable to open and close state: - size_hint_close - size_hint_open - size_open - size_close if one value of size_hint_open or size_hint_close tuples is None, the corresponding size is used instead.
author Goffi <goffi@goffi.org>
date Sun, 24 Jun 2018 22:08:16 +0200
parents c7d15ef4bfa8
children a676cb07c1cb
comparison
equal deleted inserted replaced
215:254481ba2bae 216:e42e0c45d384
93 valign: "top" 93 valign: "top"
94 94
95 95
96 <SideMenu>: 96 <SideMenu>:
97 orientation: "vertical" 97 orientation: "vertical"
98 size_hint: self.base_size_hint_close 98 size_hint: self.size_hint_close
99 canvas.before: 99 canvas.before:
100 Color: 100 Color:
101 rgba: self.bg_color 101 rgba: self.bg_color
102 Rectangle: 102 Rectangle:
103 pos: self.pos 103 pos: self.pos