comparison cagou/kv/menu.kv @ 275:1f88e7781fd0

menu: added a padding to MenusWidget to align on left margin
author Goffi <goffi@goffi.org>
date Wed, 20 Mar 2019 09:29:44 +0100
parents a676cb07c1cb
children 1b835bcfa663
comparison
equal deleted inserted replaced
274:7d5297984191 275:1f88e7781fd0
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 #:import _ sat.core.i18n._ 17 #:import _ sat.core.i18n._
18 #:import C cagou.core.constants.Const
18 19
19 <AboutContent>: 20 <AboutContent>:
20 text_size: self.size 21 text_size: self.size
21 color: 1, 1, 1, 1 22 color: 1, 1, 1, 1
22 halign: "center" 23 halign: "center"
30 # following is needed to fix a bug in contextmenu 31 # following is needed to fix a bug in contextmenu
31 size_hint: 1, None 32 size_hint: 1, None
32 33
33 <MenusWidget>: 34 <MenusWidget>:
34 height: 30 35 height: 30
36 padding: app.MARGIN_LEFT-dp(5), 0, app.MARGIN_RIGHT, 0
37 canvas.before:
38 Color:
39 rgba: 0.2, 0.2, 0.2, 1.0
40
41 Rectangle:
42 pos: self.pos
43 size: self.size
35 44
36 <MainMenu>: 45 <MainMenu>:
37 cancel_handler_widget: self.parent 46 cancel_handler_widget: self.parent
38 47
39 <RootMenuContainer>: 48 <RootMenuContainer>: