hefty: bar: proper vertical layouting

This commit is contained in:
end-4
2026-02-06 22:38:45 +01:00
parent 8fccfef9f1
commit ea35ca1582
4 changed files with 69 additions and 19 deletions
@@ -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
}