diff --git a/src/kcmkwin/kwinrules/package/contents/ui/RulesEditor.qml b/src/kcmkwin/kwinrules/package/contents/ui/RulesEditor.qml index 5235e8604b..6b85d19bd8 100644 --- a/src/kcmkwin/kwinrules/package/contents/ui/RulesEditor.qml +++ b/src/kcmkwin/kwinrules/package/contents/ui/RulesEditor.qml @@ -59,7 +59,7 @@ ScrollViewKCM { Kirigami.PlaceholderMessage { id: hintArea anchors.centerIn: parent - width: parent.width - (units.largeSpacing * 4) + width: parent.width - (Kirigami.Units.largeSpacing * 4) text: i18n("No window properties changed") explanation: xi18nc("@info", "Click the Add Property... button below to add some window properties that will be affected by the rule") } @@ -107,7 +107,7 @@ ScrollViewKCM { QQC2.SpinBox { id: delaySpin enabled: detectButton.enabled - Layout.preferredWidth: Math.max(metricsInstant.advanceWidth, metricsAfter.advanceWidth) + Kirigami.Units.gridUnit * 2 + Layout.preferredWidth: Math.max(metricsInstant.advanceWidth, metricsAfter.advanceWidth) + Kirigami.Units.gridUnit * 4 from: 0 to: 30 textFromValue: (value, locale) => { diff --git a/src/kcmkwin/kwinrules/package/contents/ui/RulesList.qml b/src/kcmkwin/kwinrules/package/contents/ui/RulesList.qml index 5ecaaeb35c..c88740eb68 100644 --- a/src/kcmkwin/kwinrules/package/contents/ui/RulesList.qml +++ b/src/kcmkwin/kwinrules/package/contents/ui/RulesList.qml @@ -57,7 +57,7 @@ ScrollViewKCM { Kirigami.PlaceholderMessage { visible: ruleBookView.count === 0 anchors.centerIn: parent - width: parent.width - (units.largeSpacing * 4) + width: parent.width - (Kirigami.Units.largeSpacing * 4) text: i18n("No rules for specific windows are currently set"); explanation: xi18nc("@info", "Click the Add New... button below to add some") }