Commit graph

8388 commits

Author SHA1 Message Date
Automeris naranja
f91fe58587 permission-infobar: Use em dash
Use em dash in the "Error: some settings cannot be unlocked",
which is now "Error — some settings cannot be unlocked".
This improves consistency with the banner from Online Accounts
which says "Offline — unable to connect accounts" when the device
is offline; this banner text uses an em dash.
2024-04-18 08:50:12 +00:00
Automeris naranja
ac7b1d910d general: Use em dash in some places
Em dash is the correct punctuation mark to separate parts
of a sentence, not an en dash.

https://www.merriam-webster.com/grammar/em-dash-en-dash-how-to-use
2024-04-18 08:42:50 +00:00
Felipe Borges
b5768e4bf7 sharing, panel-loader: Hide "Sharing" panel when nothing to show
Since we started moving some settings from the Sharing panel to other
panels, we were left with only tree things in the Sharing panel for
gnome-46: hostname row, file sharing row, and media sharing row.

The hostname row is already in System ->About, so we should check
whether file-sharing or media-sharing are supported and show the panel
accordingly.

Fixes #2979
2024-04-18 10:26:17 +02:00
Felipe Borges
1b9e8a8a7a sharing: Don't pass a panel reference to schema check function
We don't need that here.
2024-04-18 10:25:36 +02:00
Felipe Borges
eb86eb11f1 sharing: Add mechanism to check availability of "Media Sharing"
So that we have a function to check whether we should show the "Media
Sharing" row.

This is going to be useful when we will try to hide the entire panel if
both "Media Sharing" and "File Sharing" aren't available.
2024-04-18 10:25:36 +02:00
Maximiliano Sandoval
5d830582de privacy: location: Unpack GVariant inside GVariant 2024-04-18 08:12:02 +00:00
Maximiliano Sandoval
55afa6df47 privacy: camera: Unpack GVariant inside GVariant
Fixes: https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2982
2024-04-18 08:12:02 +00:00
Automeris naranja
7412482a38 ua-zoom-page: Stop making crosshair_overlap_mouse_row to follow sensitivity
Since [1], the crosshair options are now inside an
AdwExpanderRow, meaning that they don't need to be
insensitive when the "Crosshair Lines" option is
disabled because they get hidden in such case.
However, the "Overlap Mouse Cursor" row wasn't updated
in [1] to reflect that, so address this issue.

[1] 054d9c8769
2024-04-16 20:31:01 -03:00
Automeris naranja
054d9c8769 ua-zoom-page: Use AdwExpanderRow in the "Crosshair Lines" row
When the Crosshair Lines option is disabled, the crosshair options
appear insensitive and consume vertical space unnecessarily. Use
AdwExpanderRow to fix this.
2024-04-16 22:16:48 +00:00
Lukáš Tyrychtr
c3483b3a68 universal-access: Add a few activatable widgets in the typing page
This also fixes missing a11y labels for the sliders.
Fixes #2998.
2024-04-16 13:51:26 +02:00
Automeris naranja
accd5b670e removable-media-settings: Minor UI tweaks to follow mockups
- Rename the "Other Media" row to "Other Media Types" (including
the window title) and remove its subtitle
- Rename "Automatically Launch Apps" row to "Media Autostart"
and use "Start apps or prompt when media is connected" as its new
subtitle

Reference:
288a451db2
2024-04-15 13:08:30 +00:00
Automeris naranja
1f0da3ca65 network: Use a placeholder widget in the VPN list box
Using a GtkStack isn't necessary to display the "Not set up"
row. Instead, use a GtkListBox placeholder widget in the main
VPN list box.

This improves consistency with the placeholders from "Privacy >
Location/Camera/Microphone" when there are no apps; same thing
in "Search > Search Locations > Custom Locations" when no custom
locations were added.

https://docs.gtk.org/gtk4/class.ListBox.html#gtklistbox-as-gtkbuildable
2024-04-15 13:06:21 +00:00
Automeris naranja
5cd300c65a apps: Use property rows in the "Required Access" dialog 2024-04-15 08:58:12 +00:00
Automeris naranja
2ed2407af7 network: Remove redundant a11y labels
AdwActionRow, CcListRow, AdwSwitchRow and AdwSpinRow are already
accessible by default, so using a11y labels on these widgets is
redundant.
2024-04-14 22:38:13 -03:00
Automeris naranja
d5da431ba5 fingerprint-dialog: Minor tweaks to the "back" button
- Add a tooltip
- Remove the a11y label because Orca also reads tooltips
- Remove the .image-button style class as it's automatically
added if a GtkButton has an icon
- Remove the use-underline property as it's pointless in
a button without a label
2024-04-13 05:55:51 +00:00
Automeris naranja
d9380e9683 desktop-sharing-page: Add missing period in the page description
HIG says that "Text generally shouldn’t end with a period.
This applies [...] text that is written as a complete sentence",
but the page description text isn't written as a complete sentence,
so the guideline isn't applicable in this case.

