From 3c9f6e78cc8a0af240a5ac7a0ed0cb517f2bbb5a Mon Sep 17 00:00:00 2001 From: Damocles Date: Fri, 10 Apr 2026 23:09:30 +0200 Subject: [PATCH] fix clock centering --- modules/Bar.qml | 64 ++++++++++++++++++++++++++++--------------------- 1 file changed, 37 insertions(+), 27 deletions(-) diff --git a/modules/Bar.qml b/modules/Bar.qml index d4bd398..443e807 100644 --- a/modules/Bar.qml +++ b/modules/Bar.qml @@ -26,25 +26,30 @@ PanelWindow { opacity: M.Theme.barOpacity } - Item { + RowLayout { anchors.fill: parent anchors.leftMargin: 8 anchors.rightMargin: 8 + spacing: 0 // ---- left ---- - RowLayout { - anchors.left: parent.left - anchors.verticalCenter: parent.verticalCenter - spacing: 8 + Item { + Layout.fillWidth: true + Layout.fillHeight: true - // M.Workspaces {} - M.Tray { bar: bar } - M.WindowTitle { Layout.maximumWidth: 400 } + RowLayout { + anchors.left: parent.left + anchors.verticalCenter: parent.verticalCenter + spacing: 8 + + // M.Workspaces {} + M.Tray { bar: bar } + M.WindowTitle { Layout.maximumWidth: 400 } + } } // ---- center ---- RowLayout { - anchors.centerIn: parent spacing: 8 M.Clock {} @@ -52,25 +57,30 @@ PanelWindow { } // ---- right ---- - RowLayout { - anchors.right: parent.right - anchors.verticalCenter: parent.verticalCenter - spacing: 12 + Item { + Layout.fillWidth: true + Layout.fillHeight: true - M.Mpris {} - M.Volume {} - M.Bluetooth {} - M.Backlight {} - M.Network {} - M.PowerProfile {} - M.IdleInhibitor {} - M.Weather {} - M.Temperature {} - M.Cpu {} - M.Memory {} - M.Disk {} - M.Battery {} - M.Wlogout {} + RowLayout { + anchors.right: parent.right + anchors.verticalCenter: parent.verticalCenter + spacing: 12 + + M.Mpris {} + M.Volume {} + M.Bluetooth {} + M.Backlight {} + M.Network {} + M.PowerProfile {} + M.IdleInhibitor {} + M.Weather {} + M.Temperature {} + M.Cpu {} + M.Memory {} + M.Disk {} + M.Battery {} + M.Wlogout {} + } } } }