Commit graph

832 commits

Author SHA1 Message Date
Felipe Borges
1c0fef5718 panel-list: Reorder panel list
This also drops the Categories as a criteria for creating the sidebar
list separators. Now the "panel_order" array will include entries named
"separator" to indicate where a separator should go.

See https://hedgedoc.gnome.org/FLcx6argT6uycE3An7uaxw
2024-01-22 09:47:00 +00:00
Sabri Ünal
1d1f95bb4d appdata: Improve appdata for AppStream 1.0
- Add the `<developer><name>` tag
- Mark the `<developer_name>` tag as deprecated
- Add appstreamcli validation
- Fix release version warnings
- Remove one of the custom Purism tag to pass the validation test
2024-01-08 15:48:19 +00:00
Hari Rana
03f7a6c8f0 about: Set copyright holder
The copyright year was retrieved by running `git log --reverse`, and picking the first commit (3c03b47392).
2024-01-08 14:01:51 +00:00
Felipe Borges
d52ec68f8d system: Add "Users" panel
This moves the UserAccounts panel to a page in the System panel.

This simplifies a lot of the existing code in the UserAccounts panel.

I did minimal changes to the sub dialogs so that those can be touched
in following changes, making it easier to review this one alone.

The main panel widget is now CcUsersPage, and is an AdwNavigationView
widget that has a default "current_user_page" page. Each page is a
CcUserPage (careful with the one-character difference between these
two classes).

Each CcUserPage has an associated ActUser object.
2024-01-08 13:59:26 +01:00
Hari Rana
2a75af4d48 primary-menu: Add mnemonics 2024-01-02 08:58:13 +00:00
Felipe Borges
a6538b26e1 appdata: Add "help" address
So that we can show the "Support Questions" row in AdwAboutWindow.
2023-12-01 13:06:43 +01:00
Felipe Borges
ff9dc202a7 shell: Add translator-credits string to About dialog
This mechanism will allow for translations to propagate their
credits to the UI.
2023-12-01 13:06:41 +01:00
Felipe Borges
24435a6178 appdata: Use GPL-2.0-or-later for license
GPL-2.0+ is a deprecated SPDX id.

This way AdwAboutWindow can use the license field to populate
the "Legal" page of the About dialog.
See https://gitlab.gnome.org/GNOME/gnome-control-center/-/merge_requests/2071#note_1932772
2023-12-01 13:04:58 +01:00
Felipe Borges
52638c9f46 shell: Add About dialog
Fixes #834
2023-12-01 13:00:00 +01:00
Automeris naranja
c3bcaa4559 style: Add styling for custom status page 2023-11-29 10:17:47 +00:00
Felipe Borges
71ea77dc2d shell: Check for unsupported environments after handling --version
So that remote connections can run gnome-control-center --version for
debugging purposes.

Fixes #2739
2023-11-29 10:07:47 +00:00
Maximiliano Sandoval R
52a78a5404 window: Set the main window height request to 294
This is the size you get on a mobile screen on landscape mode. See
https://gnome.pages.gitlab.gnome.org/libadwaita/doc/main/migrating-to-breakpoints.html.
2023-11-24 09:42:17 +00:00
Hari Rana
9e9f7c4633 warning: Port warning dialog to AdwMessageDialog 2023-11-21 02:58:14 +00:00
Automeris naranja
58774764d0 cc-panel-list: Use AdwStatusPage when showing "No Results Found" 2023-11-13 09:48:45 +00:00
Gotam Gorabh
3bb233b50a system: Add 'Date Time' panel to system panel
Adds Date Time panel to the system panel as a page.

https://gitlab.gnome.org/Teams/Design/settings-mockups/-/blob/master/system/system-panel.png

See #2241
2023-11-02 12:15:11 +00:00
Felipe Borges
fb13e45aba system: Add "About" page 2023-11-02 12:15:11 +00:00
Gotam Gorabh
72973b9a8a system: Add 'Region Language' panel to system panel
Adding Region & Language page to the system panel.

https://gitlab.gnome.org/Teams/Design/settings-mockups/-/blob/master/system/system-panel.png

