comparison cagou/core/menu.py @ 415:5761b5f03c0c

menu: TransferMenu UI improvment
author Goffi <goffi@goffi.org>
date Sun, 23 Feb 2020 15:39:06 +0100
parents f7476818f9fb
children 5b50b7ef2617
comparison
equal deleted inserted replaced
414:72a6b06728ab 415:5761b5f03c0c
212 send_txt = _("The file will be sent unencrypted directly to your contact " 212 send_txt = _("The file will be sent unencrypted directly to your contact "
213 "(without transiting by the server), except in some cases") 213 "(without transiting by the server), except in some cases")
214 items_layout = properties.ObjectProperty() 214 items_layout = properties.ObjectProperty()
215 size_hint_close = (1, 0) 215 size_hint_close = (1, 0)
216 size_hint_open = (1, 0.5) 216 size_hint_open = (1, 0.5)
217 bg_color = properties.ListProperty([1, 1, 1, 1])
217 218
218 def __init__(self, **kwargs): 219 def __init__(self, **kwargs):
219 super(TransferMenu, self).__init__(**kwargs) 220 super(TransferMenu, self).__init__(**kwargs)
220 if self.profiles is None: 221 if self.profiles is None:
221 self.profiles = iter(G.host.profiles) 222 self.profiles = iter(G.host.profiles)