Notifications.qml: improve paddings consistency

This commit is contained in:
miruka 2020-11-03 11:38:37 -04:00
parent de34e25f4f
commit 8d1d6be701
2 changed files with 10 additions and 1 deletions

View File

@ -20,6 +20,8 @@ HTile {
contentOpacity: model.enabled ? 1 : theme.disabledElementsOpacity
hoverEnabled: false
leftPadding: theme.spacing / 4
rightPadding: leftPadding
contentItem: HColumnLayout {
spacing: root.spacing / 2
@ -95,10 +97,13 @@ HTile {
model.rule_id
Layout.fillWidth: true
Layout.leftMargin: theme.spacing
Layout.rightMargin: Layout.leftMargin
}
HRowLayout {
NotificationRuleButton {
id: notifyButton
toggles: "notify"
contentItem: MessageIndicator {
@ -113,6 +118,7 @@ HTile {
}
NotificationRuleButton {
enabled: notifyButton.on
toggles: "highlight"
contentItem: MessageIndicator {

View File

@ -54,7 +54,6 @@ HListView {
section.property: "kind"
section.delegate: HLabel {
width: root.width
topPadding: padding * (section === "override" ? 1 : 1.5)
padding: theme.spacing
font.pixelSize: theme.fontSize.big
text:
@ -78,10 +77,14 @@ HListView {
ApplyButton {
onClicked: root.save()
loading: root.saveFutureId !== ""
Layout.topMargin: theme.spacing
}
CancelButton {
onClicked: pendingEdits = {}
Layout.topMargin: theme.spacing
}
}