diff cagou/plugins/plugin_wid_chat.kv @ 278:444ba439530f

chat: moved transfer button to header_box
author Goffi <goffi@goffi.org>
date Wed, 20 Mar 2019 09:29:44 +0100
parents a0835f0212d8
children 1b835bcfa663
line wrap: on
line diff
--- a/cagou/plugins/plugin_wid_chat.kv	Wed Mar 20 09:29:44 2019 +0100
+++ b/cagou/plugins/plugin_wid_chat.kv	Wed Mar 20 09:29:44 2019 +0100
@@ -14,7 +14,6 @@
 # You should have received a copy of the GNU Affero General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-#:import TransferMenu cagou.core.menu.TransferMenu
 #:import SimpleXHTMLWidget cagou.core.simple_xhtml.SimpleXHTMLWidget
 #:import _ sat.core.i18n._
 #:import C cagou.core.constants.Const
@@ -124,14 +123,6 @@
             multiline: True
             hint_text: _(u"Enter your message here")
             on_text_validate: root.onSend(args[0])
-        SymbolButton
-            # transfer button
-            size_hint: 1, None
-            symbol: "plus-circled"
-            size_hint: None, 1
-            width: dp(30)
-            font_size: dp(25)
-            on_release: TransferMenu(callback=root.onTransferOK).show(self)
 
 
 <SendButton>:
@@ -142,6 +133,15 @@
     font_size: dp(25)
     on_release: self.message_input_box.send_text()
 
+# Buttons added in header
+
+<TransferButton>:
+    size_hint: None, 1
+    symbol: "plus-circled"
+    width: dp(30)
+    font_size: dp(25)
+    color: 0.4, 0.4, 0.4, 1
+
 
 <EncryptionMainButton>:
     size_hint: None, 1