Quellcode durchsuchen

Reduce spacing above the notification buttons.

Spacing is now the  same as space between lines in the text above.

Signed-off-by: Camila <hello@camila.codes>
Camila vor 3 Jahren
Ursprung
Commit
282aadb7e9
3 geänderte Dateien mit 5 neuen und 3 gelöschten Zeilen
  1. 1 1
      src/gui/tray/ActivityItem.qml
  2. 2 2
      src/gui/tray/ActivityItemContent.qml
  3. 2 0
      theme/Style/Style.qml

+ 1 - 1
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

+ 2 - 2
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

+ 2 - 0
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));       
     }