-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRoot.qml
118 lines (100 loc) · 3.01 KB
/
Root.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
113
114
115
116
117
118
import QtCore
import QtQuick
import QtQuick.Controls.Basic
import qube
Page {
id: root
width: 260
height: 420
visible: true
palette {
button: "#4af"
buttonText: "#fff"
highlight: "#57f"
highlightedText: "#fff"
base: "#1d1c21"
text: "#eee"
window: '#1d1c21'
windowText: "#eee"
placeholderText: '#eee'
}
component ButtonColor: Button {
width: 20; height: width; text: '\u2022'
onClicked: {
root.palette.button = palette.button
root.palette.buttonText = palette.buttonText
root.palette.highlight = palette.button
root.palette.highlightedText = palette.buttonText
}
}
component BackColor: Button {
width: 20; height: width; text: '\u2022'
onClicked: {
root.palette.base = palette.button
root.palette.text = palette.buttonText
root.palette.window = palette.button
root.palette.windowText = palette.buttonText
root.palette.placeholderText = palette.buttonText
}
}
component Title: Label {
color: palette.windowText
font.bold: true
opacity: 0.3
}
component HLine: Rectangle {
color: palette.windowText
width: parent && parent.width
opacity: 0.3
}
Control {
x: 5; y: root.height - height - 5; z: 3
padding: 5
background: Rectangle { color: palette.windowText; opacity: 0.2; radius: 3 }
contentItem: Row {
spacing: 4
ButtonColor { palette { button:'#48abff';buttonText:'#1d1c21' }}
ButtonColor { palette { button:'#edc9aa';buttonText:'#1d1c21' }}
ButtonColor { palette { button:'#4ce0b3';buttonText:'#1d1c21' }}
ButtonColor { palette { button:'#1d1c21';buttonText:'#f5f6f7' }}
Item { width: 4; height: parent.height }
BackColor { palette { button: '#f5f6f7'; buttonText:'#1d1c21' }}
BackColor { palette { button: '#1d1c21'; buttonText:'#f5f6f7' }}
}
}
Settings {
id: settings
location: 'config.conf'
property alias cindex: swipview.currentIndex
}
PageIndicator {
x: parent.width - width - 25
y: parent.height - height - 5
count: swipview.count
currentIndex: swipview.currentIndex
palette.dark: '#fff'
}
SwipeView {
id: swipview
padding: 5
spacing: padding
anchors.fill: parent
Grid {
columns: 1; rows: -1; spacing: 5
RadioButton { text: 'CheckBox' }
RadioButton { text: 'CheckBox' }
CheckBox {
text: 'CheckBox'
tristate: true
}
Switch {
text: 'CheckBox'
}
Title { text: 'MultiRangeSlider' }
}
Grid {
columns: 1; rows: -1; spacing: 5
Title { text: 'MultiRangeSlider' }
}
}
}