See #2241
2023-11-02 12:15:11 +00:00
Gotam Gorabh
5a92981056 system: Add new Sytem panel
This is the basic panel structure which will contain the
pages for the "System" panel, per mockups in
https://gitlab.gnome.org/Teams/Design/settings-mockups/-/blob/master/system/system-panel.png

See #2241
2023-11-02 12:15:11 +00:00
Felipe Borges
7ffdb1c5b9 appdata: Update contact url to point users to Discourse
The mailing list is now dead.

See #1158
2023-10-20 12:58:49 +02:00
Sabri Ünal
30eed4a66e appdata: add vcs-browser support and more
vcs-browser URL is visible on Flathub and GNOME Control Center.

Also:
- Update donation URL
- Add a homepage

More information: https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html#tag-url
2023-10-20 12:57:31 +02:00
Marco Melorio
e6ac0b8eed panel: Remove unused and undefined declarations 2023-10-12 10:09:44 +02:00
Marco Melorio
d91f9381f9 misc: Remove unused variables 2023-10-12 10:09:44 +02:00
Automeris naranja
bc8eed3eca help-overlay: Remove "CTRL+S" and include "CTRL+F"
CTRL+S is no longer a shortcut to trigger search ever since
https://gitlab.gnome.org/GNOME/gnome-control-center/-/merge_requests/1609,
because is a shortcut reserved for saving a file/content:
https://developer.gnome.org/hig/reference/keyboard.html

Also, CTRL+F, which is the shortcut recommended by HIG to trigger search,
already triggered the search bar in Settings prior to change that removed CTRL+S.
However, this shortcut was absent from the shortcuts window.
2023-10-03 11:57:22 +00:00
Marco Melorio
7b8a756a57 shell: Remove unused "sidebar-activated" signal from CcPanel 2023-09-22 11:45:02 +00:00
Marco Melorio
e413f3fd91 shell: Remove unneeded custom title-widget in main window
It was using the same title that was already defined in the
AdwNavigationPage of the sidebar.

Also remove some unneeded template bindings.
2023-09-22 11:45:02 +00:00
Marco Melorio
3d04632554 shell: Remove AdwNavigationView from the sidebar
We don't need it anymore now that we removed support for sidebar
subpages.
2023-09-22 11:45:02 +00:00
Marco Melorio
46021b152d shell: Remove sidebar subpages support from panels
They are now unused and they should not be used anymore in new panels.
2023-09-22 11:45:02 +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
Felipe Borges
e4d0d5abf9 45.0 2023-09-15 12:05:03 +02:00
Felipe Borges
4522098556 Use g_printerr to message that we only support GNOME environments
Instea of g_messages that only gets shown when debug messages are
enabled.

Fixes #2532
2023-09-01 09:56:21 +00:00
Felipe Borges
21dfe16df6 shell: Drop two leftover/unused variables
These were made useless by commit 754536cc97
2023-08-30 10:52:37 +02:00
Nelson Benítez León
2b3c157c07 shell: fix panel centering on CcPanelList
the calculation to center the panel row
was failing when the panel list was not
scrolled to the top.

Fix it by taking the distance from the
row to the CcPanelList, instead of the
GtkScrolledWindow that contains it.

Part of issue #2506
2023-08-30 08:49:12 +00:00
Nelson Benítez León
3f3409cbc1 shell: restrict panel centering to specific cases
commit 02302c9b08 implemented vertical centering of
the panel being activated, but we should restrict
that to only happen when the activation is from the
Search view or from the set_active_panel_from_id()
CcShell iface, which covers the case of panel activated
from commandline parameter or from other panels, but
does not include activating panels manually by mouse
or keyboard which is the problematic case explained
in issue #2506

