Mercurial > libervia-desktop-kivy
diff 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 |
line wrap: on
line diff
--- a/src/cagou/plugins/plugin_wid_chat.kv Thu Jan 05 20:36:41 2017 +0100 +++ b/src/cagou/plugins/plugin_wid_chat.kv Mon Jan 09 00:46:59 2017 +0100 @@ -48,6 +48,7 @@ height: self.minimum_height on_width: self.widthAdjust() avatar: avatar + delivery: delivery BoxLayout: id: header_box size_hint: 1, None @@ -62,6 +63,18 @@ size: self.texture_size padding: dp(5), 0 text: u"{}, {}".format(root.mess_data.nick, root.mess_data.time_text) + Label: + id: delivery + text_size: None, None + size_hint: None, None + size: self.texture_size + padding: dp(5), 0 + # XXX: DejaVuSans font is needed as check mark is not in Roboto + # this can be removed when Kivy will be able to handle fallback mechanism + # which will allow us to use fonts with more unicode characters + font_name: "DejaVuSans" + text: u'' + color: 0, 1, 0, 1 BoxLayout: # BoxLayout is needed here, else GridLayout won't let the Label choose its width size_hint: 1, None