Skip to content

Commit

Permalink
Add accessibility labels to widgets that don't provide one themselves
Browse files Browse the repository at this point in the history
  • Loading branch information
nokyan committed Mar 8, 2024
1 parent b8ef6d8 commit 74904c1
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 6 deletions.
16 changes: 13 additions & 3 deletions data/resources/ui/pages/applications.ui
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
</property>
<child type="bottom">
<object class="GtkBox">
<property name="orientation">vertical</property>
<child>
<property name="orientation">vertical</property>
<child>
<object class="GtkRevealer" id="search_revealer">
<property name="transition_type">slide-up</property>
<child>
Expand All @@ -45,7 +45,11 @@
<property name="tightening-threshold">300</property>
<property name="maximum-size">400</property>
<child>
<object class="GtkSearchEntry" id="search_entry"/>
<object class="GtkSearchEntry" id="search_entry">
<accessibility>
<property name="label">Search applications</property>
</accessibility>
</object>
</child>
</object>
</child>
Expand All @@ -61,6 +65,9 @@
<child>
<object class="GtkToggleButton" id="search_button">
<property name="icon-name">search-symbolic</property>
<accessibility>
<property name="label">Toggle search field</property>
</accessibility>
<style>
<class name="circular"/>
</style>
Expand All @@ -75,6 +82,9 @@
<object class="GtkButton" id="information_button">
<property name="icon-name">info-symbolic</property>
<property name="sensitive">false</property>
<accessibility>
<property name="label">Display application information</property>
</accessibility>
<style>
<class name="circular"/>
</style>
Expand Down
6 changes: 6 additions & 0 deletions data/resources/ui/pages/cpu.ui
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
<property name="title" translatable="yes">Show Usages of Logical CPUs</property>
<child type="suffix">
<object class="GtkSwitch" id="logical_switch">
<accessibility>
<property name="label">Logical CPU switch</property>
</accessibility>
<property name="valign">3</property>
<property name="sensitive">false</property>
</object>
Expand Down Expand Up @@ -62,6 +65,9 @@
</child>
<child>
<object class="GtkFlowBox" id="thread_box">
<accessibility>
<property name="label">CPU usage by logical processors</property>
</accessibility>
<property name="row_spacing">6</property>
<property name="column_spacing">6</property>
<property name="homogeneous">true</property>
Expand Down
16 changes: 13 additions & 3 deletions data/resources/ui/pages/processes.ui
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
</property>
<child type="bottom">
<object class="GtkBox">
<property name="orientation">vertical</property>
<child>
<property name="orientation">vertical</property>
<child>
<object class="GtkRevealer" id="search_revealer">
<property name="transition_type">slide-up</property>
<child>
Expand All @@ -45,7 +45,11 @@
<property name="tightening-threshold">300</property>
<property name="maximum-size">400</property>
<child>
<object class="GtkSearchEntry" id="search_entry"/>
<object class="GtkSearchEntry" id="search_entry">
<accessibility>
<property name="label">Search processes</property>
</accessibility>
</object>
</child>
</object>
</child>
Expand All @@ -61,6 +65,9 @@
<child>
<object class="GtkToggleButton" id="search_button">
<property name="icon-name">search-symbolic</property>
<accessibility>
<property name="label">Toggle search field</property>
</accessibility>
<style>
<class name="circular"/>
</style>
Expand All @@ -75,6 +82,9 @@
<object class="GtkButton" id="information_button">
<property name="icon-name">info-symbolic</property>
<property name="sensitive">false</property>
<accessibility>
<property name="label">Show process information</property>
</accessibility>
<style>
<class name="circular"/>
</style>
Expand Down
3 changes: 3 additions & 0 deletions data/resources/ui/window.ui
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@
<object class="GtkMenuButton">
<property name="menu-model">primary_menu</property>
<property name="icon-name">open-menu-symbolic</property>
<accessibility>
<property name="label">Open menu</property>
</accessibility>
</object>
</child>
</object>
Expand Down

0 comments on commit 74904c1

Please sign in to comment.