← Back to Docs
  • index.html
  • Clayground
  • Clayground.Lab
  • ThemeSwitch
  • Clayground 2026.7
  • ThemeSwitch QML Type

    A button that swaps the lab between the light and dark palette. More...

    Import Statement: import Clayground.Lab
    Inherits:

    Rectangle

    Detailed Description

    Drop it into a corner - beside LangSwitch is the convention - and the whole lab follows, chrome and board alike, because every colour it paints is a binding on LabTheme.

    Example usage:

    import Clayground.Lab
    
    Row {
        anchors.right: parent.right; anchors.top: parent.top
        anchors.margins: 12; spacing: 6
        LangSwitch { }
        ThemeSwitch { }
    }

    See also LabTheme and LangSwitch.