replace wraperRectangle with normal rectangle
This commit is contained in:
parent
bc0fab6cb0
commit
a62d313b29
9 changed files with 77 additions and 38 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue