Something went wrong. Try again.
my over complex system configurations
Something went wrong. Try again.
12345678910111213141516171819202122232425262728import QtQuickimport qs.data
// On/off switch in the accent; `toggled` asks the owner to flip `on`.Clickable { id: sw
property bool on: false signal toggled()
onClicked: sw.toggled() implicitWidth: 40 implicitHeight: 22 radius: Theme.pill(height) color: on ? Theme.colors.accent : Theme.colors.surfaceRaised border.width: 1 border.color: on ? Theme.colors.accent : Theme.colors.borderStrong
Rectangle { width: 14; height: 14 radius: Theme.pill(width) anchors.verticalCenter: parent.verticalCenter x: sw.on ? parent.width - width - 4 : 4 color: sw.on ? Theme.colors.textOnAccent : Theme.colors.textMuted Behavior on x { Anim {} } }}