diff options
author | Henrique F. Simões <hfsimoes@proton.me> | 2022-11-15 11:31:47 -0300 |
---|---|---|
committer | Georges Basile Stavracas Neto <georges.stavracas@gmail.com> | 2022-11-20 19:54:52 +0000 |
commit | e6b3e72e7c85311915bb659b2806568c290a3bec (patch) | |
tree | 9835ba74903df1be1e6716a07d2f5eb4b886a64d /src | |
parent | 1ba749ee5939a4c1b3d397fbaf01ab8b24fd9458 (diff) | |
download | gnome-calendar-e6b3e72e7c85311915bb659b2806568c290a3bec.tar.gz |
window: Add mnemonics to today, week and month labels
Users should be able to navigate through the interface ideally using
only the keyboard, as specified in the GNOME Human Interface Guidelines.
This however is currently possible in the window page with shortcuts
when it comes to switching among week and month views, and jumping to
today's date. It is also interesting to have access keys attached to
such labels, so that the user does not need to look for the keyboard
shortcuts.
Using the first letter for each of the labels as mnemonics suffices in
this case, since there is no conflict, none of them is a thin letter nor
has descenders, and they are easy to remember.
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/gcal-window.ui | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/gui/gcal-window.ui b/src/gui/gcal-window.ui index 8bdeb359..a65332cf 100644 --- a/src/gui/gcal-window.ui +++ b/src/gui/gcal-window.ui @@ -151,7 +151,8 @@ <property name="action-name">win.today</property> <property name="child"> <object class="AdwButtonContent"> - <property name="label" translatable="yes">Today</property> + <property name="label" translatable="yes">_Today</property> + <property name="use-underline">True</property> <property name="icon-name">calendar-today-symbolic</property> </object> </property> @@ -183,7 +184,8 @@ <property name="action-name">win.today</property> <property name="child"> <object class="AdwButtonContent"> - <property name="label" translatable="yes">Today</property> + <property name="label" translatable="yes">_Today</property> + <property name="use-underline">True</property> <property name="icon-name">calendar-today-symbolic</property> </object> </property> @@ -216,7 +218,8 @@ <child> <object class="AdwViewStackPage"> <property name="name">week</property> - <property name="title" translatable="yes">Week</property> + <property name="title" translatable="yes">_Week</property> + <property name="use-underline">True</property> <property name="icon_name">calendar-week-symbolic</property> <property name="child"> <object class="GcalWeekView" id="week_view"> @@ -230,7 +233,8 @@ <child> <object class="AdwViewStackPage"> <property name="name">month</property> - <property name="title" translatable="yes">Month</property> + <property name="title" translatable="yes">_Month</property> + <property name="use-underline">True</property> <property name="icon_name">calendar-month-symbolic</property> <property name="child"> <object class="GcalMonthView" id="month_view"> |