add logic to tray and fix workspace initialization fuckery

This commit is contained in:
lucy 2026-05-14 18:15:19 +02:00
commit f8c432390b
2 changed files with 6 additions and 2 deletions

View file

@ -12,19 +12,22 @@ WrapperRectangle {
required property ShellScreen barScreen
required property int barHeight
readonly property double vertMargin: barHeight / 4 - 4
property HyprlandMonitor hyprBarScreen: Hyprland.monitorFor(root.barScreen)
color: Colors.base01
topMargin: vertMargin
bottomMargin: vertMargin
leftMargin: 8
rightMargin: 8
RowLayout {
child: RowLayout {
id: wsLayout
Repeater {
id: wsRepeater
model: Hyprland.workspaces
delegate: WrapperRectangle {
id: wsWrapper
parent: wsLayout
color: 'transparent'
visible: modelData.monitor == Hyprland.monitorFor(root.barScreen)
visible: modelData.monitor == root.hyprBarScreen
required property var modelData
child: StyledText {
text: wsWrapper.modelData.id