From 282aadb7e904c8201d42cf6d9a780d5f70bbfc26 Mon Sep 17 00:00:00 2001 From: Camila Date: Thu, 19 May 2022 13:05:30 +0200 Subject: [PATCH] Reduce spacing above the notification buttons. Spacing is now the same as space between lines in the text above. Signed-off-by: Camila --- src/gui/tray/ActivityItem.qml | 2 +- src/gui/tray/ActivityItemContent.qml | 4 ++-- theme/Style/Style.qml | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) 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)); } -- 2.30.2