1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-24 21:42:51 -05:00

ws: 0 width when 0 workspaces, restore labwc to README

This commit is contained in:
bbedward
2025-11-16 17:53:50 -05:00
parent 350ffd0052
commit 3e2ab40c6a
2 changed files with 11 additions and 5 deletions

View File

@@ -438,9 +438,15 @@ Item {
}
}
width: isVertical ? barThickness : visualWidth
height: isVertical ? visualHeight : barThickness
visible: CompositorService.isNiri || CompositorService.isHyprland || CompositorService.isDwl || CompositorService.isSway || useExtWorkspace
readonly property bool hasWorkspaces: {
const realWorkspaces = getRealWorkspaces()
return realWorkspaces.length > 0
}
readonly property bool shouldShow: (CompositorService.isNiri || CompositorService.isHyprland || CompositorService.isDwl || CompositorService.isSway || useExtWorkspace) && hasWorkspaces
width: shouldShow ? (isVertical ? barThickness : visualWidth) : 0
height: shouldShow ? (isVertical ? visualHeight : barThickness) : 0
visible: shouldShow
Rectangle {
id: visualBackground