Commit graph

12 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
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
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
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
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
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
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
dbeb41bdc9 a11y: Add cc-ua-seeing-page
Implement the new design[0] for Seeing panel

[0] https://gitlab.gnome.org/Teams/Design/settings-mockups/-/blob/master/a11y/a11y-wires.png
2022-11-21 19:16:50 +05:30