Skip to content

Commit

Permalink
Reduce spacing above the notification buttons.
Browse files Browse the repository at this point in the history
Spacing is now the  same as space between lines in the text above.

Signed-off-by: Camila <[email protected]>
  • Loading branch information
Camila authored and mgallien committed May 25, 2022
1 parent 2f96f63 commit 282aadb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/gui/tray/ActivityItem.qml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ MouseArea {
anchors.leftMargin: Style.standardSpacing
anchors.verticalCenter: parent.verticalCenter

spacing: 10
spacing: Style.activityContentSpace

ActivityItemContent {
id: activityContent
Expand Down
4 changes: 2 additions & 2 deletions src/gui/tray/ActivityItemContent.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions theme/Style/Style.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit 282aadb

Please sign in to comment.