replace wraperRectangle with normal rectangle

This commit is contained in:
lucy 2026-05-17 14:48:09 +02:00
commit a62d313b29
9 changed files with 77 additions and 38 deletions

View file

@ -8,22 +8,27 @@ import qs
import qs.widgets
import qs.settings
WrapperRectangle {
Rectangle {
id: root
required property ShellScreen barScreen
required property double moduleHeight
property HyprlandMonitor hyprBarScreen: Hyprland.monitorFor(root.barScreen)
radius: Config.rounding
color: Colors.base01
leftMargin: 8
rightMargin: 8
child: RowLayout {
implicitWidth: wsLayout.implicitWidth + 32
implicitHeight: moduleHeight
RowLayout {
id: wsLayout
anchors.centerIn: parent
anchors.horizontalCenter: parent.horizontalCenter
spacing: 8
Repeater {
id: wsRepeater
model: Hyprland.workspaces
delegate: WrapperRectangle {
id: wsWrapper
anchors.verticalCenter: parent.verticalCenter
parent: wsLayout
color: 'transparent'
visible: modelData.monitor == root.hyprBarScreen