now can press the workspace to switch to it
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user