diff cagou/plugins/plugin_wid_chat.py @ 417:5b50b7ef2617

menu (TransferMenu): UI improvments: - a white background is now used - ToggleButton have been replaced by SymbolButtonLabel - transfer info message now displays with emphasis if the file will be encrypted or not, and explain when the file goes to the server - various padding/spacing/color adjustments
author Goffi <goffi@goffi.org>
date Sun, 23 Feb 2020 17:16:27 +0100
parents 72a6b06728ab
children 8a9bfe3fb9c6
line wrap: on
line diff
--- a/cagou/plugins/plugin_wid_chat.py	Sun Feb 23 17:13:15 2020 +0100
+++ b/cagou/plugins/plugin_wid_chat.py	Sun Feb 23 17:16:27 2020 +0100
@@ -239,7 +239,10 @@
     chat = properties.ObjectProperty()
 
     def on_release(self, *args):
-        menu.TransferMenu(callback=self.chat.transferFile).show(self)
+        menu.TransferMenu(
+            encrypted=self.chat.encrypted,
+            callback=self.chat.transferFile,
+        ).show(self)
 
 
 class ExtraMenu(DropDown):