now can press the workspace to switch to it

This commit is contained in:
2026-08-06 14:14:58 +01:00
parent abe1a1e12f
commit 89ee2ec974

View File

@@ -24,6 +24,18 @@ Container {
* workspaceButtonSpacing)
exclusiveMonitor: monitor
states: [
State {
name: "hovered"
when: root.hovered
PropertyChanges {
root.barHeight: 30
root.workspaceWidth: 25
}
}
]
RowLayout {
spacing: root.workspaceButtonSpacing
@@ -55,6 +67,12 @@ Container {
height: root.barHeight - 7
implicitWidth: root.workspaceWidth
TapHandler {
id: tapHandler
onTapped: WorkspaceManager.activateWorkspaceById(buttonRoot.modelData.id)
}
Rectangle {
anchors.fill: parent
color: buttonRoot.workspaceColors[buttonRoot.stateInt]