Skip to content

Commit

Permalink
Merge pull request #193 from nokyan/accessibility
Browse files Browse the repository at this point in the history
Accessibility
  • Loading branch information
nokyan committed Apr 6, 2024
2 parents 3b770e4 + 9d95fb2 commit 069b3b2
Show file tree
Hide file tree
Showing 4 changed files with 36 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
4 changes: 4 additions & 0 deletions data/resources/ui/window.ui
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
<template class="MainWindow" parent="AdwApplicationWindow">
<property name="width-request">360</property>
<property name="height-request">240</property>
<property name="title">Resources</property>
<child>
<object class="AdwBreakpoint">
<condition>max-width: 780sp</condition>
Expand All @@ -41,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 069b3b2

Please sign in to comment.