diff options
| author | Leander Scherer <leander@schererleander.de> | 2026-06-29 21:08:42 +0200 |
|---|---|---|
| committer | Leander Scherer <leander@schererleander.de> | 2026-06-29 21:22:33 +0200 |
| commit | 67b7245bf96cf954d90719e800cf9618ffaa4feb (patch) | |
| tree | 2723c3db278840150985cdc630487ff175d330d9 /modules/system/quickshell/SliderBox.qml | |
| parent | d4fa3d0533c8dac688e38413403815de1802339e (diff) | |
chore: cleanup sway, quickshell
Diffstat (limited to 'modules/system/quickshell/SliderBox.qml')
| -rw-r--r-- | modules/system/quickshell/SliderBox.qml | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/modules/system/quickshell/SliderBox.qml b/modules/system/quickshell/SliderBox.qml deleted file mode 100644 index 1d84e72..0000000 --- a/modules/system/quickshell/SliderBox.qml +++ /dev/null @@ -1,58 +0,0 @@ -import QtQuick -import QtQuick.Layouts -import Quickshell - -Squircle { - id: root - 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 - cornerRadius: 16 - fillColor: hoverArea.containsMouse ? Theme.surfaceHover : Theme.surface - - MouseArea { - id: hoverArea - anchors.fill: parent - hoverEnabled: true - acceptedButtons: root.clickable ? Qt.LeftButton : Qt.NoButton - cursorShape: root.clickable ? Qt.PointingHandCursor : Qt.ArrowCursor - onClicked: root.clicked() - } - - ColumnLayout { - anchors.fill: parent - anchors.margins: 12 - spacing: 4 - - RowLayout { - Layout.fillWidth: true - Text { - text: root.label - color: Theme.textMuted - font { - family: Theme.mainFont - pixelSize: 12 - weight: Font.DemiBold - } - Layout.leftMargin: 2 - } - Item { - Layout.fillWidth: true - } - } - - PillSlider { - id: slider - Layout.fillWidth: true - icon: root.icon - value: root.value - onMoved: root.moved(value) - } - } -} |
