From 08297376a85a1719518507e54fca9de954d2376a Mon Sep 17 00:00:00 2001 From: Petri Hienonen Date: Thu, 23 May 2024 13:56:00 +0300 Subject: Agenix configuration --- home/quickshell/bar/blocks/Workspace.qml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 home/quickshell/bar/blocks/Workspace.qml (limited to 'home/quickshell/bar/blocks/Workspace.qml') diff --git a/home/quickshell/bar/blocks/Workspace.qml b/home/quickshell/bar/blocks/Workspace.qml new file mode 100644 index 0000000..232a3f3 --- /dev/null +++ b/home/quickshell/bar/blocks/Workspace.qml @@ -0,0 +1,28 @@ +import QtQuick +import QtQuick.Layouts + +Rectangle { + id: ws + + property bool hovered: false + + Layout.preferredWidth: 10 + Layout.preferredHeight: 10 + Layout.minimumWidth: 10 + Layout.minimumHeight: 10 + Layout.alignment: Qt.AlignHCenter + radius: height / 2 + + MouseArea { + anchors.fill: parent + hoverEnabled: true + + onEntered: () => { + ws.hovered = true; + } + onExited: () => { + ws.hovered = false; + } + onClicked: () => console.log(`workspace ?`) + } +} -- cgit v1.2.3-70-g09d2