aboutsummaryrefslogtreecommitdiff
path: root/modules/system/quickshell/Toggle.qml
diff options
context:
space:
mode:
authorLeander Scherer <leander@schererleander.de>2026-06-29 21:08:42 +0200
committerLeander Scherer <leander@schererleander.de>2026-06-29 21:22:33 +0200
commit67b7245bf96cf954d90719e800cf9618ffaa4feb (patch)
tree2723c3db278840150985cdc630487ff175d330d9 /modules/system/quickshell/Toggle.qml
parentd4fa3d0533c8dac688e38413403815de1802339e (diff)
chore: cleanup sway, quickshell
Diffstat (limited to 'modules/system/quickshell/Toggle.qml')
-rw-r--r--modules/system/quickshell/Toggle.qml36
1 files changed, 0 insertions, 36 deletions
diff --git a/modules/system/quickshell/Toggle.qml b/modules/system/quickshell/Toggle.qml
deleted file mode 100644
index d9e83e2..0000000
--- a/modules/system/quickshell/Toggle.qml
+++ /dev/null
@@ -1,36 +0,0 @@
-import QtQuick
-
-Rectangle {
- id: root
- property bool checked: false
- signal toggled
-
- width: 40
- height: 22
- radius: 11
- color: checked ? Theme.accent : Theme.sliderTrack
- opacity: enabled ? 1.0 : 0.4
-
- Rectangle {
- width: 18
- height: 18
- radius: 9
- color: Theme.text
- anchors {
- verticalCenter: parent.verticalCenter
- }
- x: root.checked ? parent.width - width - 2 : 2
- Behavior on x {
- NumberAnimation {
- duration: 150
- }
- }
- }
-
- MouseArea {
- anchors {
- fill: parent
- }
- onClicked: root.toggled()
- }
-}