Commit graph

7652 commits

Author SHA1 Message Date
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
Felipe Borges
52ca3bbf14 sharing: Remove placeholder strings from UI file
Those strings are set in the C file.
2023-08-11 12:05:39 +02:00
Automeris naranja
63c15f8641 a11y: Improve "Locate Pointer" setting discoverability
Make easier to find the "Locate Pointer" setting using
the search function by adding new keywords to the *.desktop.in file:
"locate", "find" and "pointer".

Fixes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2581
2023-08-09 22:51:40 +00:00
Markus Göllnitz
3fb3f547c7 sound: make output test wheel smaller
The output test wheel is fixed size with a size of 300px
and a margin of 60px on both sides. Decreasing each value
by 20px, makes it fit a width (and height) of 360px.

see: !1563

Signed-off-by: Markus Göllnitz <camelcasenick@bewares.it>
2023-08-07 10:54:16 +00:00
Markus Göllnitz
f7f6139e83 sound: ellipsize in profile combo box
While the combo box for devices can get ellipsized labels,
the one for the profile cannot. For Bluetooth profiles
with long descriptive names, this can lead to large
minimal widths for the combo box, the row, and the panel.

Signed-off-by: Markus Göllnitz <camelcasenick@bewares.it>
2023-08-07 10:54:16 +00:00
Automeris naranja
8a8973f860 datetime: Explain that Clock & Calendar settings affect the date & time info from Shell's top bar
The Clock & Calendar settings are a bit vague.
Add an explanation to inform that these settings will affect the
date & time information from Shell's top bar.

Fixes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2592
2023-08-07 10:28:17 +00:00
Felipe Borges
fc9251c880 Revert "cc-power-panel: add battery health section"
This reverts commit 4a0d924afd.

There are some rough edges to be polished before this is ready for
prime time.

UPower battery health capacity reporting can often be inconsistent
across vendors, and we don't want to expose unreliable information
on the UI without proper sanitization.
2023-08-07 12:18:33 +02:00
Marco Melorio
cdea4b4503 privacy: Make security dialogs consistent
Port them to AdwWindow and AdwToolbarView, simplify the widgetry and use
a consistent styling and window size.
2023-08-06 14:11:08 +00:00
Marco Melorio
49f037595d privacy-panel: Improve subpage row descriptions 2023-08-06 14:11:08 +00:00
Marco Melorio
a2f65a0471 privacy-panel: Group the subpage rows 2023-08-06 14:11:08 +00:00
Eric Daigle
4a0d924afd cc-power-panel: add battery health section
As described in #2554, it would be useful to be able to see battery health information
such as charge capacity in Settings. This commit implements the proposed design for
battery health information, adding this functionality to the power panel.

Closes #2554
2023-08-04 09:40:07 +00:00
Marco Melorio
287e2371a4 firmware-security: Simplify widgetry
Use a GtkStack instead of a AdwLeaflet in the security and heavily
simplify the security dialog, because it contained a lot of misued
widgets and also a page that was never made visible.
2023-08-03 08:42:10 +00:00
Marco Melorio
0dcebeee9d privacy: Format all UI files 2023-08-03 08:42:10 +00:00
Marco Melorio
5c75c03b52 privacy: Add thunderbolt page
The UI file is not formatted on purpose to facilitate the review. It
will be reformatted in a later commit.
2023-08-03 08:42:10 +00:00
Marco Melorio
71349d80d9 privacy: Add device security page
The UI file is not formatted on purpose to facilitate the review. It
will be reformatted in a later commit.
2023-08-03 08:42:10 +00:00
Marco Melorio
8ea49662d6 privacy: Add microphone page
The UI file is not formatted on purpose to facilitate the review. It
will be reformatted in a later commit.
2023-08-03 08:42:10 +00:00
Marco Melorio
4eefc51dd2 privacy: Add camera page
The UI file is not formatted on purpose to facilitate the review. It
will be reformatted in a later commit.
2023-08-03 08:42:10 +00:00
Marco Melorio
6dac508732 privacy: Add location page
The UI file is not formatted on purpose to facilitate the review. It
will be reformatted in a later commit.
2023-08-03 08:42:10 +00:00
Marco Melorio
ef58f0e097 privacy: Add diagnostics page
The UI file is not formatted on purpose to facilitate the review. It
will be reformatted in a later commit.
2023-08-03 08:42:10 +00:00