Commit graph

7633 commits

Author SHA1 Message Date
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
Marco Melorio
c94afe06a8 privacy: Add usage 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
b2eaa54d7d privacy: Add screen lock 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
81dd3de928 panels: Add empty Privacy panel with navigation
It will be filled in later commits.
2023-08-03 08:42:10 +00:00
Marco Melorio
31a91a221c shell: Disable privacy panels temporarely
It will be reimplemented in a single panel in later commits.
2023-08-03 08:42:10 +00:00
Alice Mikhaylenko
d2ebbf1fec region: Fix preview buttons in the format chooser
This never worked.
2023-08-02 12:52:01 +00:00
Alice Mikhaylenko
ee4c5f8115 search: Stop using AdwPreferencesWindow for search locations window
That's not what it's for.
2023-08-02 12:51:48 +00:00
Alice Mikhaylenko
52f4919c94 network: Stop using AdwPreferencesWindow for the saved networks dialog 2023-08-02 12:51:48 +00:00
Alice Mikhaylenko
f3640d83d3 network: Consistently make options buttons flat 2023-08-02 12:51:48 +00:00
Alice Mikhaylenko
8df9709240 info-overview: Add mnemonic to the copy button 2023-08-02 12:51:48 +00:00
Alice Mikhaylenko
3535479c23 info-overview: Use AdwButtonContent for the copy button 2023-08-02 12:51:48 +00:00
Alice Mikhaylenko
232d4e6ff5 printer-entry: Use a card for the printer rows 2023-08-02 12:51:48 +00:00
Alice Mikhaylenko
81a3c3dd15 network: Fix up proxy page and port to AdwSpinRow 2023-08-02 12:51:48 +00:00
Marcos Miller
61955e46d0 general: replace gtk_widget_translate_coordinates
The method gtk_widget_translate_coordinates is deprecated in gtk 4.12.
Use a new method gtk_widget_compute_point instead.

general: Apply suggestions graphene point
2023-07-21 09:14:20 +00:00
Markus Göllnitz
c26c52aaee usage: make file history's buttons shrinkable
The homogeneous on their boxes has no visible effect, as
the buttons lack hexpand. It, however, still influences
the box's minimal width unnecessarily. Thus, removing it
decreases the panel's minimal and natural width without a
visible change otherwise.

Making those buttons can-shrink also decreases their and
henceforth the panel's minimal width. With this change,
the panel can shrink to a width of 360px, with a natural
width not far from it.

Signed-off-by: Markus Göllnitz <camelcasenick@bewares.it>
2023-07-19 10:23:33 +00:00
Cyber Phantom
aec265db7d user-accounts: Only show Other Users row when there is at least one other user 2023-07-19 08:44:16 +00:00
Felipe Borges
cc5b7c14c3 info-overview: Hide entire software updates group instead of row
We were only hiding the updates row, leaving its AdwPreferencesGroup
visible with no rows.

Let's hide the entire group instead.
2023-07-19 08:38:26 +00:00
Lukáš Tyrychtr
8c361e28cc info-overview: Label the system details that they make sense with a screen reader
Before this, the user could easily only access the property values,
not te names or group titles.
2023-07-18 13:51:31 +00:00
Lukáš Tyrychtr
ba79d849af displays: Use an AdwComboRow for the schedule type of the night light page
GtkComboBox is deprecated and not accessible, so this one is definitely better from this point of view.
2023-07-18 08:29:43 +00:00
Cyber Phantom
32f2d9ea8d info-overview: Style the system information output as markdown 2023-07-17 09:25:26 +00:00