changeset 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 7d5297984191
children a0835f0212d8
files cagou/kv/menu.kv
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/cagou/kv/menu.kv	Wed Mar 20 09:29:44 2019 +0100
+++ b/cagou/kv/menu.kv	Wed Mar 20 09:29:44 2019 +0100
@@ -15,6 +15,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 #:import _ sat.core.i18n._
+#:import C cagou.core.constants.Const
 
 <AboutContent>:
     text_size: self.size
@@ -32,6 +33,14 @@
 
 <MenusWidget>:
     height: 30
+    padding: app.MARGIN_LEFT-dp(5), 0, app.MARGIN_RIGHT, 0
+    canvas.before:
+        Color:
+            rgba: 0.2, 0.2, 0.2, 1.0
+
+        Rectangle:
+            pos: self.pos
+            size: self.size
 
 <MainMenu>:
     cancel_handler_widget: self.parent