ts (this) is now a button

This commit is contained in:
Sakooooo 2025-01-10 21:12:20 +04:00
parent c7db49ba97
commit 9ca9d4b278
Signed by: sako
GPG key ID: FE52FD65B76E4751

View file

@ -32,5 +32,22 @@ ListView {
border.color: "#999999"
anchors.centerIn: parent
}
MouseArea {
id: mouseArea
anchors.fill: parent
hoverEnabled: true
onClicked: {
Hyprland.dispatch("workspace " + modelData.id)
}
}
states: State {
name: "hovered"; when: (mouseArea.containsMouse && !modelData.active)
PropertyChanges {
target: workspace
height: 10
width: 50
}
}
}
}