Reduce spacing above the notification buttons.
authorCamila <hello@camila.codes>
Thu, 19 May 2022 11:05:30 +0000 (13:05 +0200)
committerMatthieu Gallien <matthieu_gallien@yahoo.fr>
Wed, 25 May 2022 08:01:38 +0000 (10:01 +0200)
Spacing is now the  same as space between lines in the text above.

Signed-off-by: Camila <hello@camila.codes>
src/gui/tray/ActivityItem.qml
src/gui/tray/ActivityItemContent.qml
theme/Style/Style.qml

index 83631179024aeb7b5be9e91d78f015e6d7a5d34d..a22f1396492d9a643ee825fadc17abc1f6c8d92a 100644 (file)
@@ -62,7 +62,7 @@ MouseArea {
         anchors.leftMargin: Style.standardSpacing
         anchors.verticalCenter: parent.verticalCenter
 
-        spacing: 10
+        spacing: Style.activityContentSpace
 
         ActivityItemContent {
             id: activityContent
index c5408c0fc98afa7ccd03a3ef2e33ee37d2e636a7..77d07814ee37996a89a4398c616c7a6b99f05c1c 100644 (file)
@@ -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
index af7627ade1f86c3bdb3c6d65a4c832d21d53e61b..0aaaf5539e19bd19970e4f4ff7f1c35507cb3fc0 100644 (file)
@@ -97,6 +97,8 @@ QtObject {
 \r
     readonly property var fontMetrics: FontMetrics {}\r
 \r
+    readonly property int activityContentSpace: 4\r
+\r
     function variableSize(size) {\r
         return size * (1 + Math.min(pixelSize / 100, 1));       \r
     }\r