comparison src/cagou/plugins/plugin_wid_chat.kv @ 103:c601e3d40342

chat: display delivery receipt (with a green check mark)
author Goffi <goffi@goffi.org>
date Mon, 09 Jan 2017 00:46:59 +0100
parents 5d2289127bb7
children 663e44f30092
comparison
equal deleted inserted replaced
102:20251d926cc2 103:c601e3d40342
46 spacing: dp(5) 46 spacing: dp(5)
47 size_hint: 1, None 47 size_hint: 1, None
48 height: self.minimum_height 48 height: self.minimum_height
49 on_width: self.widthAdjust() 49 on_width: self.widthAdjust()
50 avatar: avatar 50 avatar: avatar
51 delivery: delivery
51 BoxLayout: 52 BoxLayout:
52 id: header_box 53 id: header_box
53 size_hint: 1, None 54 size_hint: 1, None
54 height: avatar.height 55 height: avatar.height
55 MessAvatar: 56 MessAvatar:
60 text_size: None, None 61 text_size: None, None
61 size_hint: None, None 62 size_hint: None, None
62 size: self.texture_size 63 size: self.texture_size
63 padding: dp(5), 0 64 padding: dp(5), 0
64 text: u"{}, {}".format(root.mess_data.nick, root.mess_data.time_text) 65 text: u"{}, {}".format(root.mess_data.nick, root.mess_data.time_text)
66 Label:
67 id: delivery
68 text_size: None, None
69 size_hint: None, None
70 size: self.texture_size
71 padding: dp(5), 0
72 # XXX: DejaVuSans font is needed as check mark is not in Roboto
73 # this can be removed when Kivy will be able to handle fallback mechanism
74 # which will allow us to use fonts with more unicode characters
75 font_name: "DejaVuSans"
76 text: u''
77 color: 0, 1, 0, 1
65 BoxLayout: 78 BoxLayout:
66 # BoxLayout is needed here, else GridLayout won't let the Label choose its width 79 # BoxLayout is needed here, else GridLayout won't let the Label choose its width
67 size_hint: 1, None 80 size_hint: 1, None
68 height: mess_xhtml.height 81 height: mess_xhtml.height
69 on_size: root.widthAdjust() 82 on_size: root.widthAdjust()