mirror of
https://github.com/GradienceTeam/Gradience.git
synced 2024-09-16 17:22:32 +00:00
5edbd1f96c
## 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>
31 lines
600 B
Text
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();
|
|
}
|
|
}
|