Mercurial > libervia-desktop-kivy
comparison cagou/plugins/plugin_wid_chat.kv @ 252:fdda914a298b
chat: added some padding in MessageInputBox
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 26 Jan 2019 20:24:48 +0100 |
parents | 5bd94bc08f5c |
children | 7d5297984191 |
comparison
equal
deleted
inserted
replaced
251:1f579baf787a | 252:fdda914a298b |
---|---|
103 bold: True if root.mess_data.type == "info" else False | 103 bold: True if root.mess_data.type == "info" else False |
104 | 104 |
105 <Chat>: | 105 <Chat>: |
106 messages_widget: messages_widget | 106 messages_widget: messages_widget |
107 ScrollView: | 107 ScrollView: |
108 size_hint: 1, 0.8 | |
109 scroll_y: 0 | 108 scroll_y: 0 |
110 do_scroll_x: False | 109 do_scroll_x: False |
111 scroll_type: ['bars', 'content'] | 110 scroll_type: ['bars', 'content'] |
112 bar_width: dp(6) | 111 bar_width: dp(6) |
113 MessagesWidget: | 112 MessagesWidget: |
114 id: messages_widget | 113 id: messages_widget |
115 MessageInputBox: | 114 MessageInputBox: |
116 size_hint: 1, None | 115 size_hint: 1, None |
117 height: dp(40) | 116 height: dp(40) |
117 spacing: dp(10) | |
118 padding: [dp(10), 0, dp(15), dp(10)] | |
118 message_input: message_input | 119 message_input: message_input |
119 MessageInputWidget: | 120 MessageInputWidget: |
120 id: message_input | 121 id: message_input |
121 size_hint: 1, 1 | 122 size_hint: 1, 1 |
122 hint_text: _(u"Enter your message here") | 123 hint_text: _(u"Enter your message here") |
123 on_text_validate: root.onSend(args[0]) | 124 on_text_validate: root.onSend(args[0]) |
124 SymbolButton | 125 SymbolButton |
125 # transfer button | 126 # transfer button |
127 size_hint: 1, None | |
126 symbol: "plus-circled" | 128 symbol: "plus-circled" |
127 size_hint: None, 1 | 129 size_hint: None, 1 |
128 width: dp(30) | 130 width: dp(30) |
131 font_size: dp(25) | |
129 on_release: TransferMenu(callback=root.onTransferOK).show(self) | 132 on_release: TransferMenu(callback=root.onTransferOK).show(self) |
130 | 133 |
131 <EncryptionMainButton>: | 134 <EncryptionMainButton>: |
132 size_hint: None, 1 | 135 size_hint: None, 1 |
133 width: dp(30) | 136 width: dp(30) |