feat: refactor bar spacing functions to use dedicated functions
This commit is contained in:
+5
-4
@@ -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{}
|
||||
|
||||
Reference in New Issue
Block a user