Commit graph

8270 commits

Author SHA1 Message Date
Alice Mikhaylenko
c3c139393c removable-media: Port to AdwToolbarView 2023-08-25 08:00:43 +00:00
Alice Mikhaylenko
4af030d74c region: Port to AdwToolbarView 2023-08-25 08:00:43 +00:00
Alice Mikhaylenko
1032ab01f0 power: Port the suspend dialog to AdwWindow and AdwToolbarView 2023-08-25 08:00:43 +00:00
Alice Mikhaylenko
0921015b8b power: Port to AdwToolbarView 2023-08-25 08:00:43 +00:00
Alice Mikhaylenko
dad9c8a732 online-accounts: Port to AdwToolbarView 2023-08-25 08:00:43 +00:00
Alice Mikhaylenko
55e3bc1fbc notifications: Port notifications dialog to AdwWindow and AdwToolbarView 2023-08-25 08:00:43 +00:00
Alice Mikhaylenko
e56faa1421 notifications: Port to AdwToolbarView
Remove an unused size group.
2023-08-25 08:00:43 +00:00
Alice Mikhaylenko
e2018c18b7 multitasking: Port to AdwToolbarView 2023-08-25 08:00:43 +00:00
Alice Mikhaylenko
6390d10d64 info-overview: Port to AdwToolbarView 2023-08-25 08:00:43 +00:00
Alice Mikhaylenko
3a52cf59cd info-overview: Port the system details window to AdwBreakpoint 2023-08-25 08:00:43 +00:00
Alice Mikhaylenko
ae4995803a info-overview: Port the system details window to AdwToolbarView 2023-08-25 08:00:43 +00:00
Alice Mikhaylenko
df06d76eab display: Port to AdwNavigationView and AdwToolbarView
Duplicate the apply titlebar between pages. This should really be
redesigned.
2023-08-25 08:00:43 +00:00
Alice Mikhaylenko
e64833d97d default-apps: Port to AdwToolbarView 2023-08-25 08:00:43 +00:00
Christopher Davis
f50cf970ac wacom: Port to AdwToolbarView 2023-08-25 08:00:43 +00:00
Alice Mikhaylenko
a7afbea0d3 datetime: Port to AdwToolbarView 2023-08-25 08:00:43 +00:00
Alice Mikhaylenko
205a3b7d91 datetime: Port dialogs to AdwWindow 2023-08-25 08:00:43 +00:00
Christopher Davis
23249b2def keyboard: Port to AdwToolbarView 2023-08-25 08:00:43 +00:00
Alice Mikhaylenko
49b1c59c34 color: Port to AdwToolbarView 2023-08-25 08:00:43 +00:00
Alice Mikhaylenko
cf8d23eae4 bluetooth: Port to AdwToolbarView 2023-08-25 08:00:43 +00:00
Alice Mikhaylenko
11a9c20ba6 background: Port to AdwToolbarView 2023-08-25 08:00:43 +00:00
Alice Mikhaylenko
2de150fcdf applications: Stop using GtkDialog 2023-08-25 08:00:43 +00:00
Alice Mikhaylenko
04851552c8 applications: Port to AdwToolbarView 2023-08-25 08:00:43 +00:00
Christopher Davis
b28d10d60d network: Port to Adw{Navigation,ToolbarView}
See previous commits for details on the widgets.

This commit ports the network panel to these new widgets.
In addition, it moves the switch to enable the proxy into
a row within the proxy page itself, following the latest
mockups.
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
Christopher Davis
2a94420350 keyboard-shortcut-dialog: Port to AdwNavigationView
AdwNavigationView is a new widget meant to be used specifically
for navigation, unlike AdwLeaflet which was multipurpose.
AdwNavigationView provides a cleaner API, and when used in
conjuction with the new AdwToolbarView widget we get automatic
titles, back buttons, gestures, actions, and window controls.
In addition, AdwToolbarView provides a new style with flat headers
and an undershoot.

This commit ports the keyboard shortcut dialog to use both of
these new widgets, allowing us to simplify our navigation.
2023-08-25 08:00:43 +00:00
Alice Mikhaylenko
d0f28e7ab5 printers: Remove an unnecessary margin 2023-08-25 08:00:43 +00:00
Alice Mikhaylenko
8132563956 printers: Move search bar above the banner 2023-08-25 08:00:43 +00:00
Alice Mikhaylenko
49a0bf2f33 printers: Use a regular clamped boxed list for printers 2023-08-25 08:00:43 +00:00
Alice Mikhaylenko
3a94c78aad printers: Port the printer menu to GMenuModel 2023-08-25 08:00:43 +00:00
Alice Mikhaylenko
a597ba706d printers: Slightly modernize the entry layout 2023-08-25 08:00:43 +00:00
Alice Mikhaylenko
8473c78b22 printers: Port dialogs to AdwWindow and AdwToolbarView 2023-08-25 08:00:43 +00:00
Alice Mikhaylenko
3e0363b41b printers: Port to AdwToolbarView 2023-08-25 08:00:43 +00:00
Alice Mikhaylenko
782698e4b5 printers: Port to GtkWidget template 2023-08-25 08:00:43 +00:00
Michael Catanzaro
fd296004e7 keyboard: Fix criticals when input chooser is destroyed
This fixes the first critical reported in #2616. And the second issue
reported there appears to be a GTK bug, so let's close #2616.

