import QtQuick import QtQuick.Controls import "../theme" Switch { id: root implicitWidth: 52; implicitHeight: 32 indicator: Rectangle { implicitWidth: 52; implicitHeight: 30; radius: 15 color: root.checked ? Theme.accent : Theme.surfaceVariant border.width: 1; border.color: root.activeFocus ? Theme.accent : Theme.border Rectangle { x: root.checked ? 25 : 4; y: 4; width: 22; height: 22; radius: 11 color: root.checked ? Theme.accentText : Theme.text Behavior on x { NumberAnimation { duration: Theme.duration; easing.type: Easing.OutCubic } } } } }