Extends Item

Material.Switch

A Material Design switch control.

property Bool value: false

The switch's value.

property Color tint: #teal

property Color offTint: #gray200

The primary on and off tint colors of the switch.

Material.Switch {
    tint: #purple
}

property Color trackTint

property Color offTrackTint

The track tint colors for the on and off switch states.

By default the track tint colors are derived from the primary tint colors, but they can be overriden by explicitly assigning these properties.