mirror of
https://github.com/GradienceTeam/Gradience.git
synced 2024-08-29 18:32:32 +00:00
## 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>
37 lines
712 B
Text
37 lines
712 B
Text
using Gtk 4.0;
|
|
using Adw 1;
|
|
|
|
template GradienceNoPluginPrefWindow: Adw.Window {
|
|
title: _("Plugin Preferences");
|
|
modal: true;
|
|
default-width: 400;
|
|
default-height: 400;
|
|
resizable: true;
|
|
deletable: true;
|
|
|
|
ShortcutController {
|
|
Shortcut {
|
|
trigger: "Escape";
|
|
action: "action(window.close)";
|
|
}
|
|
}
|
|
|
|
Adw.Leaflet leaflet {
|
|
can-unfold: false;
|
|
|
|
Gtk.Box main_view {
|
|
orientation: vertical;
|
|
|
|
Adw.HeaderBar titlebar {
|
|
styles ["flat"]
|
|
}
|
|
|
|
Adw.StatusPage {
|
|
name: "empty";
|
|
icon-name: "action-unavailable-symbolic";
|
|
title: _("No Preferences");
|
|
description: _("This plugin doesn't have any preferences.");
|
|
}
|
|
}
|
|
}
|
|
}
|