Gradience/data/ui/no_plugin_window.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

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.");
}
}
}
}