Notifications.qml: improve paddings consistency
This commit is contained in:
parent
de34e25f4f
commit
8d1d6be701
|
@ -20,6 +20,8 @@ HTile {
|
||||||
|
|
||||||
contentOpacity: model.enabled ? 1 : theme.disabledElementsOpacity
|
contentOpacity: model.enabled ? 1 : theme.disabledElementsOpacity
|
||||||
hoverEnabled: false
|
hoverEnabled: false
|
||||||
|
leftPadding: theme.spacing / 4
|
||||||
|
rightPadding: leftPadding
|
||||||
|
|
||||||
contentItem: HColumnLayout {
|
contentItem: HColumnLayout {
|
||||||
spacing: root.spacing / 2
|
spacing: root.spacing / 2
|
||||||
|
@ -95,10 +97,13 @@ HTile {
|
||||||
model.rule_id
|
model.rule_id
|
||||||
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
Layout.leftMargin: theme.spacing
|
||||||
|
Layout.rightMargin: Layout.leftMargin
|
||||||
}
|
}
|
||||||
|
|
||||||
HRowLayout {
|
HRowLayout {
|
||||||
NotificationRuleButton {
|
NotificationRuleButton {
|
||||||
|
id: notifyButton
|
||||||
toggles: "notify"
|
toggles: "notify"
|
||||||
|
|
||||||
contentItem: MessageIndicator {
|
contentItem: MessageIndicator {
|
||||||
|
@ -113,6 +118,7 @@ HTile {
|
||||||
}
|
}
|
||||||
|
|
||||||
NotificationRuleButton {
|
NotificationRuleButton {
|
||||||
|
enabled: notifyButton.on
|
||||||
toggles: "highlight"
|
toggles: "highlight"
|
||||||
|
|
||||||
contentItem: MessageIndicator {
|
contentItem: MessageIndicator {
|
||||||
|
|
|
@ -54,7 +54,6 @@ HListView {
|
||||||
section.property: "kind"
|
section.property: "kind"
|
||||||
section.delegate: HLabel {
|
section.delegate: HLabel {
|
||||||
width: root.width
|
width: root.width
|
||||||
topPadding: padding * (section === "override" ? 1 : 1.5)
|
|
||||||
padding: theme.spacing
|
padding: theme.spacing
|
||||||
font.pixelSize: theme.fontSize.big
|
font.pixelSize: theme.fontSize.big
|
||||||
text:
|
text:
|
||||||
|
@ -78,10 +77,14 @@ HListView {
|
||||||
ApplyButton {
|
ApplyButton {
|
||||||
onClicked: root.save()
|
onClicked: root.save()
|
||||||
loading: root.saveFutureId !== ""
|
loading: root.saveFutureId !== ""
|
||||||
|
|
||||||
|
Layout.topMargin: theme.spacing
|
||||||
}
|
}
|
||||||
|
|
||||||
CancelButton {
|
CancelButton {
|
||||||
onClicked: pendingEdits = {}
|
onClicked: pendingEdits = {}
|
||||||
|
|
||||||
|
Layout.topMargin: theme.spacing
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user