changeset 114:15434a7787ed

core (notifications): notification now grow in height with text size
author Goffi <goffi@goffi.org>
date Thu, 26 Jan 2017 20:39:18 +0100
parents c439c271ecdd
children e0c41f209c28
files src/cagou/kv/root_widget.kv
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/cagou/kv/root_widget.kv	Thu Jan 26 20:39:15 2017 +0100
+++ b/src/cagou/kv/root_widget.kv	Thu Jan 26 20:39:18 2017 +0100
@@ -33,7 +33,10 @@
             size: self.size
             source: 'atlas://data/images/defaulttheme/button'
     size_hint: 1, None
-    height: dp(50)
+    text_size: self.width, None
+    halign: 'center'
+    height: self.texture_size[1]
+    padding: dp(2), dp(10)
 
 <NotesDrop>:
     clear_btn: clear_btn.__self__