changeset 415:5761b5f03c0c

menu: TransferMenu UI improvment
author Goffi <goffi@goffi.org>
date Sun, 23 Feb 2020 15:39:06 +0100
parents 72a6b06728ab
children 3e2333a11f61
files cagou/core/menu.py cagou/kv/menu.kv
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/cagou/core/menu.py	Sun Feb 23 15:39:06 2020 +0100
+++ b/cagou/core/menu.py	Sun Feb 23 15:39:06 2020 +0100
@@ -214,6 +214,7 @@
     items_layout = properties.ObjectProperty()
     size_hint_close = (1, 0)
     size_hint_open = (1, 0.5)
+    bg_color = properties.ListProperty([1, 1, 1, 1])
 
     def __init__(self, **kwargs):
         super(TransferMenu, self).__init__(**kwargs)
--- a/cagou/kv/menu.kv	Sun Feb 23 15:39:06 2020 +0100
+++ b/cagou/kv/menu.kv	Sun Feb 23 15:39:06 2020 +0100
@@ -62,7 +62,6 @@
             text: _(u"send")
             group: "transfer"
     Label:
-        color: 1, 1, 1, 1
         size_hint: 1, 0.3
         text: root.transfer_txt if upload_btn.state == 'down' else root.send_txt
         text_size: self.size
@@ -86,7 +85,7 @@
         size_hint: 1, None
         height: dp(50)
     Label:
-        color: 1, 1, 1, 1
+        color: 0, 0, 0, 1
         text: root.plug_info['name']
         text_size: self.size
         halign: "center"