Mercurial > libervia-desktop-kivy
comparison 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 |
comparison
equal
deleted
inserted
replaced
130:0ec3c3c0ed92 | 131:36fc269e2a32 |
---|---|
28 cols: 1 | 28 cols: 1 |
29 padding: dp(10) | 29 padding: dp(10) |
30 spacing: dp(5) | 30 spacing: dp(5) |
31 size_hint: 1, None | 31 size_hint: 1, None |
32 height: self.minimum_height | 32 height: self.minimum_height |
33 canvas.before: | |
34 Color: | |
35 rgba: 1, 1, 1, 1 | |
36 Rectangle: | |
37 pos: self.pos | |
38 size: self.size | |
33 | 39 |
34 <MessageWidget>: | 40 <MessageWidget>: |
35 cols: 1 | 41 cols: 1 |
36 mess_xhtml: mess_xhtml | 42 mess_xhtml: mess_xhtml |
37 padding: dp(10) | 43 padding: dp(10) |
48 opacity: 1 if root.mess_data.type != C.MESS_TYPE_INFO else 0 | 54 opacity: 1 if root.mess_data.type != C.MESS_TYPE_INFO else 0 |
49 MessAvatar: | 55 MessAvatar: |
50 id: avatar | 56 id: avatar |
51 Label: | 57 Label: |
52 id: time_label | 58 id: time_label |
59 color: (0, 0, 0, 1) if root.mess_data.own_mess else (0.55,0.55,0.55,1) | |
53 text_size: None, None | 60 text_size: None, None |
54 size_hint: None, None | 61 size_hint: None, None |
55 size: self.texture_size | 62 size: self.texture_size |
56 padding: dp(5), 0 | 63 padding: dp(5), 0 |
57 text: u"{}, {}".format(root.mess_data.nick, root.mess_data.time_text) | 64 text: u"{}, {}".format(root.mess_data.nick, root.mess_data.time_text) |
71 # BoxLayout is needed here, else GridLayout won't let the Label choose its width | 78 # BoxLayout is needed here, else GridLayout won't let the Label choose its width |
72 size_hint: 1, None | 79 size_hint: 1, None |
73 height: mess_xhtml.height | 80 height: mess_xhtml.height |
74 on_size: root.widthAdjust() | 81 on_size: root.widthAdjust() |
75 SimpleXHTMLWidget: | 82 SimpleXHTMLWidget: |
76 canvas.before: | |
77 Color: | |
78 rgba: 1, 1, 1, 1 | |
79 BorderImage: | |
80 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") | |
81 pos: self.pos | |
82 size: self.content_width, self.height | |
83 id: mess_xhtml | 83 id: mess_xhtml |
84 size_hint: 0.8, None | 84 size_hint: 0.8, None |
85 height: self.minimum_height | 85 height: self.minimum_height |
86 xhtml: root.message_xhtml or self.escape(root.message or u' ') | 86 xhtml: root.message_xhtml or self.escape(root.message or u' ') |
87 color: (0.74,0.74,0.24,1) if root.mess_data.type == "info" else (0, 0, 0, 1) | 87 color: (0.74,0.74,0.24,1) if root.mess_data.type == "info" else (0, 0, 0, 1) |