comparison cagou/plugins/plugin_wid_chat.kv @ 491:203755bbe0fe

massive refactoring from camelCase -> snake_case. See backend commit log for more details
author Goffi <goffi@goffi.org>
date Sat, 08 Apr 2023 13:44:32 +0200
parents 3c9ba4a694ef
children
comparison
equal deleted inserted replaced
490:962d17c4078c 491:203755bbe0fe
112 width: avatar.width 112 width: avatar.width
113 size_hint: None, 1 113 size_hint: None, 1
114 MessAvatar: 114 MessAvatar:
115 id: avatar 115 id: avatar
116 source: root.mess_data.avatar['path'] if root.mess_data and root.mess_data.avatar else app.default_avatar 116 source: root.mess_data.avatar['path'] if root.mess_data and root.mess_data.avatar else app.default_avatar
117 on_press: root.chat.addNick(root.nick) 117 on_press: root.chat.add_nick(root.nick)
118 Widget: 118 Widget:
119 # use to push the avatar on the top 119 # use to push the avatar on the top
120 size_hint: 1, 1 120 size_hint: 1, 1
121 BoxLayout: 121 BoxLayout:
122 size_hint: 1, None 122 size_hint: 1, None
226 history_scroll: history_scroll 226 history_scroll: history_scroll
227 send_button_visible: G.local_platform.send_button_visible or bool(attachments_to_send.attachments.children) 227 send_button_visible: G.local_platform.send_button_visible or bool(attachments_to_send.attachments.children)
228 ScrollView: 228 ScrollView:
229 id: history_scroll 229 id: history_scroll
230 scroll_y: 0 230 scroll_y: 0
231 on_scroll_y: root.onScroll(*args) 231 on_scroll_y: root.on_scroll(*args)
232 do_scroll_x: False 232 do_scroll_x: False
233 scroll_type: ['bars', 'content'] 233 scroll_type: ['bars', 'content']
234 bar_width: dp(10) 234 bar_width: dp(10)
235 effect_cls: ScrollEffect 235 effect_cls: ScrollEffect
236 DelayedBoxLayout: 236 DelayedBoxLayout:
252 id: message_input 252 id: message_input
253 size_hint: 1, None 253 size_hint: 1, None
254 height: min(self.minimum_height, dp(250)) 254 height: min(self.minimum_height, dp(250))
255 multiline: True 255 multiline: True
256 hint_text: _(u"Enter your message here") 256 hint_text: _(u"Enter your message here")
257 on_text_validate: root.onSend(args[0]) 257 on_text_validate: root.on_send(args[0])
258 SymbolButton: 258 SymbolButton:
259 # "send" button, permanent visibility depends on platform 259 # "send" button, permanent visibility depends on platform
260 symbol: "forward" 260 symbol: "forward"
261 size_hint: None, 1 261 size_hint: None, 1
262 width: dp(30) if root.send_button_visible else 0 262 width: dp(30) if root.send_button_visible else 0
297 on_release: self.chat.extra_menu.open(self) 297 on_release: self.chat.extra_menu.open(self)
298 298
299 <EncryptionMainButton>: 299 <EncryptionMainButton>:
300 size_hint: None, 1 300 size_hint: None, 1
301 width: dp(30) 301 width: dp(30)
302 color: self.getColor() 302 color: self.get_color()
303 symbol: self.getSymbol() 303 symbol: self.get_symbol()
304 304
305 <TrustManagementButton>: 305 <TrustManagementButton>:
306 symbol: "shield" 306 symbol: "shield"
307 padding: dp(5), dp(10) 307 padding: dp(5), dp(10)
308 bg_color: app.c_prim_dark 308 bg_color: app.c_prim_dark