Fixes #2616
2023-08-24 08:16:47 +00:00
Tobias Wiese
284ddccf0e printers: Fix size calculation for normalized printer name
The worst-case size of the normalized printer name is twice the
original length (if a space is inserted between each character) plus one
byte for the terminating null byte.

Fixes #2619

Signed-off-by: Tobias Wiese <tobias@tobiaswiese.com>
2023-08-24 10:15:24 +02:00
Felipe Borges
ef359060ee common: Fix "selectable" state of the ListRow InfoButton
Originally the screen reader wasn't reading the text of the label
within the popover. It read when we set label.selectable = True.
That had the side-effect of making the label have the visual look
of a selectable label (as expected).

This hack unsets the selectable state of the popover when it is
visible, but that still allows the screen reader to read the label.

Fixes #2508
2023-08-22 11:53:44 +02:00
Felipe Borges
dfede35ef3 default-apps: Add translation comment to "Calls" string
Fixes #2614
2023-08-22 11:02:47 +02:00
Felipe Borges
6585bba6ec privacy: Fix typo in UI file property parameter 2023-08-15 14:13:54 +02:00
zalnaRs
67a9e9d2b3 Sharing: Replace Remote Login's GtkSwitch to AdwSwitchRow
Remote Login dialog used the old GtkSwitch.

Replaced the switch with AdwSwitchRow and wrapped it with AdwPreferencesGroup.

part of https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2290 and part of https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1930
2023-08-15 08:51:04 +00:00
Felipe Borges
9573da47a1 user-accounts: Update status page text when no accountsservice
The text we show when Settings was unable to connect to Accountsservice
and for this reason has nothing to show in the User Accounts panel.
2023-08-14 07:55:45 +00:00
Felipe Borges
d2c456abe6 user-accounts: Show label when another user is logged in
One cannot remove an user if they are currently logged in. Before
we used to show an error message stating that this didn't work.

Now we make the "Remove User" button insensitive and show a label
next to it stating why the user cannot be deleted.

See https://gitlab.gnome.org/GNOME/gnome-control-center/uploads/a47f3ab8606227e541a176008dc7bf64/image.png
2023-08-14 07:55:45 +00:00
Felipe Borges
3449a48ab0 user-accounts: Port "error" message dialogs to AdwToasts 2023-08-14 07:55:45 +00:00
Felipe Borges
14d358740d user-accounts: Drop "Restart" notification
We have code to show the "Restart" notification when the user
would change its account-type between STANDARD/ADMIN, except that
we never allow that to happen. So this code was never used.

We have the would_demote_only_admin function that is used to set
the visibility of the Account Type row. So we won't ever display
the Account Type row if the user would demote the only admin.
2023-08-14 07:55:45 +00:00
Felipe Borges
8289c69fd8 user-accounts: Add loading page with a spinner
Otherwise the panel might look broken in the first half second it
takes to load the user data from accountsservice. The time might
get significant for enterprise/remote accounts.
2023-08-14 07:55:45 +00:00
Felipe Borges
ae98f7d834 user-accounts: Turn "no-users-box" into an error page
We only have no users when we are unable to connect to accountsservice.
2023-08-14 07:55:45 +00:00
Felipe Borges
d7ba866f01 user-accounts: Port GtkMessageDialogs in user deletion to AdwMessageDialog 2023-08-14 07:55:45 +00:00
Felipe Borges
84d3d8dc59 user-accounts: Remove MessageDialog for deleting own account
Our UI doesn't expose the Delete button when the current logged user
is the one viewing its account settings. So there's no need to have
this dialog since it never gets shown.
2023-08-14 07:55:45 +00:00
Felipe Borges
24f50295c4 user-accounts: Port CcAddUserDialog away from deprecated GtkDialog
This is a bare minimum to get rid of GtkDialog. There are upcoming
changes to modernize the dialog.
See https://gitlab.gnome.org/Teams/Design/settings-mockups/-/raw/master/users/add-user.png
2023-08-14 07:55:45 +00:00
Felipe Borges
f5a008ce74 info-overview: Make System Details dialog more compact
Following the mockups at
https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2573#note_1805506

Fixes #2573
2023-08-14 06:34:03 +00:00
Felipe Borges
0c9498d1f8 Mark some strings as translatable
These are strings that are presented in the UI that were not marked
for translation.

Fixes #2596
2023-08-11 12:07:00 +02:00