Skip to content
Snippets Groups Projects
NeuMorphSwitch.qml 316 B
import QtQuick 2.12
import InfotainmentDemo 1.0

NeuMorphSwitchForm {
    mouseArea.onClicked: {
        if (state === "Off")
            state = "On"
        else
            state = "Off"
    }

    transitions: [
        Transition {
            animations: [
                anim
            ]
        }
    ]
}