-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathPage.kv
52 lines (44 loc) · 1.17 KB
/
Page.kv
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#:kivy 1.10.0
<Page>:
orientation: 'horizontal'
canvas.before:
Color:
rgba: root.background_color
Rectangle:
pos: self.pos
size: self.size
texture: root.background_image
Label:
text: root.title
color: root.text_color
font_size: 20
width: 25
size_hint_x: None
canvas.before:
Color:
rgba: root.tab_color
Rectangle:
pos: self.pos
size: self.size
Color:
rgba: 1, 1, 1, 0.2
Rectangle:
pos: self.pos
size: 1, self.height
Rectangle:
pos: self.x, self.y + self.height - 1
size: self.width, 1
Color:
rgba: 0, 0, 0, 0.2
Rectangle:
pos: self.x + self.width - 1, self.y
size: 1, self.height
Rectangle:
pos: self.pos
size: self.width, 1
PushMatrix
Rotate:
angle: 90
origin: self.center
canvas.after:
PopMatrix