Commit graph

329 commits

Author SHA1 Message Date
Florian Müllner
ca76853c6e universal-access: Expose new "show-status-shapes" setting
Whether switches indicate their state with an icon has been split
from the HighContrast stylesheet. Expose the new setting.

https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2675
2024-02-09 13:29:43 +00:00
velsinki
4786865aa6 a11y/hearing: Rephrase overamplification string
The subtitle for overamplification was changed to a single sentence in
!2232, but this reads slightly awkward.

Rephrase the sentence to be both shorter and include that we are
talking about "sound quality" here.
2024-02-06 09:08:57 +00:00
Monster
5465afce01 accessibility: Correct periods 2024-02-05 10:56:04 +00:00
Florian Müllner
feddd1b559 universal-access: Stop tracking old GTK theme
Nothing uses it anymore.
2024-01-30 14:45:26 +00:00
Florian Müllner
3cc39bd280 universal-access: Stop forcing HighContrast icon theme
The theme is considered deprecated in favor of symbolic icons from
the regular theme, and both gnome-shell and the gnome portal stopped
linking it to the high-contrast setting.
2024-01-30 14:45:26 +00:00
Automeris naranja
61707f7a1d ua-typing-page: Port Test Entry to AdwEntryRow 2024-01-23 10:42:25 +00:00
Automeris naranja
90a131a2ee ua-hearing-page: Simplify the translation of Sound panel link
Separate the Sounds panel link from the
string to make translations easier.

Also, remove the period from the string,
because phrases written as a single
sentence shouldn't end with a period:

https://developer.gnome.org/hig/guidelines/writing-style.html
2024-01-18 12:44:25 +00:00
Automeris naranja
5a7442b3c1 cursor-size-dialog: Port to AdwPreferencesPage
Also:

- Move the AdwPreferencesGroup description
to AdwPreferencesPage, which allows to ditch
the margins since the later already has
predefined ones

- Add default size to the window

https://developer.gnome.org/hig/guidelines/adaptive.html
2024-01-16 09:19:24 +00:00
Alessandro Bono
67358cd529 cc-ua-seeing-page: Invert overlay scrollbars logic
Similar reasoning as in 7e42076a0a [1].
Accessibility features should be features that you enable[2]. It is odd
to see a feature enabled by default and that should be disabled in
order to improve accessibility.

[1] 7e42076a0a
[2] https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2154#note_1600075
2024-01-08 09:30:22 +00:00
Bart Gravendeel
cacc2b5bef Remove use-underline property from all CCListRows 2024-01-04 10:11:35 +00:00
Automeris naranja
f3ae59023c universal-access: Describe better what the "Accessibility Menu" option does
When enabling some a11y options, the a11y menu is automatically
shown in the shell top bar, even when the "Accessibility Menu"
option is disabled. Change the option name to
"Always Show Accessibility Menu" to avoid misunderstandings.

Closes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2690
2023-11-29 16:13:14 +00:00
Felipe Borges
0c1c964a8f universal-access: Make the crosshair_overlap_mouse_row follow sensitivity 2023-11-27 11:03:48 +00:00
Automeris naranja
0f6c1cca07 ua-zoom-page: Make crosshair options grayed out when crosshairs are disabled 2023-11-27 11:03:48 +00:00
Automeris naranja
3f78abad08 ua-zoom-page: Use an AdwSwitchRow to enable crosshairs
Closes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2744
2023-11-27 11:03:48 +00:00
Automeris naranja
e39082fbc6 ua-seeing-page: Fix repeated mnemonics
"Screen Reader" and "Reduce Animation" rows
use the same mnemonic, which causes a
conflict when focusing them with the keyboard
2023-11-14 10:05:25 +00:00
Automeris naranja
a3e794a008 ua-typing-page: Add mnemonic to "Test Entry" row 2023-11-14 10:05:25 +00:00
Automeris naranja
f7b757044a ua-typing-page: Fix repeated mnemonics
"Screen Keyboard", "Sticky Keys", "Blink Speed" and
"Bounce Keys"  rows use the same mnemonic, which
causes a conflict when focusing them with the keyboard
2023-11-14 10:05:25 +00:00
Automeris naranja
d233aa4e8d ua-zoom-page: Add missing mnemonics
Partially fixes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2541
2023-11-14 10:05:25 +00:00
Felipe Borges
270e943ed2 universal-access: Add a few comments to translatable strings
This should help translators contextualize some of the strings we
display in the Zoom page of the Accessibility settings.

Fixes #2702
2023-10-20 16:19:21 +02:00
Felipe Borges
519b7d9cfd a11y: Make Cursor size dialog close on Escape key
Addresses comment
https://gitlab.gnome.org/GNOME/gnome-control-center/-/merge_requests/1951#note_1865060
2023-10-17 12:51:23 +00:00
Marco Melorio
9006e6d421 a11y: Add description to cursor size dialog 2023-10-10 11:33:46 +00:00
Marco Melorio
7962dbddea a11y: Use GtkPicture in the cursor size dialog
This way we aren't forced to have squared buttons, which made the dialog
wider with a lot of empty space.
2023-10-10 11:33:46 +00:00
Marco Melorio
9bc4d616f3 a11y: Update cursors pngs in cursor size dialog
Also, use the actual correct sizes. This fixes
https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2456.
2023-10-10 11:33:46 +00:00
Marco Melorio
19efcc8aca a11y: Use a box instead of a grid in cursor size dialog
Also, use GtkBox::homogeneous instead of a size group.
2023-10-10 11:33:46 +00:00
Marco Melorio
d4d4b953a2 a11y: Port cursor size dialog to AdwWindow & AdwToolbarView 2023-10-10 11:33:46 +00:00
Marcos Miller
dbc68c7123 general: better variable names
Changes variable name magnify_factor_spin and number_of_workspaces_spin
by adding 'row' to match the AdwSpinRow object.
2023-10-03 08:59:11 +00:00
Marcos Miller
6a0f157140 universal-access: use AdwSpinRow in Zoom > Magnification Factor 2023-10-03 08:59:11 +00:00
Ismael
694bb9844a universal-access: Add default values to zoom settings 2023-09-19 09:31:15 +00:00
Markus Göllnitz
8bf601b6d5 universal-access: only store current icon them if not HighContrast activated
The panel tries to keep track of the icon theme in use
when HighContrast isn't. For that, it stores in
self->old_icon_theme. That is, however, always updated
when org.gnome.desktop.interface is touched, regardless
of whether HighContrast is already turned on.

Thus, it makes sense to check whether HighContrast is
selected in org.gnome.desktop.a11y.interface, and only
store the old_icon_theme under the condition
high-contrast wasn't selected.

fixes #2640

Signed-off-by: Markus Göllnitz <camelcasenick@bewares.it>
2023-09-12 11:01:02 +00:00
Alice Mikhaylenko
4680f362f3 Port to AdwNavigationSplitView 2023-08-25 08:00:43 +00:00
Christopher Davis
793498ba91 universal-access: Port to Adw{Navigation,Toolbar}View
AdwNavigationView is a new widget meant to be used specifically
for navigation, unlike AdwLeaflet which was multipurpose.
AdwNavigationView provides a cleaner API and gives us automatic
titles, back buttons, gestures, actions, and windowcontrols.

AdwToolbarView is a utility widget that simplifies setting the
top and bottom bars for simple views, giving us styling with
undershoots, the ability to use flat headers in scrolling views,
and proper styling when used with the new sidebar widgets.

This commit ports the Accessibility panel to AdwNavigationView
and AdwToolbarView. Subpages now subclass AdwNavigationPage
and contain toolbar views - meaning their headers are joined with
their content. Their titles and their back buttons are automatically
handled by libadwaita, with proper accessibility.

The actions provided by AdwNavigationPage allow us to remove
the custom listbox we used for the `row-activated` signal. Rows
now use the `navigation.push` action in order to push a subpage
by tag.

Currently our AdwToolbarViews use the `raised` style, as we
have not ported to the new sidebar widget yet.
2023-08-25 08:00:43 +00:00
Automeris naranja
63c15f8641 a11y: Improve "Locate Pointer" setting discoverability
Make easier to find the "Locate Pointer" setting using
the search function by adding new keywords to the *.desktop.in file:
"locate", "find" and "pointer".

Fixes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2581
2023-08-09 22:51:40 +00:00
Mohammed Sadiq
53092efece a11y: Fix a memory leak 2023-07-03 01:56:24 +00:00
Marco Melorio
d62378058f ua: Port to AdwSwitchRow
This was easy since it was already using CcListRow which is already a
switch wrapper.
2023-06-30 09:06:56 +00:00
sunflowerskater
266c55715a general: Add tooltips to headerbar controls
Acc. HIG, "controls in the header bars of primary windows should all have tooltips".

https://developer.gnome.org/hig/patterns/feedback/tooltips.html
2023-06-06 13:27:00 +00:00
Pablo Correa Gómez
7f7b65545c all: meson: do not specify resources from gresource files as dependencies
Meson extracts them by itself and add them as dependencies for the target.
It means one less location to keep track of files, and a lot less boilerplate
around the meson files
2023-05-24 08:34:14 +00:00
Felipe Borges
15145bd20e universal-access: Make Hearing page string translatable
Fixes #2457
2023-04-25 07:00:06 +00:00
Chris Mayo
92c4b6a706 Fix panel crashes due to unknown types in UI descriptions
Error building template class 'CcSearchPanel' for an instance of type 'CcSearchPanel': .:0:0 Invalid object type 'CcListRow'

