changeset 36:bd3ecac18870

cagou widget, root widget: used of dp to specify distances
author Goffi <goffi@goffi.org>
date Sun, 28 Aug 2016 15:27:42 +0200
parents 20b04c58868f
children 6cf08d0ee460
files src/cagou/kv/cagou_widget.kv src/cagou/kv/root_widget.kv
diffstat 2 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/cagou/kv/cagou_widget.kv	Sun Aug 28 14:59:49 2016 +0200
+++ b/src/cagou/kv/cagou_widget.kv	Sun Aug 28 15:27:42 2016 +0200
@@ -24,7 +24,7 @@
             size: self.size
             source: 'atlas://data/images/defaulttheme/button'
     size_hint_y: None
-    height: 44
+    height: dp(44)
     Image:
         size_hint: None, 1
         source: root.plugin_info['icon_medium']
@@ -46,7 +46,7 @@
     header_input: header_input
     BoxLayout:
         size_hint: 1, None
-        height: 32
+        height: dp(32)
         HeaderWidgetCurrent:
             on_release: root.selector.open(self)
             source: root.plugin_info['icon_small']
--- a/src/cagou/kv/root_widget.kv	Sun Aug 28 14:59:49 2016 +0200
+++ b/src/cagou/kv/root_widget.kv	Sun Aug 28 15:27:42 2016 +0200
@@ -33,7 +33,7 @@
             size: self.size
             source: 'atlas://data/images/defaulttheme/button'
     size_hint: 1, None
-    height: 50
+    height: dp(50)
 
 <NotesDrop>:
     clear_btn: clear_btn.__self__
@@ -44,14 +44,14 @@
         text: "clear"
         bold: True
         size_hint: 1, None
-        height: 50
+        height: dp(50)
         on_release: del root.notes[:]; root.dismiss()
 
 <RootHeadWidget>:
     manager: manager
     notifs_icon: notifs_icon
     size_hint: 1, None
-    height: 35
+    height: dp(35)
     IconButton:
         source: app.expand("{media}/icons/muchoslava/png/cagou_profil_bleu_32.png") if root.notes else app.expand("{media}/misc/black.png")
         size_hint: None, 1