ux: add mnemonics to the rest of dialogs

This commit is contained in:
tfuxu 2022-11-11 22:10:00 +01:00
parent 5edbd1f96c
commit cd0918bef4
No known key found for this signature in database
GPG key ID: 79CFC3B9B31C098A
2 changed files with 4 additions and 4 deletions

View file

@ -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,
)

View file

@ -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")