changeset 113:c439c271ecdd

core (notifications), CagouWidget: a backround rectangle is drawned behind drop boxes
author Goffi <goffi@goffi.org>
date Thu, 26 Jan 2017 20:39:15 +0100
parents d654bdfeb404
children 15434a7787ed
files src/cagou/kv/cagou_widget.kv src/cagou/kv/root_widget.kv src/libs/garden/garden.contextmenu/examples/simple_app_menu.py
diffstat 3 files changed, 13 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/cagou/kv/cagou_widget.kv	Thu Jan 26 20:39:07 2017 +0100
+++ b/src/cagou/kv/cagou_widget.kv	Thu Jan 26 20:39:15 2017 +0100
@@ -41,6 +41,12 @@
 <HeaderWidgetSelector>:
     size_hint: 0.3, None
     auto_width: False
+    canvas.before:
+        Color:
+            rgba: 0, 0, 0, 1
+        Rectangle:
+            pos: self.pos
+            size: self.size
 
 <CagouWidget>:
     header_input: header_input
--- a/src/cagou/kv/root_widget.kv	Thu Jan 26 20:39:07 2017 +0100
+++ b/src/cagou/kv/root_widget.kv	Thu Jan 26 20:39:15 2017 +0100
@@ -39,6 +39,12 @@
     clear_btn: clear_btn.__self__
     auto_width: False
     size_hint: 0.8, None
+    canvas.before:
+        Color:
+            rgba: 0.8, 0.8, 0.8, 1
+        Rectangle:
+            pos: self.pos
+            size: self.size
     Button:
         id: clear_btn
         text: "clear"
--- a/src/libs/garden/garden.contextmenu/examples/simple_app_menu.py	Thu Jan 26 20:39:07 2017 +0100
+++ b/src/libs/garden/garden.contextmenu/examples/simple_app_menu.py	Thu Jan 26 20:39:15 2017 +0100
@@ -9,7 +9,6 @@
 
 import kivy.garden.contextmenu
 
-
 kv = """
 FloatLayout:
     id: layout
@@ -70,6 +69,7 @@
         size: self.texture_size
 """
 
+
 class MyApp(App):
 
     def build(self):