mirror of
https://github.com/GradienceTeam/Gradience.git
synced 2024-10-02 16:17:53 +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 {
|
||||
[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]
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
||||
}
|
Loading…
Reference in a new issue