-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTileConfig.qml
More file actions
120 lines (115 loc) · 3.27 KB
/
TileConfig.qml
File metadata and controls
120 lines (115 loc) · 3.27 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
/*
SPDX-FileCopyrightText: 2025 Kavinu Nethsara <kavinunethsarakoswattage@gmail.com>
SPDX-License-Identifier: LGPL-2.1-or-later
*/
import QtQuick
import QtCore
import org.kde.kirigamiaddons.formcard as FormCard
import QtQuick.Dialogs as Dialogs
FormCard.FormCardPage {
id: root
anchors.fill: parent
required property variant config
FormCard.FormHeader {
title: "General"
}
FormCard.FormCard {
FormCard.FormSpinBoxDelegate {
label: "Width"
value: config.width
from: 1
to: 100
stepSize: 1
onValueChanged: {
config.width = value
}
}
FormCard.FormSpinBoxDelegate {
label: "Height"
value: config.height
from: 1
to: 100
stepSize: 1
onValueChanged: {
config.height = value
}
}
FormCard.FormSwitchDelegate {
text: "Show seconds"
checked: config.showSeconds
onCheckedChanged: {
config.showSeconds = checked
}
}
}
FormCard.FormHeader {
title: "Appearance"
}
FormCard.FormCard {
FormCard.FormSwitchDelegate {
id: showBackground
text: "Show Background"
checked: config.showBackground
onCheckedChanged: {
config.showBackground = checked
}
}
FormCard.FormSwitchDelegate {
text: "Rounded Corners"
enabled: showBackground.checked
checked: config.roundedCorners
onCheckedChanged: {
config.roundedCorners = checked
}
}
FormCard.FormSpinBoxDelegate {
label: "Border width"
stepSize: 1
from: 0
to: 100
value: config.borderWidth
onValueChanged: {
config.borderWidth = value
}
}
FormCard.FormSwitchDelegate {
text: "Show inactive LEDs"
checked: config.showOffLeds
onCheckedChanged: {
config.showOffLeds = checked
}
}
FormCard.FormSwitchDelegate {
id: customActive
text: "Custom active LED color"
checked: config.useCustomColorForActive
onCheckedChanged: {
config.useCustomColorForActive = checked
}
}
FormCard.FormColorDelegate {
enabled: customActive.checked
text: "Active LED Color"
color: config.activeColor
onColorChanged: {
config.activeColor = color.toString()
}
}
FormCard.FormSwitchDelegate {
id: customInactive
text: "Custom active LED color"
checked: config.useCustomColorForInactive
onCheckedChanged: {
config.useCustomColorForInactive = checked
}
}
FormCard.FormColorDelegate {
enabled: customInactive.checked
text: "Active LED Color"
color: config.inactiveColor
onColorChanged: {
config.inactiveColor = color.toString()
}
}
}
}