diff 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
line wrap: on
line diff
--- a/cagou/core/cagou_main.py	Wed Mar 20 09:29:44 2019 +0100
+++ b/cagou/core/cagou_main.py	Wed Mar 20 09:29:44 2019 +0100
@@ -294,6 +294,10 @@
     c_sec = properties.ListProperty(C.COLOR_SEC)
     c_sec_light = properties.ListProperty(C.COLOR_SEC_LIGHT)
     c_sec_dark = properties.ListProperty(C.COLOR_SEC_DARK)
+    # we have to put those constants here and not in core/constants.py
+    # because of the use of dp(), which would import Kivy too early
+    # and prevent the log hack
+    MARGIN_LEFT = MARGIN_RIGHT = dp(10)
 
     def _install_settings_keys(self, window):
         # we don't want default Kivy's behaviour of displaying