-
Notifications
You must be signed in to change notification settings - Fork 23
/
toolbarview.kv
88 lines (81 loc) · 2.15 KB
/
toolbarview.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<ProgressFieldLabel>:
RelativeLayout:
StencilView:
size_hint: (None, 1.0)
id: stencil
width: 0
canvas.after:
Color:
rgba: root.color
Rectangle:
pos: self.pos
size: self.size
FieldLabel:
id: value
halign: 'center'
color: root.text_color
font_size: self.height * 0.6
<ToolbarItem>:
canvas.before:
Color:
rgba: ColorScheme.get_dark_background()
Rectangle:
pos: self.pos
size: self.size
<ToolbarView>:
orientation: 'horizontal'
spacing: sp(2)
ToolbarItem:
padding: self.height * 0.5, 0
size_hint_x: 0.10
orientation: 'horizontal'
IconButton:
id: 'menu'
text: '\357\203\211'
on_release: root.mainMenu()
size_hint_x: None
width: self.height * 1
font_size: self.height
Button:
background_color: [0.0, 0.0, 0.0, 0.0]
background_down: ''
text: ' '
font_name: "resource/fonts/ASL_light.ttf"
size_hint_x: 0.0
width: self.height * 2.4
font_size: self.height * 0.7
on_release: root.mainMenu()
ToolbarItem:
orientation: 'horizontal'
padding: self.height * 0.4, 0
size_hint_x: 0.50
FieldLabel:
halign: 'center'
text: ''
id: state
font_size: self.height * 0.7
ToolbarItem:
orientation: 'horizontal'
padding: self.height * 0.4, 0
size_hint_x: 0.3
ProgressFieldLabel:
text: ''
id: prog_status
ToolbarItem:
orientation: 'horizontal'
size_hint_x: 0.1
IconButton:
id: teleStatus
text: '\357\203\256'
color: [0.0, 1.0, 0.0, 0.2]
font_size: self.height * 0.8
IconButton:
id: rcTxStatus
text: '\357\200\231'
color: [0.0, 1.0, 0.0, 0.2]
font_size: self.height * 0.8
IconButton:
id: rcRxStatus
text: '\357\202\223'
color: [0.0, 0.8, 1.0, 0.2]
font_size: self.height * 0.8