Moved dividers into parent for proper spacing

This commit is contained in:
2025-09-01 00:51:41 -04:00
parent f5dbdea627
commit afacce3708
3 changed files with 18 additions and 23 deletions

View File

@@ -65,10 +65,24 @@ Scope {
Layout.fillWidth: false
Layout.fillHeight: true
}
StyledText {
Layout.alignment: Qt.AlignVCenter
font.pixelSize: Appearance.font.pixelSize.larger
color: Appearance.colors.colSubtext
text: "•"
visible: true
}
NotificationIcon {
Layout.fillWidth: false
Layout.fillHeight: true
}
StyledText {
Layout.alignment: Qt.AlignVCenter
font.pixelSize: Appearance.font.pixelSize.larger
color: Appearance.colors.colSubtext
text: "•"
visible: true
}
ClockWidget {
id: clock
Layout.fillHeight: true

View File

@@ -8,38 +8,30 @@ Item {
height: parent.height
implicitWidth: rowLayout.implicitWidth
Layout.leftMargin: Appearance.rounding.screenRounding
RowLayout {
id: rowLayout
anchors.fill: parent
spacing: 15
//spacing: 15
StyledText {
Layout.alignment: Qt.AlignVCenter
font.pixelSize: Appearance.font.pixelSize.larger
color: Appearance.m3colors.m3error
text: NotificationServer.amountNotifications
text: "" + NotificationServer.amountNotifications
visible: {
NotificationServer.amountNotifications > 0
}
}
MaterialSymbol {
Layout.alignment: Qt.AlignVCenter
visible: true
anchors.centerIn: parent
fill: 1
text: NotificationServer.amountNotifications > 0 ? "notifications_unread" : "notifications"
iconSize: Appearance.font.pixelSize.larger
color: NotificationServer.amountNotifications > 0 ? Appearance.m3colors.m3error : Appearance.m3colors.m3onSecondaryContainer
}
StyledText {
Layout.alignment: Qt.AlignVCenter
font.pixelSize: Appearance.font.pixelSize.larger
color: Appearance.colors.colSubtext
text: "•"
visible: true
}
}
}

View File

@@ -9,7 +9,6 @@ Item {
height: parent.height
implicitWidth: rowLayout.implicitWidth
Layout.leftMargin: Appearance.rounding.screenRounding
RowLayout {
id: rowLayout
@@ -25,15 +24,5 @@ Item {
item: modelData
}
}
StyledText {
Layout.alignment: Qt.AlignVCenter
font.pixelSize: Appearance.font.pixelSize.larger
color: Appearance.colors.colSubtext
text: "•"
visible: {
SystemTray.items.values.length > 0
}
}
}
}