diff --git a/kcms/nightcolor/package/contents/ui/LocationsFixedView.qml b/kcms/nightcolor/package/contents/ui/LocationsFixedView.qml --- a/kcms/nightcolor/package/contents/ui/LocationsFixedView.qml +++ b/kcms/nightcolor/package/contents/ui/LocationsFixedView.qml @@ -57,8 +57,9 @@ } QQC2.Button { - text: i18n("Detect location") + text: i18n("Detect Location") implicitWidth: longitudeFixedField.width // TODO: see if there is a smarter way for doing this + icon.name: "edit-paste-in-place" onClicked: { latitudeFixedField.backend = locator.latitude; longitudeFixedField.backend = locator.longitude; diff --git a/kcms/nightcolor/package/contents/ui/main.qml b/kcms/nightcolor/package/contents/ui/main.qml --- a/kcms/nightcolor/package/contents/ui/main.qml +++ b/kcms/nightcolor/package/contents/ui/main.qml @@ -114,31 +114,29 @@ } } - QQC2.Slider { - id: tempSlider + RowLayout { Kirigami.FormData.label: i18n("Night Color temperature:") enabled: activator.checked - from: cA.minimalTemperature - to: cA.neutralTemperature - value: cA.nightTemperature - stepSize: 100 - onValueChanged: { - cA.nightTemperatureStaged = value; - calcNeedsSave(); + QQC2.Slider { + id: tempSlider + enabled: activator.checked + from: cA.minimalTemperature + implicitWidth: modeSwitcher.width + to: cA.neutralTemperature + value: cA.nightTemperature + stepSize: 100 + + onValueChanged: { + cA.nightTemperatureStaged = value; + calcNeedsSave(); + } } - } - - RowLayout { - enabled: activator.checked - Layout.fillWidth: true - QQC2.Label { - Layout.fillWidth: true - horizontalAlignment: Text.AlignHCenter - text: tempSlider.value + i18n(" K") + QQC2.Label { + text: tempSlider.value + i18n(" K") + } } - } QQC2.ComboBox { id: modeSwitcher