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/PillSlider.qml | |
| parent | d4fa3d0533c8dac688e38413403815de1802339e (diff) | |
chore: cleanup sway, quickshell
Diffstat (limited to 'modules/system/quickshell/PillSlider.qml')
| -rw-r--r-- | modules/system/quickshell/PillSlider.qml | 77 |
1 files changed, 0 insertions, 77 deletions
diff --git a/modules/system/quickshell/PillSlider.qml b/modules/system/quickshell/PillSlider.qml deleted file mode 100644 index e24663d..0000000 --- a/modules/system/quickshell/PillSlider.qml +++ /dev/null @@ -1,77 +0,0 @@ -import QtQuick -import QtQuick.Controls -import QtQuick.Effects -import Quickshell - -Slider { - id: root - - property string icon: "" - property color colorTrack: Theme.sliderTrack - property color colorProgress: Theme.accent - property color colorHandle: "#FFFFFF" - property color iconColor: Theme.iconDefault - - implicitHeight: 24 - padding: 0 - - background: Rectangle { - width: root.width - height: root.height - radius: height / 2 - color: root.colorTrack - - clip: true - - Rectangle { - width: root.handle.x + (root.handle.width / 2) - height: parent.height - color: root.colorProgress - } - - Image { - id: iconImage - visible: root.icon !== "" - anchors.left: parent.left - anchors.leftMargin: 6 - anchors.verticalCenter: parent.verticalCenter - source: root.icon !== "" ? Quickshell.iconPath(root.icon) : "" - sourceSize: Qt.size(14, 14) - width: 14 - height: 14 - } - - MultiEffect { - source: iconImage - anchors.fill: iconImage - colorizationColor: root.iconColor - colorization: 1.0 - } - } - - handle: Item { - x: root.visualPosition * (root.availableWidth - width) - y: root.topPadding + root.availableHeight / 2 - height / 2 - - width: root.height - height: root.height - - Rectangle { - id: handleCircle - anchors.fill: parent - radius: width / 2 - color: root.colorHandle - border.width: 1 - border.color: "#1A000000" - } - - MultiEffect { - source: handleCircle - anchors.fill: handleCircle - shadowEnabled: true - shadowBlur: 1.0 - shadowColor: "#4D000000" - shadowVerticalOffset: 1 - } - } -} |
