Commit graph

7760 commits

Author SHA1 Message Date
Automeris naranja
759eccf61b printers: Add tooltip to the search button
"Controls in the header bars of primary windows should all have tooltips".

https://developer.gnome.org/hig/patterns/feedback/tooltips.html
2023-10-20 10:49:48 +00:00
Marco Melorio
dccaf98135 mouse-panel: Increase AdwBreakpoint width to avoid videos being blurry
When reducing the window width, CCSplitRow won't have enough width
to display videos without blurriness. This change increases the
AdwBreakpoint width so CCSplitRow shows vertically before that problem
described earlier happens.

See also: https://gitlab.gnome.org/GNOME/gnome-control-center/-/merge_requests/1960#note_1869031

Part-of: <https://gitlab.gnome.org/GNOME/gnome-control-center/-/merge_requests/1960>

Partially fixes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2631
2023-10-20 10:24:27 +00:00
Marco Melorio
b136406210 cc-split-row: Reduce GtkPicture horizontal margins to avoid blurriness
There is a difference between the aspect ratio of the CCSplitRow widget
and the videos from the Mouse & Touchpad panel, which causes the videos
to appear blurry.

This change reduces the video margins so they can better align with the pixel grid.
See also: https://gitlab.gnome.org/GNOME/gnome-control-center/-/merge_requests/1960#note_1869031

Part-of: <https://gitlab.gnome.org/GNOME/gnome-control-center/-/merge_requests/1960>

Partially fixes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2631
2023-10-20 10:24:27 +00:00
Maximiliano Sandoval R
2e12bf3bbe input-list-box: Add a label to the add button
This way it looks a bit more full and helps with a11y. Values taken from
the app Secrets.
2023-10-20 08:58:35 +00:00
Maximiliano Sandoval R
a98748f535 input-list-box: Use ActionRow instead of label
This way it has the correct height.
2023-10-20 08:58:35 +00:00
Felipe Borges
519b7d9cfd a11y: Make Cursor size dialog close on Escape key
Addresses comment
https://gitlab.gnome.org/GNOME/gnome-control-center/-/merge_requests/1951#note_1865060
2023-10-17 12:51:23 +00:00
Maximiliano Sandoval R
56f2ac9cb3
applications-panel: Set pill style on button
See https://developer.gnome.org/hig/patterns/controls/buttons.html
2023-10-16 21:06:48 +02:00
Marcos Miller
4b9527b41e datetime: use AdwSpinRow in dialog
See https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2660
2023-10-13 10:42:59 +00:00
Marco Melorio
7363ca800e network: Fix "Missing initializer for field" warning 2023-10-12 10:09:44 +02:00
Marco Melorio
acd3e4a9c6 keyboard: Fix "argument discards const qualifier" warning 2023-10-12 10:09:44 +02:00
Marco Melorio
13c939659a misc: Fix incompatible type warnings 2023-10-12 10:09:44 +02:00
Marco Melorio
d91f9381f9 misc: Remove unused variables 2023-10-12 10:09:44 +02:00
Marco Melorio
2fc0e26d79 illustrated-row: Use correct property to scale down image
This widget was using halign instead of content-fit to scale down the
image to the correct resolution, and it was making the image blurry in
some cases.

Fixes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2382.
2023-10-10 12:39:39 +00:00
Marco Melorio
9006e6d421 a11y: Add description to cursor size dialog 2023-10-10 11:33:46 +00:00
Marco Melorio
7962dbddea a11y: Use GtkPicture in the cursor size dialog
This way we aren't forced to have squared buttons, which made the dialog
wider with a lot of empty space.
2023-10-10 11:33:46 +00:00
Marco Melorio
9bc4d616f3 a11y: Update cursors pngs in cursor size dialog
Also, use the actual correct sizes. This fixes
https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2456.
2023-10-10 11:33:46 +00:00
Marco Melorio
19efcc8aca a11y: Use a box instead of a grid in cursor size dialog
Also, use GtkBox::homogeneous instead of a size group.
2023-10-10 11:33:46 +00:00
Marco Melorio
d4d4b953a2 a11y: Port cursor size dialog to AdwWindow & AdwToolbarView 2023-10-10 11:33:46 +00:00
Felipe Borges
5ff13e2def keyboard: Show title buttons at the initial state of "Set Shortcuts" dialog
Fixes #1078
2023-10-10 09:55:31 +00:00
Maximiliano Sandoval R
6ecbeb2a53 user-panel: Set pill style on button bellow list 2023-10-10 09:46:28 +00:00
Maximiliano Sandoval R
5da11f739d user-panel: Add missing xml header 2023-10-10 09:46:28 +00:00
Cyber Phantom
8844b88dc0 info-overview: Don't set key binding twice 2023-10-09 08:25:26 +00:00
Automeris naranja
5dc07c9191 apps: Remove ellipsis from the "Clear Cache" button label
Button labels with ellipsis indicate that extra user input is
required to complete the action. However, the "Clear Cache" button
from the Storage dialog doesn't require any extra user input.

