From: Camila Date: Thu, 19 May 2022 11:05:30 +0000 (+0200) Subject: Reduce spacing above the notification buttons. X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~15^2~187^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=282aadb7e904c8201d42cf6d9a780d5f70bbfc26;p=nextcloud-desktop.git Reduce spacing above the notification buttons. Spacing is now the same as space between lines in the text above. Signed-off-by: Camila --- diff --git a/src/gui/tray/ActivityItem.qml b/src/gui/tray/ActivityItem.qml index 836311790..a22f13964 100644 --- a/src/gui/tray/ActivityItem.qml +++ b/src/gui/tray/ActivityItem.qml @@ -62,7 +62,7 @@ MouseArea { anchors.leftMargin: Style.standardSpacing anchors.verticalCenter: parent.verticalCenter - spacing: 10 + spacing: Style.activityContentSpace ActivityItemContent { id: activityContent diff --git a/src/gui/tray/ActivityItemContent.qml b/src/gui/tray/ActivityItemContent.qml index c5408c0fc..77d07814e 100644 --- a/src/gui/tray/ActivityItemContent.qml +++ b/src/gui/tray/ActivityItemContent.qml @@ -106,11 +106,11 @@ RowLayout { Column { id: activityTextColumn - Layout.topMargin: 4 + Layout.topMargin: Style.activityContentSpace Layout.fillWidth: true Layout.alignment: Qt.AlignLeft | Qt.AlignVCenter - spacing: 4 + spacing: Style.activityContentSpace Label { id: activityTextTitle diff --git a/theme/Style/Style.qml b/theme/Style/Style.qml index af7627ade..0aaaf5539 100644 --- a/theme/Style/Style.qml +++ b/theme/Style/Style.qml @@ -97,6 +97,8 @@ QtObject { readonly property var fontMetrics: FontMetrics {} + readonly property int activityContentSpace: 4 + function variableSize(size) { return size * (1 + Math.min(pixelSize / 100, 1)); }