Mercurial > libervia-desktop-kivy
comparison src/cagou/plugins/plugin_wid_chat.py @ 67:5f7f72c2635f
chat: shortened chat header
"You are talking with " has been removed from chat header, so it can be displayed on small screens (phones)
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 17 Dec 2016 14:32:40 +0100 |
parents | 2aa44a82d0e7 |
children | 4a1e1012337e |
comparison
equal
deleted
inserted
replaced
66:94013a9481db | 67:5f7f72c2635f |
---|---|
539 class Chat(quick_chat.QuickChat, cagou_widget.CagouWidget): | 539 class Chat(quick_chat.QuickChat, cagou_widget.CagouWidget): |
540 | 540 |
541 def __init__(self, host, target, type_=C.CHAT_ONE2ONE, nick=None, occupants=None, subject=None, profiles=None): | 541 def __init__(self, host, target, type_=C.CHAT_ONE2ONE, nick=None, occupants=None, subject=None, profiles=None): |
542 quick_chat.QuickChat.__init__(self, host, target, type_, nick, occupants, subject, profiles=profiles) | 542 quick_chat.QuickChat.__init__(self, host, target, type_, nick, occupants, subject, profiles=profiles) |
543 cagou_widget.CagouWidget.__init__(self) | 543 cagou_widget.CagouWidget.__init__(self) |
544 self.header_input.hint_text = u"You are talking with {}".format(target) | 544 self.header_input.hint_text = u"{}".format(target) |
545 scroll_view = ScrollView(size_hint=(1,0.8), scroll_y=0, do_scroll_x=False) | 545 scroll_view = ScrollView(size_hint=(1,0.8), scroll_y=0, do_scroll_x=False) |
546 self.messages_widget = MessagesWidget() | 546 self.messages_widget = MessagesWidget() |
547 scroll_view.add_widget(self.messages_widget) | 547 scroll_view.add_widget(self.messages_widget) |
548 self.add_widget(scroll_view) | 548 self.add_widget(scroll_view) |
549 message_input = MessageInputWidget() | 549 message_input = MessageInputWidget() |