comparison 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
comparison
equal deleted inserted replaced
416:3e2333a11f61 417:5b50b7ef2617
237 237
238 class TransferButton(SymbolButton): 238 class TransferButton(SymbolButton):
239 chat = properties.ObjectProperty() 239 chat = properties.ObjectProperty()
240 240
241 def on_release(self, *args): 241 def on_release(self, *args):
242 menu.TransferMenu(callback=self.chat.transferFile).show(self) 242 menu.TransferMenu(
243 encrypted=self.chat.encrypted,
244 callback=self.chat.transferFile,
245 ).show(self)
243 246
244 247
245 class ExtraMenu(DropDown): 248 class ExtraMenu(DropDown):
246 chat = properties.ObjectProperty() 249 chat = properties.ObjectProperty()
247 250