bar: make groups cleaner

This commit is contained in:
end-4
2025-06-13 20:39:09 +02:00
parent 753df0b48c
commit d70a117270
12 changed files with 64 additions and 56 deletions
@@ -4,19 +4,17 @@ import "root:/services"
import QtQuick
import QtQuick.Layouts
Rectangle {
Item {
id: root
property bool borderless: ConfigOptions.bar.borderless
property bool showDate: true
implicitWidth: rowLayout.implicitWidth + rowLayout.spacing * 6 // idk, text seems nicer w/ more padding
property bool showDate: ConfigOptions.bar.verbose
implicitWidth: rowLayout.implicitWidth
implicitHeight: 32
color: borderless ? "transparent" : Appearance.colors.colLayer1
radius: Appearance.rounding.small
RowLayout {
id: rowLayout
spacing: 4
anchors.centerIn: parent
spacing: 4
StyledText {
font.pixelSize: Appearance.font.pixelSize.large
@@ -25,14 +23,14 @@ Rectangle {
}
StyledText {
visible: showDate
visible: root.showDate
font.pixelSize: Appearance.font.pixelSize.small
color: Appearance.colors.colOnLayer1
text: "•"
}
StyledText {
visible: showDate
visible: root.showDate
font.pixelSize: Appearance.font.pixelSize.small
color: Appearance.colors.colOnLayer1
text: DateTime.date