mirror of
https://github.com/GradienceTeam/Gradience.git
synced 2024-10-04 00:47:52 +00:00
feat: add switch
This commit is contained in:
parent
f09e924053
commit
3aa9392121
1 changed files with 13 additions and 5 deletions
|
@ -3,11 +3,10 @@ using Adw 1;
|
||||||
|
|
||||||
template GradiencePluginRow : Adw.ActionRow {
|
template GradiencePluginRow : Adw.ActionRow {
|
||||||
[suffix]
|
[suffix]
|
||||||
Button remove-button {
|
Switch switch {
|
||||||
valign: center;
|
valign: center;
|
||||||
icon-name: "close-symbolic";
|
tooltip-text: _("Enable plugin");
|
||||||
tooltip-text: _("Remove plugin");
|
state-set => on_switch_toggled();
|
||||||
clicked => on_remove_plugin_clicked();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[suffix]
|
[suffix]
|
||||||
|
@ -18,4 +17,13 @@ template GradiencePluginRow : Adw.ActionRow {
|
||||||
clicked => on_settings_plugin_clicked();
|
clicked => on_settings_plugin_clicked();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[suffix]
|
||||||
|
Button remove-button {
|
||||||
|
valign: center;
|
||||||
|
icon-name: "close-symbolic";
|
||||||
|
tooltip-text: _("Remove plugin");
|
||||||
|
clicked => on_remove_plugin_clicked();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in a new issue