Commit 6ce2204b authored by Natalie Clarius's avatar Natalie Clarius Committed by Nate Graham
Browse files

kcms/nightcolor: add label for 6500K = no filter

It is not entirely obvious that 6500K amounts to no blue light filter. Add a
label showing "no filter" when the slider is set to the neutral value.
parent ed64e13b
Pipeline #228496 passed with stage
in 15 minutes and 34 seconds
......@@ -144,7 +144,7 @@ KCM.SimpleKCM {
}
}
QQC2.Label {
text: i18nc("Color temperature in Kelvin", "%1K", tempSliderDay.value)
text: i18nc("Color temperature in Kelvin", "%1K", tempSliderDay.value)
}
//row 2
QQC2.Label {
......@@ -154,7 +154,7 @@ KCM.SimpleKCM {
Layout.fillWidth: true
}
QQC2.Label {
text: i18nc("Night colour blue-ish", "Cool")
text: tempSliderDay.value == tempSliderDay.to ? i18nc("No blue light filter activated", "Cool (no filter)") : i18nc("Night colour blue-ish", "Cool")
}
Item {}
}
......@@ -198,7 +198,7 @@ KCM.SimpleKCM {
}
}
QQC2.Label {
text: i18nc("Color temperature in Kelvin", "%1K", tempSliderNight.value)
text: i18nc("Color temperature in Kelvin", "%1K", tempSliderNight.value)
}
//row 2
QQC2.Label {
......@@ -208,7 +208,7 @@ KCM.SimpleKCM {
Layout.fillWidth: true
}
QQC2.Label {
text: i18nc("Night colour blue-ish", "Cool")
text: tempSliderNight.value == tempSliderNight.to ? i18nc("No blue light filter activated", "Cool (no filter)") : i18nc("Night colour blue-ish", "Cool")
}
Item {}
}
......
Supports Markdown
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