Mercurial > libervia-desktop-kivy
comparison cagou/kv/common.kv @ 410:2a58f3d756ad
common: use light secondary colour instead of red for notification labels' background
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 22 Feb 2020 18:28:47 +0100 |
parents | f7476818f9fb |
children | 3e2333a11f61 |
comparison
equal
deleted
inserted
replaced
409:2caea63ae2ab | 410:2a58f3d756ad |
---|---|
14 # You should have received a copy of the GNU Affero General Public License | 14 # You should have received a copy of the GNU Affero General Public License |
15 # along with this program. If not, see <http://www.gnu.org/licenses/>. | 15 # along with this program. If not, see <http://www.gnu.org/licenses/>. |
16 | 16 |
17 | 17 |
18 <NotifLabel>: | 18 <NotifLabel>: |
19 background_color: 1, 0, 0, 1 | 19 background_color: app.c_sec_light |
20 size_hint: None, None | 20 size_hint: None, None |
21 text_size: None, root.height | 21 text_size: None, root.height |
22 padding_x: sp(5) | 22 padding_x: sp(5) |
23 size: self.texture_size | 23 size: self.texture_size |
24 bold: True | 24 bold: True |
25 canvas.before: | 25 canvas.before: |
26 Color: | 26 Color: |
27 rgba: root.background_color | 27 # self.background_color doesn't seem initialized correctly on startup |
28 # (maybe a Kivy bug? to be checked), thus we use the "or" below | |
29 rgb: self.background_color or app.c_sec_light | |
28 Ellipse: | 30 Ellipse: |
29 size: self.size | 31 size: self.size |
30 pos: self.pos | 32 pos: self.pos |
31 | 33 |
32 | 34 |