now can press the workspace to switch to it
This commit is contained in:
@@ -24,6 +24,18 @@ Container {
|
|||||||
* workspaceButtonSpacing)
|
* workspaceButtonSpacing)
|
||||||
exclusiveMonitor: monitor
|
exclusiveMonitor: monitor
|
||||||
|
|
||||||
|
states: [
|
||||||
|
State {
|
||||||
|
name: "hovered"
|
||||||
|
when: root.hovered
|
||||||
|
|
||||||
|
PropertyChanges {
|
||||||
|
root.barHeight: 30
|
||||||
|
root.workspaceWidth: 25
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
spacing: root.workspaceButtonSpacing
|
spacing: root.workspaceButtonSpacing
|
||||||
|
|
||||||
@@ -55,6 +67,12 @@ Container {
|
|||||||
height: root.barHeight - 7
|
height: root.barHeight - 7
|
||||||
implicitWidth: root.workspaceWidth
|
implicitWidth: root.workspaceWidth
|
||||||
|
|
||||||
|
TapHandler {
|
||||||
|
id: tapHandler
|
||||||
|
|
||||||
|
onTapped: WorkspaceManager.activateWorkspaceById(buttonRoot.modelData.id)
|
||||||
|
}
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
color: buttonRoot.workspaceColors[buttonRoot.stateInt]
|
color: buttonRoot.workspaceColors[buttonRoot.stateInt]
|
||||||
|
|||||||
Reference in New Issue
Block a user