comparison cagou/core/cagou_main.py @ 274:7d5297984191

core, chat: UI improvments: - better aligment of elements on left and right border, using new app.MARGIN_LEFT and app.MARGIN_RIGHT constants - Better sizing of JidItem, avoiding the avatar to touch the bottom border
author Goffi <goffi@goffi.org>
date Wed, 20 Mar 2019 09:29:44 +0100
parents c4990a7d5dbd
children a0835f0212d8
comparison
equal deleted inserted replaced
273:0ef216091f2b 274:7d5297984191
292 c_prim_light = properties.ListProperty(C.COLOR_PRIM_LIGHT) 292 c_prim_light = properties.ListProperty(C.COLOR_PRIM_LIGHT)
293 c_prim_dark = properties.ListProperty(C.COLOR_PRIM_DARK) 293 c_prim_dark = properties.ListProperty(C.COLOR_PRIM_DARK)
294 c_sec = properties.ListProperty(C.COLOR_SEC) 294 c_sec = properties.ListProperty(C.COLOR_SEC)
295 c_sec_light = properties.ListProperty(C.COLOR_SEC_LIGHT) 295 c_sec_light = properties.ListProperty(C.COLOR_SEC_LIGHT)
296 c_sec_dark = properties.ListProperty(C.COLOR_SEC_DARK) 296 c_sec_dark = properties.ListProperty(C.COLOR_SEC_DARK)
297 # we have to put those constants here and not in core/constants.py
298 # because of the use of dp(), which would import Kivy too early
299 # and prevent the log hack
300 MARGIN_LEFT = MARGIN_RIGHT = dp(10)
297 301
298 def _install_settings_keys(self, window): 302 def _install_settings_keys(self, window):
299 # we don't want default Kivy's behaviour of displaying 303 # we don't want default Kivy's behaviour of displaying
300 # a settings screen when pressing F1 or platform specific key 304 # a settings screen when pressing F1 or platform specific key
301 return 305 return