refaktor
This commit is contained in:
+8
-13
@@ -2,7 +2,6 @@ import QtQuick
|
||||
import Quickshell
|
||||
import Quickshell.Hyprland
|
||||
import "./widgets"
|
||||
import "../../colors"
|
||||
import "../../config"
|
||||
|
||||
PanelWindow {
|
||||
@@ -14,11 +13,7 @@ PanelWindow {
|
||||
anchors.left: true
|
||||
anchors.right: true
|
||||
|
||||
implicitHeight: (
|
||||
screen.height >= 2160 ? screen.height * 0.03 :
|
||||
screen.height >= 1440 ? screen.height * 0.035 :
|
||||
screen.height * 0.04
|
||||
)
|
||||
implicitHeight: Math.floor(screen.height * Config.barHeightRatio(screen.height))
|
||||
|
||||
exclusiveZone: height // this is so context menus don't clip into the bar
|
||||
|
||||
@@ -40,13 +35,13 @@ PanelWindow {
|
||||
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
anchors.left: parent.left
|
||||
anchors.leftMargin: 0 // parent.height / 4
|
||||
spacing: Math.floor(parent.height / 4)
|
||||
anchors.leftMargin: 0
|
||||
spacing: Config.big_spacing_fun(height)
|
||||
|
||||
MenuButton {}
|
||||
|
||||
Workspaces {
|
||||
thisMonitor: barThisMonitor
|
||||
Workspaces {
|
||||
thisMonitor: barThisMonitor
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
}
|
||||
|
||||
@@ -54,8 +49,8 @@ PanelWindow {
|
||||
|
||||
Row { // bar widgets center
|
||||
id: widgetsCenter
|
||||
|
||||
anchors.centerIn: parent
|
||||
spacing: Config.big_spacing_fun(height)
|
||||
|
||||
Clock {}
|
||||
|
||||
@@ -66,8 +61,8 @@ PanelWindow {
|
||||
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
anchors.right: parent.right
|
||||
anchors.rightMargin: 0 //parent.height / 4
|
||||
spacing: Math.floor(parent.height / 4)
|
||||
anchors.rightMargin: 0
|
||||
spacing: Config.big_spacing_fun(height)
|
||||
|
||||
// TODO: Add bluetooth, network, audio, power, maybe HW monitor
|
||||
Tray{}
|
||||
|
||||
Reference in New Issue
Block a user