feat: add switch

This commit is contained in:
0xMRTT 2022-08-19 20:33:36 +02:00
parent f09e924053
commit 3aa9392121
No known key found for this signature in database
GPG key ID: AC9E06BF3DECB6FB

View file

@ -3,13 +3,12 @@ using Adw 1;
template GradiencePluginRow : Adw.ActionRow {
[suffix]
Button remove-button {
Switch switch {
valign: center;
icon-name: "close-symbolic";
tooltip-text: _("Remove plugin");
clicked => on_remove_plugin_clicked();
tooltip-text: _("Enable plugin");
state-set => on_switch_toggled();
}
[suffix]
Button settings-button {
valign: center;
@ -18,4 +17,13 @@ template GradiencePluginRow : Adw.ActionRow {
clicked => on_settings_plugin_clicked();
}
[suffix]
Button remove-button {
valign: center;
icon-name: "close-symbolic";
tooltip-text: _("Remove plugin");
clicked => on_remove_plugin_clicked();
}
}