diff cagou/plugins/plugin_wid_chat.kv @ 131:36fc269e2a32

core: changed default background color to white
author Goffi <goffi@goffi.org>
date Fri, 06 Apr 2018 16:12:58 +0200
parents cd99f70ea592
children 7ad965999d47
line wrap: on
line diff
--- a/cagou/plugins/plugin_wid_chat.kv	Fri Apr 06 16:12:14 2018 +0200
+++ b/cagou/plugins/plugin_wid_chat.kv	Fri Apr 06 16:12:58 2018 +0200
@@ -30,6 +30,12 @@
     spacing: dp(5)
     size_hint: 1, None
     height: self.minimum_height
+    canvas.before:
+        Color:
+            rgba: 1, 1, 1, 1
+        Rectangle:
+            pos: self.pos
+            size: self.size
 
 <MessageWidget>:
     cols: 1
@@ -50,6 +56,7 @@
             id: avatar
         Label:
             id: time_label
+            color: (0, 0, 0, 1) if root.mess_data.own_mess else (0.55,0.55,0.55,1)
             text_size: None, None
             size_hint: None, None
             size: self.texture_size
@@ -73,13 +80,6 @@
         height: mess_xhtml.height
         on_size: root.widthAdjust()
         SimpleXHTMLWidget:
-            canvas.before:
-                Color:
-                    rgba: 1, 1, 1, 1
-                BorderImage:
-                    source: app.expand("{media}/misc/black.png") if root.mess_data.type == "info" else app.expand("{media}/misc/borders/{}.jpg", "blue" if root.mess_data.own_mess else "gray")
-                    pos: self.pos
-                    size: self.content_width, self.height
             id: mess_xhtml
             size_hint: 0.8, None
             height: self.minimum_height