add logic to tray and fix workspace initialization fuckery
This commit is contained in:
parent
a8405f77db
commit
f8c432390b
2 changed files with 6 additions and 2 deletions
|
|
@ -11,6 +11,7 @@ import qs.widgets
|
|||
WrapperRectangle {
|
||||
id: root
|
||||
color: Colors.base01
|
||||
visible: iconRepeater.count != 0
|
||||
required property int barHeight
|
||||
property double vertMargin: barHeight / 4 - 4
|
||||
topMargin: vertMargin
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue