Commit graph

341 commits

Author SHA1 Message Date
Sam Hewitt
1e56c48f33 Unify elements in the icon assets to shrink their file size 2024-04-29 11:01:18 -02:30
Sam Hewitt
075ac51e29 Fix rendering export error on new icon assets 2024-04-29 11:01:18 -02:30
Sam Hewitt
298938619d universal-access: Update icons for a11y panels
- use org.gnome.Settings namespace for icons
- install subpanel assets to hicolor apps
- new icon designs for pointing, seeing and hearing and zoom panels
2024-04-29 11:01:18 -02:30
Sam Hewitt
60e3f591f9 a11y: Reorganize icon assets
- add sources for the subpanel icons to the symbolics source sheet
2024-04-29 11:01:18 -02:30
teshst
02786bee53 hearing: Fix for visual alerts 2024-04-29 00:37:01 -06:00
Matthijs Velsink
fd651824d9 universal-access: Fix icon name in .desktop file
The full icon name is `org.gnome.Settings-accessibility-symbolic`. Even
though it was still being found due to the way icon lookup works, the
Fedora Update System (bodhi) Automated Testing tagged this with

Desktop file /usr/share/applications/gnome-universal-access-panel.desktop
on x86_64 references icon org.gnome.Settings-accessibility but no
subpackages contain org.gnome.Settings-accessibility

So, fix that.
2024-04-25 08:06:35 +00:00
Automeris naranja
7412482a38 ua-zoom-page: Stop making crosshair_overlap_mouse_row to follow sensitivity
Since [1], the crosshair options are now inside an
AdwExpanderRow, meaning that they don't need to be
insensitive when the "Crosshair Lines" option is
disabled because they get hidden in such case.
However, the "Overlap Mouse Cursor" row wasn't updated
in [1] to reflect that, so address this issue.

[1] 054d9c8769
2024-04-16 20:31:01 -03:00
Automeris naranja
054d9c8769 ua-zoom-page: Use AdwExpanderRow in the "Crosshair Lines" row
When the Crosshair Lines option is disabled, the crosshair options
appear insensitive and consume vertical space unnecessarily. Use
AdwExpanderRow to fix this.
2024-04-16 22:16:48 +00:00
Lukáš Tyrychtr
c3483b3a68 universal-access: Add a few activatable widgets in the typing page
This also fixes missing a11y labels for the sliders.
Fixes #2998.
2024-04-16 13:51:26 +02:00
Felipe Borges
4525890c27 multitasking, accessibility: Remove spaces from desktop file keywords
Spaces are not supported in .desktop file keywords[0] as gnome-shell
splits the search term by spaces, and then prefix-matches each word separately
against the candidate keywords.

Inspired by commit 7bd8dd69cf
2024-03-27 10:24:02 +00:00
Automeris naranja
5844b039e3 universal-access: Open subpage when CcPanel.subpage is set
This allows launching the Accessibility panel subpages
from the command line.

See https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2940
2024-03-18 12:14:41 +00:00
Matthijs Velsink
1206bb477f ua-hearing-page: Add context to "Sound" string
Commit 90a131a2 (!2164) split off the translation of the sound panel
name "Sound". However, "Sound" might need a unique translation in
this case.

So, add a context string to allow for that.

Closes #2915
2024-02-21 14:47:30 +01:00
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