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]