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.
wilder-5.26
Natalie Clarius 4 years ago committed by Nate Graham
parent ed64e13ba8
commit 6ce2204b70
  1. 8
      kcms/nightcolor/package/contents/ui/main.qml

@ -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 {}
}

Loading…
Cancel
Save