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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user