Tuner.Combo
A selection row with a dropdown list. The current option is chosen by comparing each option's value with the setting value.
| Property | Type | Description |
|---|---|---|
title | string | Row title |
subtitle | string | Text under the title |
Static options: Tuner.Choice
Each Tuner.Choice child adds one option. value is written in GVariant text format, so string values need inner quotes:
blp
Tuner.Combo {
title: _("Double Click");
binding: Tuner.Setting {
schema-id: "org.gnome.desktop.wm.preferences";
schema-key: "action-double-click-titlebar";
};
Tuner.Choice {
title: _("Maximize");
value: "'toggle-maximize'";
}
Tuner.Choice {
title: _("Minimize");
value: "'minimize'";
}
}WARNING
The value variant type must match the setting key type, otherwise the current option can't be selected or saved.
Dynamic options: Tuner.FolderChoice
Tuner.FolderChoice fills the list with directory names found in system and user data dirs. Useful for themes, icons and similar resources. The stored value is the directory name (a string).
| Property | Type | Description |
|---|---|---|
lookup-dir | string | Directory name to scan (e.g. icons, themes) |
content-filter | string | Only include folders containing this file or subfolder |
blp
Tuner.Combo {
title: _("Icons");
binding: Tuner.Setting {
schema-id: "org.gnome.desktop.interface";
schema-key: "icon-theme";
};
Tuner.FolderChoice {
lookup-dir: "icons";
content-filter: "index.theme";
}
}You can also load options from any other source by extending Tuner.ChoiceLoader in your plugin code.