aboutsummaryrefslogtreecommitdiff
path: root/modules/system/quickshell/SliderBox.qml
diff options
context:
space:
mode:
authorLeander Scherer <leander@schererleander.de>2026-05-30 15:35:27 +0200
committerLeander Scherer <leander@schererleander.de>2026-05-30 15:35:27 +0200
commitd2747e2ca1e211a32e91e44010f40a00e0ac97e4 (patch)
treefb229d6a18541c7a5f1944390b21edde028955f9 /modules/system/quickshell/SliderBox.qml
parent51b3cbd50b92d026549ce3ebff17ca9b3344f441 (diff)
feat(quickshell): add popup controls and privacy indicators
Diffstat (limited to 'modules/system/quickshell/SliderBox.qml')
-rw-r--r--modules/system/quickshell/SliderBox.qml10
1 files changed, 8 insertions, 2 deletions
diff --git a/modules/system/quickshell/SliderBox.qml b/modules/system/quickshell/SliderBox.qml
index 59b994d..1d84e72 100644
--- a/modules/system/quickshell/SliderBox.qml
+++ b/modules/system/quickshell/SliderBox.qml
@@ -7,7 +7,9 @@ Squircle {
property string label: ""
property string icon: ""
property real value: 0
+ property bool clickable: false
signal moved(real val)
+ signal clicked
Layout.fillWidth: true
height: 64
@@ -18,7 +20,9 @@ Squircle {
id: hoverArea
anchors.fill: parent
hoverEnabled: true
- acceptedButtons: Qt.NoButton
+ acceptedButtons: root.clickable ? Qt.LeftButton : Qt.NoButton
+ cursorShape: root.clickable ? Qt.PointingHandCursor : Qt.ArrowCursor
+ onClicked: root.clicked()
}
ColumnLayout {
@@ -38,7 +42,9 @@ Squircle {
}
Layout.leftMargin: 2
}
- Item { Layout.fillWidth: true }
+ Item {
+ Layout.fillWidth: true
+ }
}
PillSlider {