Skip to content

Tuner.Spin

A numeric row with increment/decrement buttons for number settings.

PropertyTypeDescription
titlestringRow title
subtitlestringText under the title
digitsuintNumber of decimal places to display
blp
Tuner.Spin {
    title: _("Text scaling factor");
    digits: 2;

    binding: Tuner.Setting {
        schema-id: "org.gnome.desktop.interface";
        schema-key: "text-scaling-factor";
    };
}

WARNING

Tuner.Spin works only with Tuner.Setting and only when the schema key defines a <range>:

xml
<key name="text-scaling-factor" type="d">
  <range min="0.5" max="3.0"/>
  ...
</key>

If the key has no range, the row is silently not created.

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