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-09-29 18:06:42 +00:00
|
|
|
tooltip-text: _("Toggle Plugin");
|
2022-08-19 18:33:36 +00:00
|
|
|
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";
|
2022-09-29 18:06:42 +00:00
|
|
|
tooltip-text: _("Preferences");
|
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;
|
2022-09-25 12:17:04 +00:00
|
|
|
icon-name: "user-trash-symbolic";
|
2022-09-29 18:06:42 +00:00
|
|
|
tooltip-text: _("Remove Plugin");
|
2022-08-19 18:33:36 +00:00
|
|
|
clicked => on_remove_plugin_clicked();
|
|
|
|
}
|
2022-09-14 14:55:35 +00:00
|
|
|
}
|