-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPage1Form.ui.qml
112 lines (95 loc) · 1.97 KB
/
Page1Form.ui.qml
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
import QtQuick 2.7
import QtQuick.Controls 2.0
import QtQuick.Layouts 1.0
Item {
property alias redSlider: redSlider
property alias greenSlider: greenSlider
property alias rectangle: rectangle
property alias myButton2: myButton2
property alias myButton1: myButton1
property alias setAnimationBtn: setAnimationBtn
property alias blueSlider: blueSlider
property alias temperatureText: temperatureText
RowLayout {
anchors.horizontalCenter: parent.horizontalCenter
anchors.topMargin: 20
anchors.top: parent.top
}
MyButton {
id: setAnimationBtn
x: 24
y: 290
width: 274
height: 41
text: "SET ANIMATION"
buttonBack: "#0055ff"
}
MyButton {
id: myButton1
x: 24
y: 337
width: 274
height: 41
text: "COLOR PALETTE"
buttonBack: "#00aa00"
}
MyButton {
id: myButton2
x: 24
y: 384
width: 274
height: 41
text: "CONNECT"
buttonBack: "#5500ff"
}
Text {
id: temperatureText
x: 24
y: 8
width: 274
height: 57
text: qsTr("0")
horizontalAlignment: Text.AlignHCenter
font.pixelSize: 39
}
Rectangle {
id: rectangle
x: 24
y: 63
width: 274
height: 60
color: "#ffffff"
border.color: "#040404"
}
MySlider {
id: redSlider
x: 24
y: 142
width: 274
height: 38
to: 255
stepSize: 1
from: 0
value: 1
}
MySlider {
id: greenSlider
x: 24
y: 186
width: 274
height: 38
stepSize: 1
to: 255
sliderColor: "#00ff00"
}
MySlider {
id: blueSlider
x: 24
y: 230
width: 274
height: 38
stepSize: 1
to: 255
sliderColor: "#0000ff"
}
}