notifications!
This commit is contained in:
@ -17,6 +17,9 @@ QQC2.Pane {
|
||||
property alias cfg_colorHalf: colorHalf.color
|
||||
property alias cfg_colorFull: colorFull.color
|
||||
|
||||
property alias cfg_notifications: notifications.checked
|
||||
property alias cfg_batteryThreshold: batteryThreshold.value
|
||||
|
||||
Kirigami.FormLayout {
|
||||
anchors.fill: parent
|
||||
wideMode: false
|
||||
@ -157,5 +160,40 @@ QQC2.Pane {
|
||||
color: Helper.interpolateColor( 1, [ cfg_colorEmpty.toString(), cfg_colorHalf.toString(), cfg_colorFull.toString() ])
|
||||
}
|
||||
}
|
||||
|
||||
GridLayout {
|
||||
columns: 3
|
||||
rows: 2
|
||||
rowSpacing: 10
|
||||
|
||||
// first row
|
||||
Text {
|
||||
text: "notifications:"
|
||||
color: PlasmaCore.Theme.textColor
|
||||
}
|
||||
PlasmaComponents.CheckBox {
|
||||
id: notifications
|
||||
}
|
||||
Text {
|
||||
text: ""
|
||||
}
|
||||
|
||||
// second row
|
||||
Text {
|
||||
text: "battery threshold:"
|
||||
color: PlasmaCore.Theme.textColor
|
||||
}
|
||||
PlasmaComponents.Slider {
|
||||
id: batteryThreshold
|
||||
value: 10
|
||||
minimumValue: 1
|
||||
maximumValue: 50
|
||||
stepSize: 1
|
||||
}
|
||||
Text {
|
||||
text: cfg_batteryThreshold
|
||||
color: PlasmaCore.Theme.textColor
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user