Commit graph

291 commits

Author SHA1 Message Date
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
Mohammed Sadiq
6b0cc4399a a11y: Remove no longer used code 2022-11-21 21:49:24 +05:30
Mohammed Sadiq
a25a782496 a11y: Use the new design
Fixes #1084 #1085 #1646 #1701
2022-11-21 21:49:24 +05:30
Mohammed Sadiq
7217bfde6d a11y: Add icon resources 2022-11-21 21:02:06 +05:30
Sam Hewitt
81c1836e80 a11y: Add new panel icons 2022-11-21 20:22:13 +05:30
Mohammed Sadiq
a472f7433a a11y: Add cc-ua-zoom-page
Implement the new design[0] for Zoom panel

[0] https://gitlab.gnome.org/Teams/Design/settings-mockups/-/blob/master/a11y/a11y-wires.png
2022-11-21 20:03:32 +05:30
Mohammed Sadiq
eb31393eb4 a11y: Add cc-ua-mouse-page
Implement the new design[0] for Mouse panel

[0] https://gitlab.gnome.org/Teams/Design/settings-mockups/-/blob/master/a11y/a11y-wires.png
2022-11-21 19:16:50 +05:30
Mohammed Sadiq
574c1af6c7 a11y: Add cc-ua-typing-page
Implement the new design[0] for Typing panel

[0] https://gitlab.gnome.org/Teams/Design/settings-mockups/-/blob/master/a11y/a11y-wires.png
2022-11-21 19:16:50 +05:30
Mohammed Sadiq
ee78ec9ef1 a11y: Add cc-ua-hearing-page
Implement the new design[0] for Hearing panel

[0] https://gitlab.gnome.org/Teams/Design/settings-mockups/-/blob/master/a11y/a11y-wires.png
2022-11-21 19:16:50 +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
Mohammed Sadiq
ce28d41a9f a11y: Add cc-ua-macros
Add a list of macros for settings and settings keys, so that
we don't have to define them in every class they are used
2022-11-21 17:24:10 +05:30
Jake Dane
89443fe550 desktop: Remove obsolete Bugzilla entries
The `X-GNOME-Bugzilla-*` entries were for use by bug-buddy, a GNOME 2
technology that's been gone for over a decade. These entries are
obsolete and can be removed from all desktop files.

The `X-GNOME-Settings-Panel` entry is also obsolete as far as I can
tell and only these panels had it in their desktop file: notifications,
sharing, sound and user-accounts. These entries can also be removed.

After removing the `X-GNOME-Bugzilla-*` entries, the desktop files have
no more variables in them. The meson `configure_file` step is therefor
pointless—there are no variables to configure. As such the
`*.desktop.in.in` files are renamed to `*.desktop.in` to reflect this
and `meson.build` files are modified to remove `configure_file` step.
2022-10-20 13:20:09 +00:00
Lukáš Tyrychtr
c6fe35a310 Fix a missing a11y tag 2022-06-19 22:01:45 +00:00
Lukáš Tyrychtr
840024b685 Make the universal panel more accessible by adding some a11y described by relations and a few labels 2022-06-19 22:01:45 +00:00
Jakub Steiner
d57446699c Universal Access: don't depend on gnome-icon-theme-extra
Fixes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1713
2022-03-29 15:10:56 +00:00
Felipe Borges
e03000bd73 universal-access: Add "animations" to desktop file keywords
In commit a825ded085 we added the option
to enable/disable animations in the desktop as an accessibility feature.

Adding the keyword makes it possible to find the Accessibility
settings while searching for "animations" in the shell or in
gnome-control-center.

Fixes #1620
2022-02-04 17:23:56 +00:00
Jakub Steiner
13376ecb8b Add individual app icons 2022-01-31 14:08:22 +00:00
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
Jan Beich
37b29c32cb meson: drop unused argument for i18n.merge_file()
Ignored in Meson < 0.60.0, deprecated since 0.60.1 and fatal since 0.61.0.

panels/applications/meson.build:10:5: ERROR: Function does not take positional arguments.
panels/background/meson.build:10:5: ERROR: Function does not take positional arguments.
panels/camera/meson.build:10:5: ERROR: Function does not take positional arguments.
[...]
2022-01-07 17:22:43 +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
Alexander Mikhaylenko
f89976ff54 ua: Stop setting high contrast WM theme
That key is deprecated.
2021-12-20 19:51:46 +00:00
Alexander Mikhaylenko
c1f8e93636 ua: Use the new high contrast key
Keep setting gtk theme, but use the new boolean as the source of truth.
2021-12-20 19:51:46 +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
Carlos Garnacho
d7db0faa4e universal-access: Look up double-click setting in the right schema
This was changed in commit 006d0e6a63, and wrongly made to look on the
wrong schema. Fix it up so double-click setting lookup happens on
org.gnome.desktop.peripherals.mouse.

Fixes: https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1256
2021-02-18 16:08:53 +01:00
Carlos Garnacho
006d0e6a63 universal-access: Update to g-s-d mouse schema changes
The settings used here moved to the org.gnome.desktop.peripherals.mouse
schema, out of g-s-d. Stop referencing this unused schema.
2021-01-27 13:38:34 +01:00
Robert Ancell
012e9cae25 universal-access: Use modern packing tags in CcZoomOptionsDialog 2020-11-11 20:01:55 +00:00
Robert Ancell
c13a276abd universal-access: Remove unused tags in CcZoomOptionsDialog .ui file 2020-11-11 20:01:55 +00: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