Moved dividers into parent for proper spacing
This commit is contained in:
14
bar/Bar.qml
14
bar/Bar.qml
@@ -65,10 +65,24 @@ Scope {
|
|||||||
Layout.fillWidth: false
|
Layout.fillWidth: false
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
}
|
}
|
||||||
|
StyledText {
|
||||||
|
Layout.alignment: Qt.AlignVCenter
|
||||||
|
font.pixelSize: Appearance.font.pixelSize.larger
|
||||||
|
color: Appearance.colors.colSubtext
|
||||||
|
text: "•"
|
||||||
|
visible: true
|
||||||
|
}
|
||||||
NotificationIcon {
|
NotificationIcon {
|
||||||
Layout.fillWidth: false
|
Layout.fillWidth: false
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
}
|
}
|
||||||
|
StyledText {
|
||||||
|
Layout.alignment: Qt.AlignVCenter
|
||||||
|
font.pixelSize: Appearance.font.pixelSize.larger
|
||||||
|
color: Appearance.colors.colSubtext
|
||||||
|
text: "•"
|
||||||
|
visible: true
|
||||||
|
}
|
||||||
ClockWidget {
|
ClockWidget {
|
||||||
id: clock
|
id: clock
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
|
|||||||
@@ -8,38 +8,30 @@ Item {
|
|||||||
|
|
||||||
height: parent.height
|
height: parent.height
|
||||||
implicitWidth: rowLayout.implicitWidth
|
implicitWidth: rowLayout.implicitWidth
|
||||||
Layout.leftMargin: Appearance.rounding.screenRounding
|
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
id: rowLayout
|
id: rowLayout
|
||||||
|
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
spacing: 15
|
//spacing: 15
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
Layout.alignment: Qt.AlignVCenter
|
Layout.alignment: Qt.AlignVCenter
|
||||||
font.pixelSize: Appearance.font.pixelSize.larger
|
font.pixelSize: Appearance.font.pixelSize.larger
|
||||||
color: Appearance.m3colors.m3error
|
color: Appearance.m3colors.m3error
|
||||||
text: NotificationServer.amountNotifications
|
text: "" + NotificationServer.amountNotifications
|
||||||
visible: {
|
visible: {
|
||||||
NotificationServer.amountNotifications > 0
|
NotificationServer.amountNotifications > 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
MaterialSymbol {
|
MaterialSymbol {
|
||||||
|
Layout.alignment: Qt.AlignVCenter
|
||||||
visible: true
|
visible: true
|
||||||
anchors.centerIn: parent
|
fill: 1
|
||||||
text: NotificationServer.amountNotifications > 0 ? "notifications_unread" : "notifications"
|
text: NotificationServer.amountNotifications > 0 ? "notifications_unread" : "notifications"
|
||||||
iconSize: Appearance.font.pixelSize.larger
|
iconSize: Appearance.font.pixelSize.larger
|
||||||
color: NotificationServer.amountNotifications > 0 ? Appearance.m3colors.m3error : Appearance.m3colors.m3onSecondaryContainer
|
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
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -9,7 +9,6 @@ Item {
|
|||||||
|
|
||||||
height: parent.height
|
height: parent.height
|
||||||
implicitWidth: rowLayout.implicitWidth
|
implicitWidth: rowLayout.implicitWidth
|
||||||
Layout.leftMargin: Appearance.rounding.screenRounding
|
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
id: rowLayout
|
id: rowLayout
|
||||||
@@ -25,15 +24,5 @@ Item {
|
|||||||
item: modelData
|
item: modelData
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
StyledText {
|
|
||||||
Layout.alignment: Qt.AlignVCenter
|
|
||||||
font.pixelSize: Appearance.font.pixelSize.larger
|
|
||||||
color: Appearance.colors.colSubtext
|
|
||||||
text: "•"
|
|
||||||
visible: {
|
|
||||||
SystemTray.items.values.length > 0
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user