Gradience/data/ui/plugin_row.blp

30 lines
560 B
Text
Raw Normal View History

2022-08-19 12:23:25 +00:00
using Gtk 4.0;
using Adw 1;
2022-08-19 13:29:52 +00:00
template GradiencePluginRow : Adw.ActionRow {
2022-08-19 12:23:25 +00:00
[suffix]
2022-08-19 18:33:36 +00:00
Switch switch {
2022-08-19 12:23:25 +00:00
valign: center;
2022-08-19 18:33:36 +00:00
tooltip-text: _("Enable plugin");
state-set => on_switch_toggled();
2022-08-19 12:23:25 +00:00
}
2022-09-14 14:55:35 +00:00
2022-08-19 12:23:25 +00:00
[suffix]
2022-08-19 18:23:30 +00:00
Button settings-button {
2022-08-19 12:23:25 +00:00
valign: center;
icon-name: "settings-symbolic";
tooltip-text: _("Settings");
2022-08-19 18:30:10 +00:00
clicked => on_settings_plugin_clicked();
2022-08-19 12:23:25 +00:00
}
2022-08-19 18:33:36 +00:00
[suffix]
Button remove-button {
valign: center;
icon-name: "close-symbolic";
tooltip-text: _("Remove plugin");
clicked => on_remove_plugin_clicked();
}
2022-09-14 14:55:35 +00:00
}