feat: refactor bar spacing functions to use dedicated functions

This commit is contained in:
Hannes
2026-09-01 13:52:03 +02:00
parent 36486179d5
commit 764f8197fb
13 changed files with 47 additions and 36 deletions
+5 -4
View File
@@ -9,6 +9,7 @@ PanelWindow {
id: panel
color: "transparent"
visible: Hyprland.monitorFor(screen).activeWorkspace.hasFullscreen
anchors.top: true
anchors.left: true
@@ -40,8 +41,8 @@ PanelWindow {
anchors.verticalCenter: parent.verticalCenter
anchors.left: parent.left
anchors.leftMargin: Config.big_spacing_fun(height)
spacing: Config.big_spacing_fun(height)
anchors.leftMargin: Config.bar_big_spacing_fun(height)
spacing: Config.bar_big_spacing_fun(height)
MenuButton {}
@@ -57,7 +58,7 @@ PanelWindow {
Row { // bar widgets center
id: widgetsCenter
anchors.centerIn: parent
spacing: Config.big_spacing_fun(height)
spacing: Config.bar_big_spacing_fun(height)
Clock {}
@@ -69,7 +70,7 @@ PanelWindow {
anchors.verticalCenter: parent.verticalCenter
anchors.right: parent.right
anchors.rightMargin: 0
spacing: Config.big_spacing_fun(height)
spacing: Config.bar_big_spacing_fun(height)
// TODO: Add bluetooth, network, audio, power, maybe HW monitor
Tray{}