Closes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2627
2023-10-04 08:23:31 +00:00
Automeris naranja
4cf2673534 apps: Tweak the "Other Media" row design from the Removable Media subpage
The "Other Media" row from the Removable Media subpage has some problems:

- The row label has ellipsis, but the "Configure action" button label should
have ellipsis instead, because the later triggers further input from the user
to complete the action[1]
- "Configure action" label doesn't use header capitalization

This change addresses the two issues above.

[1] https://developer.gnome.org/hig/guidelines/writing-style.html?highlight=ellipsis
2023-10-04 08:12:31 +00:00
Robert Ancell
058c9b3d6f applications: Replace snapd-glib with a native implementation
This has some advantages:
- Removes the conditional compilation requirement, which makes testing easier.
- Allows all distributed versions of Settings to have snap support without them supporting snapd-glib.
- Makes it faster to update Settings for Snap features without waiting on snapd-glib releases.

Note that the snap support is only invoked if you have snaps installed.

Downsides:
- Some additional code in Settings. This is manageable as Settings doesn't need much snap information.
  libsoup2 didn't support HTTP over Unix domain sockets and would have been too much to support in Settings.
  libsoup3 does support this which makes this possible.
- We no longer share code with snapd-glib, so any future changes will have to be made in multiple places.
  snapd has a stable API and multiple active clients so this is not likely to be a major concern.
2023-10-04 01:35:56 +00:00
Automeris naranja
4b1147add9 search-locations-dialog: Add ellipsis to the "Add Location" button
"Use an ellipsis (…) at the end of a label if further input or confirmation
is required from the user before the action can be carried out"

https://developer.gnome.org/hig/guidelines/writing-style.html
2023-10-03 14:26:26 +00:00
Michael Catanzaro
6219cbdca5 network: fix editing connections without a device
For example, fix adding new VPN connections.

In 60b4956c05 I correctly observed that we
need to not run code that requires a device when there is no device.
NetConnectionEditor is a multipurpose dialog and self->device is
optional when creating the dialog. E.g. when modifying VPN
configuration, we update just the configuration, not an NMDevice.

However, I added this check too soon, before updating the connection
configuration. We need to update the configuration first, then only bail
before proceeding to update the device, not sooner.

Fix #2668
2023-10-03 11:03:06 +00:00
Felipe Borges
2397db38c3 network: Replace use of deprecated gtk_widget_hide
In favor of gtk_widget_set_visible
2023-10-03 11:41:07 +02:00
Ondřej Pohořelský
9d1af3de28 wifi: disable hotspot row when Wi-Fi is not active
There is no point in showing hotspot creation dialog when it can't
enable the hotspot without Wi-Fi adapter enabled.
2023-10-03 09:33:08 +00:00
kramo
6a95124c88 keyboard: Add outline to shortcut graphic arrows 2023-10-03 09:08:05 +00:00
Felipe Borges
358a952f70 mouse: Fix linked style of primary mouse button in RTL
Commit d980e0ffee fixed an issue when the "Left" button would appear
at the right side for RTL languages given that GtkBox would reorder
its horizontal children to RTL direction.

The solution at the time was to force the primary-button box to stay
in LTR direction when the rest of the interface is shown in RTL.
This introduced a regression where the CSS "linked" style of the
buttons used was the LTR one, breaking the "linked" styling.

This fix will manually reorder the Left/Right buttons rather than
calling gtk_widget_set_direction on the primary-button-box.

