comparison cagou/core/cagou_main.py @ 247:cf61a011f731

core (notes), common (symbol): added an icon showing note level: because of Symbol binding, it was difficult to precisely set the icon position, so Symbol has been modified to remove bindings. Added consts for INFO, WARNING and ERROR colors.
author Goffi <goffi@goffi.org>
date Sat, 26 Jan 2019 20:24:48 +0100
parents 15e47bbb192c
children b6e33b35538b
comparison
equal deleted inserted replaced
246:15e47bbb192c 247:cf61a011f731
104 message = properties.StringProperty() 104 message = properties.StringProperty()
105 level = properties.OptionProperty(C.XMLUI_DATA_LVL_DEFAULT, 105 level = properties.OptionProperty(C.XMLUI_DATA_LVL_DEFAULT,
106 options=list(C.XMLUI_DATA_LVLS)) 106 options=list(C.XMLUI_DATA_LVLS))
107 107
108 108
109 class NoteDrop(Label): 109 class NoteDrop(BoxLayout):
110 title = properties.StringProperty() 110 title = properties.StringProperty()
111 message = properties.StringProperty() 111 message = properties.StringProperty()
112 level = properties.OptionProperty(C.XMLUI_DATA_LVL_DEFAULT, 112 level = properties.OptionProperty(C.XMLUI_DATA_LVL_DEFAULT,
113 options=list(C.XMLUI_DATA_LVLS)) 113 options=list(C.XMLUI_DATA_LVLS))
114 114