Error building template class 'CcDisplayPanel' for an instance of type 'CcDisplayPanel': .:0:0 Invalid object type 'CcListRow'

Error building template class 'CcMousePanel' for an instance of type 'CcMousePanel': .:0:0 Invalid object type 'CcIllustratedRow'

Error building template class 'CcKeyboardPanel' for an instance of type 'CcKeyboardPanel': .:0:0 Invalid object type 'CcListRow'

Error building template class 'CcRegionPanel' for an instance of type 'CcRegionPanel': .:0:0 Invalid object type 'CcListRow'

Error building template class 'CcUaPanel' for an instance of type 'CcUaPanel': .:0:0 Invalid object type 'CcListRow'

Error building template class 'CcUserPanel' for an instance of type 'CcUserPanel': .:0:0 Invalid object type 'CcAvatarChooser'
Error building template class 'CcUserPanel' for an instance of type 'CcUserPanel': .:0:0 Invalid object type 'CcListRow'

Error building template class 'CcDateTimePanel' for an instance of type 'CcDateTimePanel': .:0:0 Invalid object type 'CcTzDialog'
cc_tz_dialog_get_selected_location: assertion 'CC_IS_TZ_DIALOG (self)' failed
dumped core
Error building template class 'CcDateTimePanel' for an instance of type 'CcDateTimePanel': .:0:0 Invalid object type 'CcListRow'

Error building template class 'CcInfoOverviewPanel' for an instance of type 'CcInfoOverviewPanel': .:0:0 Invalid object type 'CcHostnameEntry'
2023-04-17 12:14:58 +00:00
Markus Göllnitz
98f7a40d24 multiple panels: show start title buttons in header bar
The start title buttons of the main window should be displayed if and
only if the end title buttons are. Only the left-most header bar should have
the start title button set and only right-most header bar the end title buttons.

Therefore, the title buttons property should be bound to the leaflet state:
When unfolded the start title buttons of the sidebar's header bar are
the only ones visible then, and not a second pair in the panel's header bar.
Likewise, in a folded state of the leaflet, the panel's header bar displays
all availble title buttons – start and end – as the panel is the only widget
displaying a header bar.

Signed-off-by: Markus Göllnitz <camelcasenick@bewares.it>
2023-03-16 13:18:37 +00:00
Mohammed Sadiq
bf61c22710 a11y: Update title when the panel is created
Otherwise, the panel shall have an empty headerbar with no title
when a user switches to the panel
2023-01-04 13:28:13 +00:00
Sam Hewitt
bc67d7dd29 a11y: Update and add descriptions and labels
- adds missing descriptions to some features to better explain them
- moves the cursor size label to the list row
- small word and grammar changes
2022-11-30 17:11:31 -03:30
Mohammed Sadiq
fa4579246f a11y: typing-page: Fix a typo 2022-11-30 12:59:13 +00:00
Mohammed Sadiq
ad92d1590e a11y: zoom-page: Fix typos 2022-11-30 12:59:13 +00:00
Mohammed Sadiq
d9905d9b8a a11y: Remove debug code 2022-11-23 17:20:00 +05:30
Mohammed Sadiq
d4bd50835e a11y: seeing-page: Fix updating icons when High Contrast is disabled
If the old icon theme is HighContrast, we should reset the settings when
High Contrast is disabled, so that the default icon theme is used
2022-11-23 17:19:37 +05:30
Mohammed Sadiq
628b14a9d2 a11y: seeing-page: Don't update theme when High Contrast is set
The theme will be set to HighContrast systemwide without explicitly changing
theme name.  So Let's don't update the theme so that if the user reverts
High Contrast settings, the old theme shall be used.
2022-11-23 17:19:37 +05:30
Mohammed Sadiq
7e42076a0a a11y: Update setting animation effects
Instead of the user enabling animation (which is, by default, on),
let it be allowing the user to disable it.

Fixes #2154
2022-11-23 17:19:37 +05:30
Mohammed Sadiq
bd24e9bec3 a11y: various: Remove trailing '.' from strings
Fixes #2154
2022-11-23 17:19:37 +05:30
Mohammed Sadiq
afce64d7dc a11y: Use Title Case for Title
Fixes #2154
2022-11-23 17:19:37 +05:30
Mohammed Sadiq
e935e581ee a11y: Update back button on panel fold change
Fixes #2154
2022-11-23 17:19:37 +05:30