Closes #2506
2023-08-30 08:49:12 +00:00
Alice Mikhaylenko
1006f85223 window: Null check panel before embedding its sidebar widget 2023-08-28 08:19:45 +00:00
Felipe Borges
c065cdda5a 45.rc 2023-08-25 11:39:43 +02:00
Alice Mikhaylenko
4e75534b2e Port sidebar widget to AdwNavigationView 2023-08-25 08:00:43 +00:00
Alice Mikhaylenko
4680f362f3 Port to AdwNavigationSplitView 2023-08-25 08:00:43 +00:00
Felipe Borges
9776593365 45.beta 2023-08-07 13:29:43 +02: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
Felipe Borges
6b4b478402 applications: Fix crash when loading as last-used panel
Let's call update_headerbar_buttons only after the panel
has been loaded.

Fixes #2590
2023-08-02 12:51:22 +00:00
Nelson Benítez León
c2ef0f6e5e shell: prevent loading last-panel unconditionally on startup
We currently load the last-panel every time gnome-control-center
is launched, we do it from the CcWindow contructor method.

But we shouldn't do it when we are explicitly opening a different
panel by eg. using commandline parameter (gnome-control-center keyboard)
or from a DBus method, because otherwise we slow things down by
unnecesarily start launching last-panel just to be cancelled
moments later when the code starts processing the other panel.

We fix it by moving the code that loads last-panel to an idle
handler, so by the time it gets executed the other panel has
already started loading, and we can check for that with the
cc_panel_list_get_current_panel() function we add in this patch.

With this patch, I can feel that panels opened from a
gnome-shell search are presented faster.

Fixes issue #2569
2023-07-18 09:28:29 +00:00
Lukáš Tyrychtr
7cee2a8ec1 panel-list: Set labelled by/described by relations for the panel list explicitly
After GTK changed how it computes nmes, we need an explicit relations to keep
the panel list accessible. And, as a bonus, we now expose the descriptions as well.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-control-center/-/merge_requests/1834>
2023-06-28 02:02:00 +00:00
sunflowerskater
266c55715a general: Add tooltips to headerbar controls
Acc. HIG, "controls in the header bars of primary windows should all have tooltips".

https://developer.gnome.org/hig/patterns/feedback/tooltips.html
2023-06-06 13:27:00 +00:00
Nelson Benítez León
68227b0dab shell: improve key nav between search entry and results list
Improve keyboard navigation with Up/Down arrow keys between
Search entry and the search results list.

Pressing Arrow Down in search entry will now move focus
to search list, and when pressing Arrow Up on the first
list result will move back focus to Search entry.
2023-06-06 13:01:23 +00:00
Pablo Correa Gómez
7f7b65545c all: meson: do not specify resources from gresource files as dependencies
Meson extracts them by itself and add them as dependencies for the target.
It means one less location to keep track of files, and a lot less boilerplate
around the meson files
2023-05-24 08:34:14 +00:00
Nelson Benítez León
ce42d320b5 shell: fix visibility check for rows and avoid empty searches
When pressing ENTER (i.e. activating) a search with no
results ("No results found") the first Wifi panel was
being activating, that's wrong because cc_panel_list_activate()
should activate the first visible panel, but there are
no visible panels at the moment (No results found page is shown)

The problem was the visibility check in cc_panel_list_activate()
was incomplete and so it wrongly thought panels were app visible.

Part of #2119 (comments 4th and 5th)
2023-05-23 14:30:49 +01:00
Nelson Benítez León
e95669d94d shell: avoid activating panel from an empty search
Avoid activating a panel when doing an empty search
i.e. clicking ENTER without having entered
any text in the search entry.

We should do nothing in this case, we fixed it by
detecting for this case when an activation happens
when there's still no search results view in place.

Closes #2119
2023-05-23 14:29:49 +01:00
Nelson Benítez León
02302c9b08 CcPanelList: center sidebar row when activating a panel
When activating a panel from Search or from commandline
let's scroll the sidebar so the row for that panel is
revealed and vertically centered on the list.

Closes #2098
2023-05-16 08:24:52 +00:00
Nelson Benítez León
754536cc97 CcPanelList: don't activate first row panel unnecesarily
Don't activate first row panel (i.e. 'Wifi') when:
 - Canceling search view (pressing ESC or deleting all query text).
 - Activating a search result from search view.

Closes #2472
2023-05-11 14:45:10 +00:00