-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathPage3Form.ui.qml
More file actions
131 lines (120 loc) · 2.52 KB
/
Page3Form.ui.qml
File metadata and controls
131 lines (120 loc) · 2.52 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
import QtQuick 2.12
import QtQuick.Controls 2.5
import MqttClient 1.0
Page {
width: 800
height: 480
property alias rainbowButton: rainbowButton
property alias blue_slider: blue_slider
property alias green_slider: green_slider
property alias red_slider: red_slider
property alias fadeButton: fadeButton
property alias solidButton: solidButton
property alias relaySwitch: relaySwitch
property alias relaybutton: relaybutton
Button {
id: relaybutton
x: 140
y: 296
width: 128
height: 48
text: qsTr("Connect")
font.pointSize: 14
enabled: client.state === MqttClient.Connected
}
Switch {
id: relaySwitch
x: 564
y: 336
text: qsTr("Relay")
font.pointSize: 14
enabled: false
checked: relay
}
Slider {
id: red_slider
x: 29
y: 103
width: 360
height: 57
font.family: "Times New Roman"
stepSize: 1
to: 255
value: 0
enabled: false
}
Slider {
id: green_slider
x: 29
y: 149
width: 360
height: 50
stepSize: 1
to: 255
value: 0
enabled: false
}
Slider {
id: blue_slider
x: 29
y: 192
width: 360
height: 54
stepSize: 1
to: 255
value: 0
enabled: false
}
Text {
id: element
x: 107
y: 68
width: 234
height: 38
text: qsTr("RGB LED controls")
color: "white"
verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignHCenter
font.pixelSize: 24
}
Text {
id: element1
x: 502
y: 68
width: 234
height: 38
text: qsTr("RGB LED effects")
color: "white"
font.pixelSize: 24
verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignHCenter
}
Button {
id: solidButton
x: 549
y: 112
text: qsTr("Solid Color")
font.pointSize: 14
enabled: false
}
Button {
id: fadeButton
x: 549
y: 176
width: 140
height: 48
text: qsTr("Fade")
font.pointSize: 14
enabled: false
}
Button {
id: rainbowButton
x: 549
y: 242
width: 140
height: 48
text: qsTr("Rainbow")
font.pointSize: 14
enabled: false
}
}