Mohammed Sadiq
f86fc38ef4
keyboard: shortcut-dialog: Remove separator between headerbar and search
...
Since we now uses GtkSearchBar, we no longer requires a separator in
between as GtkSearchBar has one already.
2023-03-01 16:12:19 +00:00
Mohammed Sadiq
73c76a7e85
keyboard: shortcut-dialog: Pack search inside a SearchBar
...
So that they are shown distinct from the rest of the content and
have proper margins
Fixes #2202
2023-03-01 16:12:19 +00:00
Mohammed Sadiq
587a1b05ae
keyboard: shortcut-dialog: Add margins around search entry
...
So that they won't get too close to the window borders. Also adjust
width-chars so that the window width can reach smaller sizes
2023-03-01 16:12:19 +00:00
Mohammed Sadiq
76707bb701
keyboard: shortcut-dialog: Align status pages to the center of the page
...
Fixes #2202
2023-03-01 16:12:19 +00:00
Mohammed Sadiq
40cf37590f
keyboard: shortcut-dialog: Remove sub-view search code
...
We have had removed support for searching in sub-sections.
Remove related code which is no longer used
2023-03-01 16:12:19 +00:00
Mohammed Sadiq
6a84e1eb83
keyboard: shortcut-dialog: Use AdwLeaflet for headerbar
...
So that users can swipe on headerbar to go back
Fixes #2202
2023-03-01 16:12:19 +00:00
Mohammed Sadiq
db82543a62
keyboard: shortcut-dialog: Focus search entry when the window is presented
2023-03-01 16:12:19 +00:00
Mohammed Sadiq
6ad36fe6db
keyboard: shortcut-dialog: Refactor
...
- Use GListModel for creation, filter and sorting of shortcut sections
- Use AdwStatusPage instead of handling empty states manually
Fixes #1212 #1735 #2105 #2159 #2160 #2169
2022-12-05 20:50:15 +00:00
Lukáš Tyrychtr
31d6c7704c
Add some missing a11y labels in the keyboard panel
2022-05-10 04:00:40 +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
d7e794e7ab
keyboard: Port to GTK4
...
Drop the wm-common insanity.
2021-12-14 22:34:21 -03:00
Rachit Keerti Das
fccfb52cad
keyboard: Improve Empty Search State.
...
The empty search state looks out-of place due to it being nested inside
a listbox. This is because we can only detect empty states through
gtk_list_filter_func().
Refine it by making the empty search placeholder a child of the main stack.
Introduce an additional helper function to detect when all the listbox
rows would be hidden by the filter.
As a part of https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1222
2021-02-12 15:41:10 +13:00
Ian Douglas Scott
fd661a6607
keyboard: Use "+" row at end of custom shortcuts, not another box
2020-12-18 07:55:41 -08:00
Ian Douglas Scott
238327e0ae
keyboard: Move keyboard shortcuts configuration to a dialog window
2020-12-18 07:55:38 -08:00