2021-02-10 16:52:42 +01:00
|
|
|
import QtQuick 2.5
|
2021-02-13 17:19:21 +01:00
|
|
|
import QtQuick.Controls 1.4
|
|
|
|
import QtQuick.Controls.Styles 1.4
|
2021-02-10 16:52:42 +01:00
|
|
|
import im.nheko 1.0
|
|
|
|
|
|
|
|
Switch {
|
2021-02-13 17:19:21 +01:00
|
|
|
style: SwitchStyle {
|
|
|
|
handle: Rectangle {
|
|
|
|
width: 20
|
|
|
|
height: 20
|
|
|
|
radius: 90
|
|
|
|
color: "whitesmoke"
|
|
|
|
}
|
|
|
|
|
|
|
|
groove: Rectangle {
|
|
|
|
implicitWidth: 40
|
|
|
|
implicitHeight: 20
|
|
|
|
radius: 90
|
|
|
|
color: checked ? "skyblue" : "grey"
|
|
|
|
}
|
|
|
|
}
|
2021-02-10 16:52:42 +01:00
|
|
|
}
|