Skip to content

Tuner.Switch

A switch row for boolean settings. Requires a binding — without it the row is not created.

PropertyTypeDescription
titlestringRow title
subtitlestringText under the title
blp
Tuner.Switch {
    title: _("Over Amplification");

    binding: Tuner.Setting {
        schema-id: "org.gnome.desktop.sound";
        schema-key: "allow-volume-above-100-percent";
    };
}

TIP

The setting key doesn't have to be boolean: use transforms to bind a switch to a string key (ValueTransform) or to an element of a string array (FlagsTransform).

Released under the GPL-3.0+ License. The content is available under CC BY-SA 4.0, unless stated otherwise.