feat(quickshell): add dense telemetry bar #4

Open
luna wants to merge 18 commits from feat/quickshell-dense-bar into master
Showing only changes of commit 7268221a51 - Show all commits
@@ -153,7 +153,6 @@ BarPanel {
} }
Text { Text {
y: 32
text: (panel.userName || "NODE") + " // " + (panel.zoneName || "LOCAL") text: (panel.userName || "NODE") + " // " + (panel.zoneName || "LOCAL")
color: Theme.accent color: Theme.accent
font.family: Theme.microFont font.family: Theme.microFont
@@ -166,21 +165,25 @@ BarPanel {
// Rule between identity and clock, the same hairline the dense bar // Rule between identity and clock, the same hairline the dense bar
// puts between its host name and node readout. // puts between its host name and node readout.
Rectangle { Rectangle {
Layout.alignment: Qt.AlignCenter // The layout owns x/y/width/height: the 8px inset that was
y: 2 // `height: parent.height - 8` becomes margins, and a bare `width: 2`
width: 2 // would be overridden.
height: parent.height - 8 Layout.preferredWidth: 2
Layout.fillHeight: true
Layout.topMargin: 4
Layout.bottomMargin: 4
color: Theme.hair color: Theme.hair
} }
Column { Column {
id: clock id: clock
// Both columns share the width evenly, as before. `width: 210` here was
// dead — a layout assigns width — and `Layout.alignment` is ignored
// while an item fills.
Layout.fillWidth: true Layout.fillWidth: true
Layout.fillHeight: true Layout.fillHeight: true
Layout.alignment: Qt.AlignRight
width: 210
spacing: 2 spacing: 2
Text { Text {