comparison cagou/plugins/plugin_wid_chat.kv @ 434:977158b56ce6

chat: use a Line instead of 2 RoundedRectangle for decoration
author Goffi <goffi@goffi.org>
date Sun, 01 Mar 2020 22:11:25 +0100
parents aa204c813f07
children b5e6d36fbf9c
comparison
equal deleted inserted replaced
433:aa204c813f07 434:977158b56ce6
34 34
35 <AttachmentItem>: 35 <AttachmentItem>:
36 canvas.before: 36 canvas.before:
37 Color: 37 Color:
38 rgb: app.c_prim_dark 38 rgb: app.c_prim_dark
39 RoundedRectangle: 39 Line:
40 pos: self.pos 40 rounded_rectangle: self.x + dp(1), self.y + dp(1), self.width - dp(2), self.height - dp(2), 10
41 size: self.size
42 Color:
43 rgb: 1, 1, 1, 1
44 RoundedRectangle:
45 pos: self.x + dp(1), self.y + dp(1)
46 size: self.width - dp(2), self.height - dp(2)
47 Color: 41 Color:
48 rgb: app.c_sec_light 42 rgb: app.c_sec_light
49 RoundedRectangle: 43 RoundedRectangle:
50 pos: self.x + dp(1), self.y + dp(1) 44 pos: self.x + dp(1), self.y + dp(1)
51 size: (self.width - dp(2)) * root.progress / 100, self.height - dp(2) 45 size: (self.width - dp(2)) * root.progress / 100, self.height - dp(2)