Mercurial > libervia-desktop-kivy
comparison cagou/core/constants.py @ 325:5868a5575e01
chat: cleaning + some improvments:
- code cleaning, removed some dead code
- some improvments on the way size is calculated, removed unnecessary sizing methods which
were linked to properties
- image have now a max size, this avoid gigantic image in the whole screen
- in SimpleXHTMLWidget, Label are now splitted when xhtml is set
- use a DelayedBoxLayout for messages, as they are really slow to be resized
- use of RecycleView has been investigated, but it is not currently usable as dynamic
contents are not propertly handled (see https://github.com/kivy/kivy/issues/6580 and
https://github.com/kivy/kivy/issues/6582). Furthermore, some tests with RecycleView on
Android don't give the expected speed boost, so BoxLayout still seems like the way to go
for the moment. To be re-investigated at a later point if necessary.
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 06 Dec 2019 13:25:31 +0100 |
parents | e2b51663d8b8 |
children | 4d660b252487 |
comparison
equal
deleted
inserted
replaced
324:4374cb741eb5 | 325:5868a5575e01 |
---|---|
50 COLOR_INFO = COLOR_PRIM_LIGHT | 50 COLOR_INFO = COLOR_PRIM_LIGHT |
51 COLOR_WARNING = (1.0, 1.0, 0.0, 1) | 51 COLOR_WARNING = (1.0, 1.0, 0.0, 1) |
52 COLOR_ERROR = (1.0, 0.0, 0.0, 1) | 52 COLOR_ERROR = (1.0, 0.0, 0.0, 1) |
53 | 53 |
54 COLOR_BTN_LIGHT = (0.4, 0.4, 0.4, 1) | 54 COLOR_BTN_LIGHT = (0.4, 0.4, 0.4, 1) |
55 | |
56 # values are in dp | |
57 IMG_MAX_WIDTH = 500 | |
58 IMG_MAX_HEIGHT = 500 |