-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathControllerUI.kv
More file actions
103 lines (90 loc) · 1.56 KB
/
ControllerUI.kv
File metadata and controls
103 lines (90 loc) · 1.56 KB
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
#:kivy 1.0
<UIButton@Button>:
font_size: 24
<TitleLabel@Label>:
font_size: 48
<LargeLabel@Label>:
font_size: 32
<MedLabel@Label>:
font_size: 24
<SmallLabel@Label>:
font_size: 18
<ControllerUI>:
id: uiid
rows: 5
row_force_defaut: True
row_default_height: 50
padding: 10
spacing: 10
BoxLayout:
TitleLabel:
text: "LED Full Manual Controller"
BoxLayout:
spacing: 10
MedLabel:
text: 'Color (hex):'
TextInput:
id: color_input
font_size: 24
UIButton:
id: color_picker_button
text: 'Open Color Picker'
on_release: root.openColorPicker()
BoxLayout:
spacing: 10
UIButton:
id: color_all_button
text: 'Set Color All'
BoxLayout:
spacing: 10
GridLayout:
rows: 2
spacing: 2
MedLabel:
text: 'Set Color Range'
BoxLayout:
SmallLabel:
text_size: self.size
text:'Start LED:'
halign: 'right'
size_hint_x: .5
TextInput:
id: start_led
font_size: 16
size_hint_x: .8
SmallLabel:
text_size: self.size
text: 'range:'
halign: 'right'
size_hint_x: .5
TextInput:
id: led_range
font_size: 16
size_hint_x: .8
UIButton:
id: color_range_button
text: 'Set'
size_hint_x: .5
BoxLayout:
spacing: 10
UIButton:
text: '9'
UIButton:
text: '10'
<ColorPickerWindow>:
id: cpopup
title: 'test'
size_hint: .8, .8
auto_dismiss: False
BoxLayout:
id: box
spacing: 10
padding: 10
orientation: 'vertical'
ColorPicker:
id: cp
on_color: print(args)
UIButton:
size_hint_y: .1
text: "OK"
on_release: cpopup.close()