Mercurial > libervia-desktop-kivy
diff cagou/plugins/plugin_wid_chat.kv @ 287:5d96bcd3bfec
chat: added an extra menu (3 dots menu):
first entry is this menu display bookmarks. This menu will be used in the future to show advances actions like showing occupants or configuring room.
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 27 Mar 2019 22:22:51 +0100 |
parents | 1b835bcfa663 |
children | 86292cc41e81 |
line wrap: on
line diff
--- a/cagou/plugins/plugin_wid_chat.kv Wed Mar 27 22:22:51 2019 +0100 +++ b/cagou/plugins/plugin_wid_chat.kv Wed Mar 27 22:22:51 2019 +0100 @@ -142,6 +142,26 @@ font_size: dp(25) color: 0.4, 0.4, 0.4, 1 +<MenuButton@Button> + size_hint_y: None + height: dp(30) + on_texture_size: self.parent.parent.width = max(self.parent.parent.width, self.texture_size[0] + dp(10)) + +<ExtraMenu>: + size_hint: None, 1 + width: 10 + auto_width: False + MenuButton: + text: _("Bookmarks") + on_release: root.select("bookmark") + +<ExtraButton>: + size_hint: None, 1 + symbol: "dot-3-vert" + width: dp(30) + font_size: dp(25) + color: 0.4, 0.4, 0.4, 1 + on_release: self.chat.extra_menu.open(self) <EncryptionMainButton>: size_hint: None, 1