Commit graph

16 commits

Author SHA1 Message Date
Lukáš Tyrychtr
91b13f4283 Add a few a11y labels to the switches 2022-05-09 13:33:57 +02:00
Georges Basile Stavracas Neto
4300a4a290 panels: Use new CcPanel helpers for title widgets
This should significantly simplify these panels, by not forcing
them to override GObject.constructed all the time. Most panels
were quite straightfoward.
2022-01-20 02:23:42 +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
7aae515cf6 mouse: Use AdwPreferencesGroup's listboxes
We don't need our own listboxes, because our rows
here aren't dynamic.
2022-01-18 09:51:01 +00:00
Christopher Davis
d99269182d mouse: Remove useless GtkGrid
Also move the margins to the box itself and remove the
horizontal margins.
2022-01-18 09:51:01 +00:00
Christopher Davis
891d745302 mouse: Remove all haligns
We can rely on the alignment of AdwActionRow suffixes.
2022-01-18 09:51:01 +00:00
Christopher Davis
a066efd14c mouse: Remove activatable=False
ActionRows aren't activatable by default.
2022-01-18 09:51:01 +00:00
Christopher Davis
0d79f99ae6 mouse: Remove width request and halign from scales
The width request prevented this panel from getting smaller,
and the halign caused the scales to use the minimum possible
width.
2022-01-18 09:51:01 +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
25edfb4a4b mouse: Port to GTK4
This one is an interesting case. It was easier to simply switch
to AdwPreferencesPage than actually port all the GtkFrames in
there.

In addition to that, the mouse test page now uses a GtkPicture
instead of a GtkImage, and the GtkDrawingArea API changes are
reflected in the code.
2021-12-14 22:34:21 -03:00
Mohammed Sadiq
e09ecc41aa mouse: Use content style for listboxes 2021-05-19 03:25:47 +00:00
Ian Douglas Scott
1e917d0033 mouse: Use HdyActionRow
More consistent styling with other panels, and removes a lot of xml.
2021-05-12 04:05:30 +00:00
Felipe Borges
d980e0ffee mouse: Prevent direction change for primary mouse button box
In Right-to-left locales GNOME Settings presents a button on the
left with the translated label "Right" and a button on the right
with the translated label "Left".

These changes prevent the flip of the direction buttons in RTL
locales.

Fixes #1101
2021-04-13 10:36:10 +02:00
Robert Ancell
f17d0aa819 mouse: Remove unused IDs 2019-09-10 11:44:23 +12:00
Robert Ancell
ef6c7c03ca mouse: Merge CcMouseProperties into CcMousePanel 2019-09-10 11:26:15 +12:00
Robert Ancell
37e7fd6ada mouse: Make a GtkTemplate for the panel 2019-09-10 11:26:15 +12:00