Commit graph

40 commits

Author SHA1 Message Date
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
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
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
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
d9905d9b8a a11y: Remove debug code 2022-11-23 17:20:00 +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
Mohammed Sadiq
a25a782496 a11y: Use the new design
Fixes #1084 #1085 #1646 #1701
2022-11-21 21:49:24 +05:30
Georges Basile Stavracas Neto
bc686f7b14 accessibility: Add go-next-symbolic icon to various rows
See https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1587
2022-01-21 16:13:21 +00:00
Georges Basile Stavracas Neto
0ab20af9ba panels: Switch to CcPanel content
Start porting panels to the new panel format. This commit
temporarily makes panels have two titlebar, which will be
fixed soon.
2022-01-20 02:23:42 +00:00
Christopher Davis
0af1937d4d universal-access: Inline Sound Keys dialog
This can also be replaced with a simple switch
in an AdwActionRow.
2022-01-05 22:06:37 +00:00
Christopher Davis
f4b0ac5318 universal-access: Inline Screen Reader dialog
The dialog can easily be replaced by an
AdwActionRow with a switch and a subtitle.
2022-01-05 22:06:37 +00:00
Christopher Davis
9982f30008 cc-ua-panel: Remove custom listboxes
No longer needed now that all rows handle
activation.
2022-01-05 22:06:37 +00:00
Christopher Davis
997fadf8fb cc-ua-panel: Handle row activation on individual rows
The custom listboxes serve another purpose: to handle
row activation. Instead of using a custom listbox, we
can simply listen to the `activated` signal on the
rows that don't have a switch.
2022-01-05 22:06:37 +00:00
Christopher Davis
02b9f29c44 cc-ua-panel: Use AdwActionRow for all rows
AdwActionRow simplifies activation handling for
switches, provides consistent styling and sizing,
and mnemonic handling.
2022-01-05 22:06:37 +00:00
Christopher Davis
a58fa42e1d cc-ua-panel: Use AdwPreferencesPage/AdwPreferencesGroup
The individual groups still use their own listboxes,
as the custom rows they use won't be added to
AdwPreferencesGroup's list.

See https://gnome.pages.gitlab.gnome.org/libadwaita/doc/main/class.PreferencesGroup.html#adwpreferencesgroup-as-gtkbuildable
2022-01-05 22:06:37 +00:00
Christopher Davis
6a525c861e cc-ua-panel: Remove custom keynav handling
We were using this to move between groups and scroll
the page, but that's not necessary. All we need
to do is set `scroll-to-focus` on our GtkViewport.

This commit removes the keynav-failed callback
and all associated plumbing.
2022-01-05 22:06:37 +00:00
Christopher Davis
981a8cea7b panels: Use .boxed-list instead of .content
The `.content` style class is deprecated in favor
of the `.boxed-list` style class, which is named
after the design pattern it's used for.
2021-12-16 12:52:44 -08:00
Georges Basile Stavracas Neto
9995a3bb79 universal-access: Port to GTK4
This was quite a huge port, but fortunately it mostly involved
removing tons of deprecated widgets (without replacement; just
drop them) and adjusting packing properties.
2021-12-14 22:34:21 -03:00
Felipe Borges
a825ded085 universal-access: Add "Enable Animations" option
Fixes #1388
2021-07-28 19:12:12 +02:00
Robert Ancell
99d7097548 universal-access: Rename widgets to standard names and use standard types 2020-11-11 20:01:55 +00:00
Robert Ancell
4ac698eabd universal-access: Split pointing dialog into its own widget 2020-11-11 20:01:55 +00:00
Robert Ancell
0bd133489d universal-access: Split typing dialog into its own widget 2020-11-11 20:01:55 +00:00
Robert Ancell
2f4058d7e9 universal-access: Split cursor blinking dialog into its own widget 2020-11-11 20:01:55 +00:00
Robert Ancell
31102bd256 universal-access: Split repeat keys dialog into its own widget 2020-11-11 20:01:55 +00:00
Robert Ancell
9aaee503c9 universal-access: Split visual alerts dialog into its own widget 2020-11-11 20:01:55 +00:00
Robert Ancell
828a2bee45 universal-access: Split sound keys dialog into its own widget 2020-11-11 20:01:55 +00:00
Robert Ancell
9a6631a31d universal-access: Split screen reader dialog into its own widget 2020-11-11 20:01:55 +00:00
Robert Ancell
12a19878a6 universal-access: Split cursor size dialog into its own widget 2020-11-11 20:01:55 +00:00
Adrien Plazas
f06379e30c Replace HdyColumn by HdyClamp
In libhandy 1, HdyClamp replaces HdyColumn. This stops setting values
when they match HdyClamp's defaults.
2020-07-20 08:04:28 +02:00
lionirdeadman
146ddd9739 Rename Universal to Accessibility
Fixes #867
Don't touch parts which are not visible
to the user as to avoid regressions
2020-07-19 21:59:22 +00:00
Felipe Borges
ca291402bc universal-access: Add "Locate Pointer" option
Since [0] and [1], "locate pointer" is now in Mutter and works
well under Wayland and X11.

Once activated, the mouse pointer can be located on the screen
by pressing the Ctrl key. Pressing Ctrl will cause an animation
to appear briefly at the location of your pointer.

[0] https://gitlab.gnome.org/GNOME/mutter/merge_requests/453
[1] https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/413

Fixes #586
2019-12-17 23:03:31 +00:00
Robert Ancell
0d096f4c52 universal-access: Update visual alert label to match behaviour change in Mutter
Fixes #403
2019-12-17 22:22:57 +00:00
Felipe Borges
733a638a16 universal-access: Make rows and its elements reachable via keyboard 2019-11-15 13:49:54 +01:00
Mohammed Sadiq
d697d96020 universal-access: Use HdyColumn to center align panel
and avoid the GtkBox hack
2019-07-22 20:44:04 +00:00
Jeremy Bicha
ae75ebcafb universal-access: Reverse Repeat Keys Speed direction
Since the gsettings is for the repeat-interval but the
GUI is for Speed, we need to reverse the mapped direction.

We have to turn off the fill indicator (has_origin) for Speed
since it fills the right side instead of the left. We turn
off the indicator for Delay to match.

Closes: https://gitlab.gnome.org/GNOME/gnome-control-center/issues/311
2019-01-10 11:58:42 +00:00
Robert Ancell
59cc518c3e universal-access: Make .ui filename match the .c filename 2018-11-12 16:41:01 +00:00
Renamed from panels/universal-access/uap.ui (Browse further)