Permalink
Browse files

Example 53: Basic styling for the chat window widget.

It contains a window for chat text, a text entry area, and buttons to send or go back to the buddy list.
None of those are hooked up yet, though.
  • Loading branch information...
1 parent 7dfd023 commit 3572d568235754ff3ddc307618d116c5a510f22b @buchuki committed Jul 19, 2013
Showing with 25 additions and 1 deletion.
  1. +25 −1 orkiv/orkiv.kv
View
26 orkiv/orkiv.kv
@@ -72,4 +72,28 @@ OrkivRoot:
id: list_view
adapter:
la.ListAdapter(data=[], cls=ok.BuddyListItem,
- args_converter=root.roster_converter)
+ args_converter=root.roster_converter)
+
+<ChatWindow>:
+ orientation: "vertical"
+ chat_log_label: chat_log_label
+ send_chat_textinput: send_chat_textinput
+ Label:
+ text: "chatting with " + root.jabber_id
+ size_hint_y: None
+ height: "40dp"
+ Label:
+ id: chat_log_label
+ BoxLayout:
+ size_hint_y: None
+ height: "50dp"
+ Button:
+ size_hint_x: None
+ width: "70dp"
+ text: "Buddies"
+ TextInput:
+ id: send_chat_textinput
+ Button:
+ size_hint_x: None
+ width: "70dp"
+ text: "Send"

0 comments on commit 3572d56

Please sign in to comment.