forked from Shinonome/dots-hyprland
hefty: bar: proper vertical layouting
This commit is contained in:
@@ -4,8 +4,10 @@ import Quickshell.Io
|
||||
|
||||
JsonObject {
|
||||
property JsonObject bar: JsonObject {
|
||||
property list<var> leftWidgets: []
|
||||
property list<var> centerWidgets: [["Workspaces"]]
|
||||
property list<var> leftWidgets: [["HWindowInfo"]]
|
||||
property list<var> centerLeftWidgets: [["HTime"]]
|
||||
property list<var> centerWidgets: [["HWorkspaces"]]
|
||||
property list<var> centerRightWidgets: [["HBattery"]]
|
||||
property list<var> rightWidgets: []
|
||||
property bool m3ExpressiveGrouping: true
|
||||
}
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
pragma ComponentBehavior: Bound
|
||||
import QtQuick
|
||||
|
||||
StyledRectangle {
|
||||
id: root
|
||||
|
||||
property bool vertical: false
|
||||
property real startRadius
|
||||
property real endRadius
|
||||
|
||||
topLeftRadius: startRadius
|
||||
topRightRadius: vertical ? startRadius : endRadius
|
||||
bottomLeftRadius: vertical ? endRadius : startRadius
|
||||
bottomRightRadius: endRadius
|
||||
}
|
||||
Reference in New Issue
Block a user