https://developer.gnome.org/hig/guidelines/writing-style.html
2024-04-13 00:22:58 -03:00
Hari Rana
6b0594d9ca applications-panel: Make minor adjustments
This reduces the box's spacing down to 6, removes the label's
unnecessary `title` CSS class, and justifies it to center.
2024-04-10 14:20:55 +00:00
Felipe Borges
0042c11747 power: Use adw_dialog_present directly to show Auto suspend dialog 2024-04-09 11:37:37 +02:00
Felipe Borges
9d24aed45a network: Set adw_dialog_present as handler for saved_networks_row 2024-04-09 11:36:51 +02:00
Felipe Borges
4d22aa5e11 apps: Set adw_dialog_present as handler for row.activate
Some of our list rows launch dialogs. Our callbacks were plain
adw_dialog_present (dialog, parent) calls.

Lets delete that code and call adw_dialog_present directly where it
makes sense.
2024-04-09 11:35:34 +02:00
Automeris naranja
788c3bacfb secure-shell-page: Port to AdwDialog 2024-04-09 09:18:31 +00:00
Xiaoguang Wang
535404bba2 datetime: Avoid emitting the time-changed signal
When setting the widget value, don’t emit the time-changed signal.

Fixes #2943
2024-04-09 09:07:11 +00:00
Automeris naranja
2bebe77422 remote-desktop: Use "copied to the clipboard" in AdwToasts
When using the copy buttons from Desktop Sharing/Remote Login pages,
the toasts don't show that the values were copied to the clipboard,
unlike in System > Secure Shell/About > System Details, for example.
So, fix this inconsistency.
2024-04-09 09:05:16 +00:00
Automeris naranja
69a5fcaa51 input-chooser: Remove content-height property
Doing so, this dialog won't display a scrollbar that scrolls
just a little bit (when the list box isn't expanded), as this
is unnecessary.
2024-04-09 00:35:04 -03:00
Automeris naranja
22c0982349 sharing: Remove sharing.css
The .tls-cert-fingerprint style class is part of "Verify Encryption"
dialog from the Remote Desktop feature, which is now present in the
System panel. sharing.css isn't needed anymore.
2024-04-08 17:00:12 +02:00
Automeris naranja
a5aa2baa25 enterprise-login-dialog: Prevent buttons from being sensitive incorrectly
"Add" and "Enroll" buttons can still be sensitive without
calling main_page_validate() and enroll_page_validate()
respectively. Add an assertion check in both cases to
prevent these buttons being sensitive incorrectly.

Co-authored-by: Matthijs Velsink <mvelsink@gnome.org>
2024-04-08 13:54:04 +00:00
Automeris naranja
a3ecc76e19 firmware-security: Remove content-height from 2 dialogs
Doing so, the firmware-security-dialog and
firmware-security-boot-dialog can show more text (which can
increase in some translations) without having a scrollbar.

This complements the following commit:
c252c3c861
2024-04-08 13:49:13 +00:00
Automeris naranja
a7017238a5 power: Remove content-height property in the "Automatic Suspend" dialog
Doing so, this dialog won't display a scrollbar that scrolls
just a little bit, as this is unnecessary.
2024-04-08 13:48:23 +00:00
Automeris naranja
19c3f3570d sharing: Port all dialogs to AdwDialog
Port the "File Sharing" and "Media Sharing" dialogs
to AdwDialog.
2024-04-08 13:47:02 +00:00
Sam Hewitt
7fcc142aac mouse: Update assets for test window; improve scroll arrow display
- add new assets for clicking and scrolling view switcher
- adjust the scroll test arrow display
- remove old inappropriate asset
- use gresource for new assets
2024-04-08 10:02:11 +00:00
Andy Holmes
755ace7b7d online-accounts: move Fedora to the end of branded providers 2024-04-08 09:42:19 +00:00
Andy Holmes
c46e2c6115 online-accounts: rename windows_live provider to "Microsoft" 2024-04-08 09:42:19 +00:00
Andy Holmes
8b9242595c online-accounts: rename MS365 provider 2024-04-08 09:42:19 +00:00
Andy Holmes
3190cd6afe online-accounts: use sentence capitalization for descriptions 2024-04-08 09:42:19 +00:00
Andy Holmes
081ae920a0 online-accounts: move providers into a list model
Refactor slightly to get providers into a list model, to ease future
UX changes and reduce friction for design iteration.

cc !2354
2024-04-08 09:42:19 +00:00
Andy Holmes
cf5e43feac online-accounts: implement service descriptions for providers
Add descriptions for each provider type, indicating which services
a given provider can support.

closes #1917
2024-04-08 09:42:19 +00:00
Ray Strode
ae2df95306 system, password-utils: Try to find word list harder
There are variety of word lists available in /usr/share/dict,
let's try more than just one.

Closes:
https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2957
2024-04-08 10:57:20 +02:00
Automeris naranja
b697433c7d alert-chooser-window: Remove the content-height property
Doing so, the Alert Sound dialog won't display a scrollbar that
scrolls just a little bit, as this is unnecessary.
2024-04-08 08:42:06 +00:00
Automeris naranja
7b039bb279 power: Minor tweaks to strings related to automatic suspend
Rename the following strings (and use header capitalization):
- "When on battery power" to "On Battery Power"
- "When plugged in" to "When Plugged In" (in the Automatic Suspend
dialog too)

Reference 1bb482ed19
2024-04-07 21:19:28 +00:00
Automeris naranja
2c5f3169b3 region: Use the secondary-label property in all CcListRows
"Language" and "Format" rows show their value as a subtitle,
but this is inconsistent with Settings design pattern in which
the value label is shown at the right, so fix this inconsistency.

Closes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2914
2024-04-06 14:34:56 +00:00
Matthijs Velsink
5fedb30a08 network: Add stable-ssid support for cloned-mac
NetworkManager 1.46.0 added support for "stable-ssid" for cloned mac,
which generates a stable MAC address based on SSID for each network.

This got accepted as the new default for Fedora 40, see
https://fedoraproject.org/wiki/Changes/StableSSIDMACAddress and
https://pagure.io/fesco/issue/3135.

However, there is no support for the connection editor for this value,
meaning if "stable-ssid" is set, changes to a WiFi network can't be
applied.

Fix this by adding support for "stable-ssid". Essentially based on
network-manager-applet!143
(network-manager-applet@202149c0843510a944afe2257cf56fbb7b4d2ef9).

Closes #2852
2024-04-04 11:53:43 +00:00
Felipe Borges
5bdb890675 build, privacy: Make Location settings build conditional
Considering the retirement of Mozilla Location Service, most
laptop/desktop users will rely on weaker network based location
sources.

Let's make the Location settings a build option, disabled by default.
-Dlocation-services=enabled

See #2959
2024-04-04 13:52:10 +02:00
Automeris naranja
c252c3c861 firmware-security-dialog: Ditch gtk_window_set_default_size
The window layout will adapt according to the text length
(which can increase in some translations), so setting
a window size according to the device security state is
unnecessary.

This also fix an invalid cast to GtkWindow, because
firmware-security-dialog is now an AdwDialog.

Follow-up from b126b05247
2024-04-04 07:05:50 +00:00
Automeris naranja
c6c02d16d9 color: Minor writing style tweak
- In the AdwPreferencesPage description, use an
en dash before "learn more" and add a period.

This will be consistent with the
Privacy > Diagnostics page description writing
style:
ad142445a2
2024-04-03 20:02:36 -03:00
Automeris naranja
d30ebf9945 color: Rename "colors_page" to "color_page"
The AdwPreferencesPage id is "colors_page",
but the plural isn't correct.

Follow-up from 8e44e69e37
2024-04-03 19:10:59 -03:00
Automeris naranja
8e44e69e37 color: Modernize the panel a bit
- Use AdwPreferencesPage/AdwPreferencesGroup
- Use AdwStatusPage when there are no devices
that can be color managed
2024-04-03 21:58:21 +00:00
Automeris naranja
96d4acf1ed power: Port "Automatic Suspend" dialog to AdwDialog 2024-04-03 08:33:05 +00:00
Automeris naranja
7a7939d4ad date-time: Port dialogs to AdwDialog
Port the "Time Zone" and "Date & Time" dialogs to
AdwDialog.
2024-04-03 08:24:51 +00:00
Automeris naranja
ca4bffe765 apps: Port "Required Access" dialog to AdwDialog 2024-04-03 08:01:55 +00:00
Automeris naranja
1aab23712e apps: Port "File & Link Associations" dialog to AdwDialog 2024-04-03 08:01:55 +00:00