From 89ee2ec974000a532ede2d4ccd57c02858ec23d3 Mon Sep 17 00:00:00 2001 From: voidarc Date: Thu, 6 Aug 2026 14:14:58 +0100 Subject: [PATCH] now can press the workspace to switch to it --- Bar/WorkspaceSelector.qml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Bar/WorkspaceSelector.qml b/Bar/WorkspaceSelector.qml index 4018817..1b56038 100644 --- a/Bar/WorkspaceSelector.qml +++ b/Bar/WorkspaceSelector.qml @@ -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]