Commit graph

174 commits

Author SHA1 Message Date
Automeris naranja
2867c3e761 user-page: Re-add the notice about the "Automatic Login" option
In [1], CcListRowInfoButton was added to the "Automatic Login"
row to explain what the automatic login option does. However,
it was accidentally removed in [2], so re-add-it.

See also https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2235

[1] d586df5c87
[2] d52ec68f8d (679a0ff6735df8f5a352572f78592e3c8610ec9e_136_0)
2024-05-17 07:44:33 +00:00
Automeris naranja
80d86f9d89 add-user-dialog: Port GtkMessageDialog to AdwAlertDialog 2024-05-17 00:23:36 +00:00
Automeris naranja
9a967bc1a9 user-page: Use detailed reponse in AdwAlertDialog
Doing so, the callback doesn't need to have a string to compare.
2024-05-17 00:10:33 +00:00
Automeris naranja
3455e01b3f user-page: Port "Remove [user]?" to AdwAlertDialog
Also, remove the AdwAlertDialog argument in "remove_local_user_response",
as it's unused.
2024-05-15 10:46:40 +00:00
Automeris naranja
168e30a410 general: Don't set some "Copy" buttons as activatable widgets
In rows that have a "Copy" button that is set as activatable
widget, Orca doesn't the buttons a11y label/tooltip; instead,
it reads "[row title] push button".

To fix this, don't set these buttons as activatable widgets.
2024-05-13 23:13:55 -03:00
Matthijs Velsink
67be010833 datetime: Remove unused self variable
Commit 1c081549 fixed a crash in the datetime page, but forgot to remove
a `self` variable that is unused now.
2024-05-07 00:41:14 +02:00
Automeris naranja
aaa08b8194 datetime-page: Set a content width in the "Date & Time" dialog
The GtkListBox from the "Date & Time" dialog is
currently what gives the dialog width, but this
is an unusual approach that other dialogs from
Settings don't use.

To fix this, use the content-width property from
AdwDialog. The dialog width is now almost the same
as before this change.
2024-05-06 12:15:12 +00:00
Automeris naranja
e66d4adb01 date-time: Use AdwActionRow in the Month row from the "Date & Time" dialog
The Month row is a CcListRow which displays the selected month
using the secondary-label property from CcListRow. However, the
month appears dimmed (because secondary-label uses the .dim-label
style class) and the Month row is supposed to mimick AdwComboRow,
which doesn't dim the selected item. To fix this, use an
AdwActionRow instead.
2024-05-06 12:15:12 +00:00
Automeris naranja
cf81656e55 datetime-page: Use AdwPreferencesPage/Group in the "Date & Time" dialog
This simplifies the .ui code a bit and keep consistency
with other dialogs.
2024-05-06 12:15:12 +00:00
Matthijs Velsink
1c0815490a datetime: Don't unconditionally use self in async cbs
If the page is closed before the async call finishes, the page is
unreffed and gets disposed, resulting in a crash when the finish handler
is called, as it may try to access pointers of self that got set to NULL
in the disposer.

To prevent this, use the source object directly, which is guaranteed to
be alive during the call and callback. If self gets disposed during the
async call, we'll get a warning that the cancellable was cancelled
instead of a crash.

Fixes #3045
2024-05-06 10:45:41 +00:00
Automeris naranja
89c58252ed format-chooser: Add tooltip to the preview button
Doing so, this button will also be a11y-labelled.
2024-04-29 20:59:10 -03:00
Sam Hewitt
87569018c7 Drop orphaned symbolic assets 2024-04-29 11:07:20 -02:30
Sam Hewitt
1e56c48f33 Unify elements in the icon assets to shrink their file size 2024-04-29 11:01:18 -02:30
Sam Hewitt
075ac51e29 Fix rendering export error on new icon assets 2024-04-29 11:01:18 -02:30
Sam Hewitt
6df1f3fee9 users: Replace reference to old icon 2024-04-29 11:01:18 -02:30
Sam Hewitt
60e3f591f9 a11y: Reorganize icon assets
- add sources for the subpanel icons to the symbolics source sheet
2024-04-29 11:01:18 -02:30
Sam Hewitt
b511f9a767 system: Reorganized symbolic icon assets
- moved all symbolic icon assets into a top-level folder for the panel
- added new asset for secure shell panel
- updated the gresource
2024-04-29 11:01:18 -02:30
Automeris naranja
9e9e669385 format-chooser: Use AdwStatusPage when a search returns no results 2024-04-29 12:20:25 +00:00
Automeris naranja
2f394dfda2 format-chooser: Replace "view-layout-symbolic" with "view-reveal-symbolic"
When the window is small, the rows show a broken icon in the reveal
button, because the "view-layout-symbolic" icon can't be found.
To fix this, replace such icon with "view-reveal-symbolic", as per
latest mockups[1].

