From 472ecf67834793edfd6ab4a9cdaa0f7a4c4d5105 Mon Sep 17 00:00:00 2001 From: Damocles Date: Sun, 12 Apr 2026 16:05:08 +0200 Subject: [PATCH] different grouping --- modules/Bar.qml | 83 ++++++++++++++++--------------------------------- 1 file changed, 27 insertions(+), 56 deletions(-) diff --git a/modules/Bar.qml b/modules/Bar.qml index c0ed034..e0a6dd4 100644 --- a/modules/Bar.qml +++ b/modules/Bar.qml @@ -39,11 +39,9 @@ PanelWindow { anchors.verticalCenter: parent.verticalCenter spacing: M.Theme.barSpacing - M.Clock { - visible: M.Modules.clock - } - M.Notifications { - visible: M.Modules.notifications + M.BarGroup { + M.Clock { visible: M.Modules.clock } + M.Notifications { visible: M.Modules.notifications } } } @@ -54,21 +52,19 @@ PanelWindow { anchors.verticalCenter: parent.verticalCenter spacing: M.Theme.barSpacing - M.Workspaces { - bar: bar - visible: M.Modules.workspaces + M.BarGroup { + M.Workspaces { bar: bar; visible: M.Modules.workspaces } } - M.Tray { - bar: bar - visible: M.Modules.tray + M.BarGroup { + M.Tray { bar: bar; visible: M.Modules.tray } } - M.WindowTitle { - Layout.maximumWidth: 400 - visible: M.Modules.windowTitle - } - Item { - Layout.fillWidth: true + M.BarGroup { + M.WindowTitle { + Layout.maximumWidth: 400 + visible: M.Modules.windowTitle + } } + Item { Layout.fillWidth: true } } // ---- right ---- @@ -78,65 +74,40 @@ PanelWindow { anchors.verticalCenter: parent.verticalCenter spacing: M.Theme.barSpacing - Item { - Layout.fillWidth: true - } + Item { Layout.fillWidth: true } // Media M.BarGroup { M.Mpris {} - M.Volume { - visible: M.Modules.volume - } + M.Volume { visible: M.Modules.volume } } // Connectivity M.BarGroup { - M.Network { - visible: M.Modules.network - } + M.Network { visible: M.Modules.network } M.Bluetooth {} } // Controls M.BarGroup { M.Backlight {} - M.PowerProfile { - visible: M.Modules.powerProfile - } - M.IdleInhibitor { - visible: M.Modules.idleInhibitor - } + M.PowerProfile { visible: M.Modules.powerProfile } + M.IdleInhibitor { visible: M.Modules.idleInhibitor } } - // System + // Stats M.BarGroup { - M.Cpu { - visible: M.Modules.cpu - } - M.Memory { - visible: M.Modules.memory - } - M.Temperature { - visible: M.Modules.temperature - } - } - - // Status - M.BarGroup { - M.Weather { - visible: M.Modules.weather - } - M.Disk { - visible: M.Modules.disk - } - M.Battery {} + M.Cpu { visible: M.Modules.cpu } + M.Memory { visible: M.Modules.memory } + M.Temperature { visible: M.Modules.temperature } + M.Weather { visible: M.Modules.weather } + M.Disk { visible: M.Modules.disk } } // Power - M.Power { - bar: bar - visible: M.Modules.power + M.BarGroup { + M.Battery {} + M.Power { bar: bar; visible: M.Modules.power } } } }