Fixes #2649
2023-10-03 09:00:47 +00:00
Marcos Miller
dbc68c7123 general: better variable names
Changes variable name magnify_factor_spin and number_of_workspaces_spin
by adding 'row' to match the AdwSpinRow object.
2023-10-03 08:59:11 +00:00
Marcos Miller
5c1cfcace2 multitasking: uses g_settings_bind_no_sensitivity 2023-10-03 08:59:11 +00:00
Marcos Miller
6a0f157140 universal-access: use AdwSpinRow in Zoom > Magnification Factor 2023-10-03 08:59:11 +00:00
Marcos Miller
43f1a2ad4a multitasking: use AdwSpinRow in number of workspace
When starting the panel, it was necessary to add the sensitive
property to 'number_of_workspaces_spin', because when doing the
'g_settings_bind' it was leaving it visible even with the dynamic
workspaces option active.
2023-10-03 08:59:11 +00:00
Marco Melorio
cd5a80c268 privacy: Fix crash in the firmware security page
Make sure the timeouts are stopped when the page is finalized.
2023-09-22 10:41:14 +00:00
Nishal Kulkarni
ccf7c8a565 removable-media: UI changes
Make removable media UI conform with other panels.
Based off of initial mockups given in #1096
2023-09-19 11:13:41 +00:00
Nishal Kulkarni
20eda27bb9 applications: Move default app and removable media
Currently setting's panel list is over-populated. We can fix this by
moving some of the settings inside other panels as sub-panels.

Created a new row in applications panel for removable media and
default apps. On selecting the row we show the respective settings
which is same as before.

Removed default app and removable media from sidebar

Closes: #1092 #1096
Related to: #1090
2023-09-19 11:13:41 +00:00
Nishal Kulkarni
b592bd9d4e cc-removable-media-panel: Add convenience function
As a part of moving removable media panel under applications, we create
a function `cc_removable_media_panel_new` which return a GtkWidget
that can be added to GtkStack inside applications panel.
2023-09-19 11:13:41 +00:00
Nishal Kulkarni
f5c3797996 cc-applications-panel: Update to new layout
These changes make applications panel adhere to the new mockups.
Sidebar is removed instead applications can be searched directly in the
main panel.
2023-09-19 11:13:41 +00:00
Felipe Borges
bb835aac9e power: Make battery level percentage string translatable
This allows for local translation teams to change the presentation
format of the battery level percentage string accounting for local
guidelines and standards for displaying percentage values.

See https://en.wikipedia.org/wiki/Percent_sign#Correct_style for
more information.

Fixes #2637
2023-09-19 09:32:03 +00:00
Felipe Borges
5ec953b89c power: Use ISO-31-0 as default standard for showing batter charge percentage
This is the battery charge percentage. Showing number without a space
between the percent sign is the English style.

The ISO-31-0 standard prescribes a space between the number and the
percent sign.

See #2637
2023-09-19 09:32:03 +00:00
Ismael
694bb9844a universal-access: Add default values to zoom settings 2023-09-19 09:31:15 +00:00
Alexandre Franke
e8a08f0fd7 data: fix label string 2023-09-18 13:00:43 +02:00
zhuyaliang
af3a11b445 info-overview: Add more types of processor support 2023-09-18 09:09:32 +00:00
Sabri Ünal
6a4a70f6a6 data: mark translatable strings yes
Marking translatable strings as 'yes' is a convenient practice
across the GNOME project. Follow the common practice.
2023-09-18 00:31:24 +03:00
Felipe Borges
d0d5606e46 search: Fix crash when selecting fodler with a File dialog
Fixes #2645
2023-09-15 08:55:58 +00:00
Mara Lasker
ddbd410943 online-accounts: Add line-breaks to log messages
!1331 (merged) introduced a custom logger as a workaround for
a not ideal design choice, but the workaround is using g_printerr,
which is not adding linebreaks, so the logs were unreadable.

This doesn't fix the whole architecture of this part, but simply
adds a line-break so that at least the logs can be read by humans.
2023-09-12 11:01:38 +00:00
Markus Göllnitz
8bf601b6d5 universal-access: only store current icon them if not HighContrast activated
The panel tries to keep track of the icon theme in use
when HighContrast isn't. For that, it stores in
self->old_icon_theme. That is, however, always updated
when org.gnome.desktop.interface is touched, regardless
of whether HighContrast is already turned on.

Thus, it makes sense to check whether HighContrast is
selected in org.gnome.desktop.a11y.interface, and only
store the old_icon_theme under the condition
high-contrast wasn't selected.

fixes #2640

Signed-off-by: Markus Göllnitz <camelcasenick@bewares.it>
2023-09-12 11:01:02 +00:00
velsinki
026cefdaaf info-overview: Unselect system details label
As discussed in #2636, the value label for the CcInfoEntry was made
selectable in order for screen readers to work. However, this selects
the first label by default when opening the system details.

This is caused by gtk#4377, for which gnome-software found a workaround.
The same workaround is adapted here to unselect the label after
presenting the system details window.
2023-09-11 22:54:13 +00:00