Commit 04e42646 authored by David Edmundson's avatar David Edmundson
Browse files

[kcms/nightcolor] Add hints to temperature slider direction

Test Plan: Looked at it

Reviewers: #plasma, ngraham

Reviewed By: ngraham

Subscribers: broulik, ngraham, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D24763
parent 66344928
......@@ -114,10 +114,13 @@ KCM.SimpleKCM {
}
}
RowLayout {
GridLayout {
Kirigami.FormData.label: i18n("Night Color temperature:")
Kirigami.FormData.buddyFor: tempSlider
enabled: activator.checked
columns: 4
QQC2.Slider {
id: tempSlider
enabled: activator.checked
......@@ -127,16 +130,28 @@ KCM.SimpleKCM {
value: cA.nightTemperature
stepSize: 100
Layout.columnSpan: 3
onValueChanged: {
cA.nightTemperatureStaged = value;
calcNeedsSave();
}
}
QQC2.Label {
QQC2.Label {
text: tempSlider.value + i18n(" K")
}
}
//row 2
QQC2.Label {
text: i18nc("Night colour red-ish", "Warm")
}
Item {
Layout.fillWidth: true
}
QQC2.Label {
text: i18nc("Night colour blue-ish", "Cool")
}
Item {}
}
QQC2.ComboBox {
id: modeSwitcher
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment