Gradience/data/ui/plugin_row.blp
Hari Rana 5edbd1f96c
Improve UI and UX (#648)
## Global description

This improves UX by allowing users to close through dialogs by pressing
Esc. I added mnemonics for the file picker, and set `save` as the
default response.

## Changelog

- Allow Esc shortcut to close dialogs
- Add mnemonics for dialogs
- Set `save` as default response

Signed-off-by: 0xMRTT <0xMRTT@proton.me>
Co-authored-by: tfuxu <73042332+tfuxu@users.noreply.github.com>
Co-authored-by: 0xMRTT <0xMRTT@proton.me>
2022-11-11 22:04:46 +01:00

31 lines
600 B
Text

using Gtk 4.0;
using Adw 1;
template GradiencePluginRow : Adw.ActionRow {
[suffix]
Button settings-button {
valign: center;
icon-name: "settings-symbolic";
tooltip-text: _("Preferences");
clicked => on_settings_plugin_clicked();
styles [
"flat",
]
}
[suffix]
Switch switch {
valign: center;
tooltip-text: _("Toggle Plugin");
state-set => on_switch_toggled();
}
[suffix]
Button remove-button {
valign: center;
icon-name: "user-trash-symbolic";
tooltip-text: _("Remove Plugin");
clicked => on_remove_plugin_clicked();
}
}