[kcm/kwinrules] Adapt width to new breeze style spinboxes
Also port from a stray `units` context property.
This commit is contained in:
parent
f5a883dc17
commit
76e74d7660
2 changed files with 3 additions and 3 deletions
|
@ -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…
Reference in a new issue