Made the bar scaling relative and ia a config file
This commit is contained in:
+6
-6
@@ -3,6 +3,7 @@ import Quickshell
|
||||
import Quickshell.Hyprland
|
||||
import "./widgets"
|
||||
import "../../colors"
|
||||
import "../../config"
|
||||
|
||||
// TODO: interact with PyWal
|
||||
|
||||
@@ -15,7 +16,7 @@ PanelWindow {
|
||||
anchors.left: true
|
||||
anchors.right: true
|
||||
|
||||
implicitHeight: 40
|
||||
implicitHeight: Math.floor(screen.height * 0.025)
|
||||
|
||||
exclusiveZone: height // this is so context menus don't clip into the bar
|
||||
|
||||
@@ -31,15 +32,14 @@ PanelWindow {
|
||||
id: bar
|
||||
anchors.fill: parent
|
||||
color: Qt.alpha(Colors.background, 0.5)
|
||||
radius: 0
|
||||
|
||||
Row { // bar widgets left
|
||||
id: widgetsLeft
|
||||
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
anchors.left: parent.left
|
||||
anchors.leftMargin: 16
|
||||
spacing: 8
|
||||
anchors.leftMargin: 0 // parent.height / 4
|
||||
spacing: Math.floor(parent.height / 4)
|
||||
|
||||
MenuButton {}
|
||||
// TODO: Add functionallity (Maybe just rofi or own way)
|
||||
@@ -68,8 +68,8 @@ PanelWindow {
|
||||
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
anchors.right: parent.right
|
||||
anchors.rightMargin: 16
|
||||
spacing: 8
|
||||
anchors.rightMargin: 0 //parent.height / 4
|
||||
spacing: Math.floor(parent.height / 4)
|
||||
|
||||
// TODO: Add bluetooth, network, audio, power, maybe HW monitor
|
||||
Tray{}
|
||||
|
||||
Reference in New Issue
Block a user