[kcm/kwinrules] Adapt width to new breeze style spinboxes

Also port from a stray `units` context property.
remotes/origin/work/sexy_startup
Ismael Asensio 5 years ago committed by Nate Graham
parent f5a883dc17
commit 76e74d7660
  1. 4
      src/kcmkwin/kwinrules/package/contents/ui/RulesEditor.qml
  2. 2
      src/kcmkwin/kwinrules/package/contents/ui/RulesList.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 <interface>Add Property...</interface> 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) => {

@ -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 <interface>Add New...</interface> button below to add some")
}

Loading…
Cancel
Save