[1] 3a5fe844dd
2024-04-29 09:48:58 +00:00
Adrian Vovk
87f79e6d03 password-dialog: Don't map Esc to window.close
AdwDialog handles Escape for us, and the dialog isn't a window so
`window.close` isn't necessarily what we want. It's not actually a bug
right now (I guess AdwDialog prevents the Escape key event from bubbling
up), but in the future if something changes, then emitting window.close
might just close the entire GNOME Settings window
2024-04-29 08:53:24 +00:00
Sebastien Bacher
17f472fb2a sharing, system: ssh is under the system panel now, update the keywords
remove also the remove desktop items from sharing
2024-04-26 13:16:04 +00:00
Automeris naranja
5e8e127937 users, password-dialog: Use AdwAlertDialog instead of GtkMessageDialog 2024-04-25 09:14:10 +00:00
Automeris naranja
66005ad754 cc-password-dialog: Port to AdwDialog 2024-04-25 09:14:10 +00:00
Felipe Borges
e5d94dd7b9 system, desktop-sharing: Don't refer fingerprint dialog 2024-04-23 10:22:12 +00:00
Felipe Borges
1b106970c4 system, remote-login: Don't refer verify encryption dialog
We don't need it. :)
2024-04-23 10:22:12 +00:00
Felipe Borges
2e2cde5fc5 system, remote-login: Recreate verify crypto dialog on button cb
The dialog gets destroyed when closing but it was only getting recreated
when g-r-d RDP credentials changed. Instead we should recreate the
dialog on demand, just like in desktop sharing.
2024-04-23 10:22:12 +00:00
Felipe Borges
c09543c6dc system, remote-login: Simplify has_fingerprint boolean check 2024-04-23 10:22:12 +00:00
Automeris naranja
8bd295f905 cc-encryption-fingerprint-dialog: Port to AdwDialog 2024-04-23 10:22:12 +00:00
Adrian Vovk
ec3823ac58 users: Fixup parental controls row visibility
Previously, the row would remain visible (and do nothing when clicked)
if g-c-c is compiled w/o support for libmalcontent. Now, we make sure to
only show the row if compiled w/ libmalcontent support.
2024-04-23 07:43:44 +00: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
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
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
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
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
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
c90d55b927 cc-tz-dialog: Minor UI tweaks to empty_page
- Use edit-find-symbolic
- Use "No Results Found" title
- Add "Try a different search" description
- Remove the margin-top because this causes the status
page to look misaligned

The first three changes will make the status page to look
more similar to the status page from the Settings sidebar
(when the search term doesn't return anything), improving
consistency.
2024-04-03 07:59:09 +00:00
Automeris naranja
17f2daaa9a users: Port "Add Enterprise User" dialog to AdwDialog 2024-04-02 16:00:56 +00:00
Automeris naranja
21bc6c5bb7 add-user-dialog: Port to AdwDialog 2024-04-02 15:16:00 +00:00
Automeris naranja
29f4fc46b0 system-details-dialog: Add top margin to "Software Information"
When the window is small, which makes the
"Hardware Information" and "Software Information"
sections to show vertically, the latter doesn't
properly separate from the first visually. Add a
top margin to fix that.
2024-04-02 15:11:40 +00:00
Automeris naranja
9ae687d827 system-details-window: Port to AdwDialog 2024-04-02 15:11:40 +00:00
Automeris naranja
62564c623f users: Don't use another style class for the remove avatar button
The "destructive-action" style class will already make
the button to have a red background.
2024-04-02 10:07:58 +00:00
Automeris naranja
df0c3a79d5 users: Use a single CSS for the entire panel
This also fixes the ".cutout-button" style being
set in "user-accounts-dialog.css", which is wrong
because this widget is located in the main panel
and not in the add user dialog.
2024-04-02 10:07:58 +00:00
Felipe Borges
994a540bfc system, datetime: Don't set datetime when auto time sync is enabled
The timedate1_call will fail because network time synchronization is enabled:

GDBus.Error:org.freedesktop.timedate1.AutomaticTimeSyncEnabled: Automatic time synchronization is enabled

Let's not set_time when NTP is not available, neither set time by
accident at the widget construction stage. When widgets signals are connected
in the UI file their respective callback was getting called. By moving
the signal connection to callbacks to the widget's _init method we
avoid the unwanted callback call.

Fixes #2945
2024-03-27 13:13:13 +00:00
Automeris naranja
6e3f7c6055 secure-shell-page: Use "Command copied to clipboard" string
When copying the login command, a toast appear
saying "Command copied". However, these kind of toasts
usually says that the text was copied *to the clipboard*,
like the toast from System > About > System Details > Copy.
2024-03-26 20:46:35 -03:00
Automeris naranja
2b1a66d7ce users: Rename "Add Enterprise User" to "Add Enterprise Login"
This button is labelled as "Add Enterprise Login" in
the mockups[1].

Also:
- Add missing mnemonic
- Add ellipsis to the button label, since it's required
when the button triggers further user interaction[2]

[1] a0e4f828ec
[2] https://developer.gnome.org/hig/guidelines/writing-style.html#ellipses
2024-03-25 15:08:29 +00:00
Philip Withnall
7bd8dd69cf users: Simplify parental controls keywords to remove spaces
Spaces aren’t supported in .desktop file keywords, as gnome-shell splits
the search term by spaces, and then prefix-matches each word separately
against the candidate keywords.

So a search term of ‘parental’ would match the ‘Parental Controls’
keyword, but a search term of ‘parental controls’ would not, as
‘controls’ doesn’t prefix-match anything.

Avoid that by removing spaces from the keywords.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>

Helps: https://gitlab.freedesktop.org/pwithnall/malcontent/-/issues/48
2024-03-25 14:17:45 +00:00
Felipe Borges
942461d0d8 system, remote-desktop: Rename "RemoteSession" code to "RemoteLogin"
To be consistent with what we show in the UI and conciliate the
confusion with Secure Shell, which was formerly named "RemoteLogin".
2024-03-25 12:33:23 +00:00