From cd0918bef4b96883c7797e4b3709ffd4b1543b80 Mon Sep 17 00:00:00 2001 From: tfuxu <73042332+tfuxu@users.noreply.github.com> Date: Fri, 11 Nov 2022 22:10:00 +0100 Subject: [PATCH] ux: add mnemonics to the rest of dialogs --- gradience/main.py | 6 +++--- gradience/ui/app_type_dialog.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gradience/main.py b/gradience/main.py index 1d2f8bd1..784a67c6 100644 --- a/gradience/main.py +++ b/gradience/main.py @@ -601,7 +601,7 @@ class GradienceApplication(Adw.Application): "irreversibly overwritten!" ), "apply", - _("Apply"), + _("_Apply"), Adw.ResponseAppearance.SUGGESTED, transient_for=self.props.active_window, ) @@ -614,7 +614,7 @@ class GradienceApplication(Adw.Application): _("Restore applied color scheme?"), _("Make sure you have the current settings saved as a preset."), "restore", - _("Restore"), + _("_Restore"), Adw.ResponseAppearance.DESTRUCTIVE, transient_for=self.props.active_window, ) @@ -626,7 +626,7 @@ class GradienceApplication(Adw.Application): _("Reset applied color scheme?"), _("Make sure you have the current settings saved as a preset."), "reset", - _("Reset"), + _("_Reset"), Adw.ResponseAppearance.DESTRUCTIVE, transient_for=self.props.active_window, ) diff --git a/gradience/ui/app_type_dialog.py b/gradience/ui/app_type_dialog.py index b0a85912..9dd9e6a4 100644 --- a/gradience/ui/app_type_dialog.py +++ b/gradience/ui/app_type_dialog.py @@ -41,7 +41,7 @@ class GradienceAppTypeDialog(Adw.MessageDialog): self.set_heading(heading) self.set_body(body) - self.add_response("cancel", _("Cancel")) + self.add_response("cancel", _("_Cancel")) self.add_response(ok_response_name, ok_response_label) self.set_response_appearance(ok_response_name, ok_response_appearance) self.set_default_response("cancel")