1796 Commits

Author SHA1 Message Date
Laria Carolin Chabowski
32bff01780 style: Improve audio selection button icons/text contrast
They were white on not-quite-white before in light mode. Now the button
contents can be seem more easily.

See <https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/8236>

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3665>
2025-03-12 08:53:07 +00:00
Simon McVittie
6a16fc6e65 default-apps: Correct Nautilus' app ID
Fixes: fb289fa0 "data: Reorganize default apps"
Resolves: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/8230
Signed-off-by: Simon McVittie <smcv@debian.org>
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3662>
2025-03-05 12:40:16 +00:00
Daniel Rusek
f612f5975d data: Fix typo in App Grid apps
Add missing .desktop suffix

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3651>
2025-02-26 18:46:13 +00:00
Marco Trevisan (Treviño)
b6fea0cc91 theme: Improve theming of the login dialog auth list items
Render them as buttons, like we do with users

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3647>
2025-02-26 16:11:58 +00:00
Allan Day
fb289fa05d data: Reorganize default apps
* Remove obsolete apps
* Add new core apps
* Deduplicate apps which were in both the grid and a folder
* Split system tools out of the utilities folder
* Rearrange the dash a little

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3642>
2025-02-26 13:09:16 +00:00
Florian Müllner
c0e3dfd166 data: Add "System" default folder
The "Utilities" folder is potentially getting quite crowded,
so set up an additional "System" folder. It will be populated
in a follow-up commit.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3642>
2025-02-26 13:09:16 +00:00
AsciiWolf
33ea672605 data: Add org.gnome.Sysprof to Utilities
Sysprof is pre-installed on Ubuntu and possibly some other distributions,
and can be confusing for regular users. Let's add it to the curated list.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3616>
2025-02-14 14:57:43 +00:00
Florian Müllner
38c6293f4f data: Generate dash/app-grid defaults from text files
Defining default apps as serialized GVariants isn't very human-friendly,
which likely contributes to the fact that the lists are in parts horribly
outdated (Books! Cheese! Screenshot! gedit!).

Instead, generate the lists at build time from simple text files, which
should be much easier to update.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3632>
2025-02-13 19:59:17 +00:00
Florian Müllner
5115236703 loginManager: Get user proxy for UID
Using the user object at `/org/freedesktop/login1/User/self` is
convenient, but has the caveat that login1 does not emit the
`PropertiesChanged` signal for the object.

That is indeed logical, as for signal emissions there is no
sender that can be used to resolve `self`.

The new TimeLimitsManager depends on change notifications for
user properties, so stop using the `self` shorthand and instead
create the User proxy for the user's UID.

Related: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/8185
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3636>
2025-02-13 11:31:34 +00:00
Julian Sparber
b4113b1ee2 messageList: Highlight expanded group
The new design requires that other messages and groups are faded when the user
has a group expanded. This introduces a new GLSL shader to provide the
desired effect. The new shader is used for the already existing scroll
fade and the previous one is removed. The two fades need to work together to
ensure that resulting fade looks good.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3012>
2025-02-11 11:30:29 +00:00
Julian Sparber
47de83a922 messageList: Make notification groups expandable/collapsible
This implements the new expand/collapse feature for notification groups
according to the new notification designs [1].

[1] 9e2bed6f37/notifications-calendar/notifications-grouping.png

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3012>
2025-02-11 11:30:29 +00:00
Julian Sparber
219cd88c82 messageList: Add notification group
This add a widget for the new notification grouping
according to the new designs [1], but the expand behavior will be added
in a future commit.

[1] 9e2bed6f37/notifications-calendar/notifications-grouping.png

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3012>
2025-02-11 11:30:29 +00:00
Julian Sparber
996480908d messageList: Cleanup MessageView before adding new features
This removes some unneeded children, cleans up the API of the
MessageView and changes legacy coding style.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3012>
2025-02-11 11:30:29 +00:00
Julian Sparber
6e86110dfd messageList: Rename MessageSection to MessageView
For message grouping by source we need more control over the list of
messages to reflect this change rename the MessageSection to
MessageView. Message from different sources will be added to the
MessageView directly in a future commit.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3012>
2025-02-11 11:30:29 +00:00
Marco Trevisan (Treviño)
71da3048a1 status/powerProfiles: Use newer DBus API
Since some time the power-profiles-daemon project has been moved under
the upower umbrella and renamed its API to follow that.

While the legacy name is still supported, there are plans to not support
it anymore in future [2]. So let's update gnome-shell code to use the
current main name instead.

[1] https://gitlab.freedesktop.org/upower/power-profiles-daemon/-/merge_requests/148
[2] https://gitlab.freedesktop.org/upower/power-profiles-daemon/-/merge_requests/166

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3629>
2025-02-07 01:03:27 +01:00
Carlos Garnacho
e53f69f9d3 shellDBus: Add AcceleratorDeactivated D-Bus signal
Add this signal to complement AcceleratorActivated, meant to happen
on the release action of shortcuts, e.g. on push-to-talk.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3598>
2025-01-27 14:09:00 +00:00
Sam Hewitt
481625972b style: Fix fg color of user icon on dialogs
- use regular fg_color instead of OSD style

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/8151
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3596>
2025-01-21 16:52:33 +00:00
Sam Hewitt
fa16d4dc91 style: Fix background fill on tile_buttons
- addresses issue with tiles overlapping each other in the grid

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7577
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3551>
2025-01-14 16:52:15 +00:00
Philip Withnall
3bc3a4da68 dbus-interfaces: Expose more properties from o.fd.login1.User
These will be used in an upcoming commit to track the user’s session
state.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3397>
2025-01-13 14:24:01 +00:00
Sam Hewitt
038b06d868 style: Adjust the focus logic to accommodate accent color
- adjust definitions for focus/accent related colors
- rework the focus mixins to better match how libadwaita handles accent color and focus

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7989
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3552>
2025-01-10 18:31:38 +00:00
Sam Hewitt
4a89811211 style: Tweak menuitem drawing function to fix hover color
- drop the flat style if statement, since it's unused/redundant
- use same style for hover, selected and checked

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7939
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3552>
2025-01-10 18:31:38 +00:00
Sam Hewitt
256e9d7925 style: Sync warning color with libadwaita
Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7863
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3552>
2025-01-10 18:31:38 +00:00
Sam Hewitt
c072f7c10c style: Sync base grey colors with libadwaita
Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/8058
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3552>
2025-01-10 18:31:38 +00:00
Sam Hewitt
eeddf49371 style: Improve the styles for the separation in quick setting buttons
- remove the highlighting js in favour of color definitions, to fix it not really working in light theme or high contrast
- add a bunch of color definitions to set the color of the menu button in the different styles
- drop the border drawing for a separator, to fix visual issues with the high border radius, in favour of a separator element
- change the class names of some things to make it understandable
- bit of overall css tidying

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3554>
2025-01-10 18:22:09 +00:00
Sam Hewitt
f9b231beb3 style: Clean up the keyboard stylesheet
- remove a lot of unused styles and deprecated class definitions
- fix the padding and spacing of subkeys popover
- fix the lack of vertical padding on word-suggestions

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3553>
2025-01-10 17:58:15 +00:00
Sam Hewitt
b73159f414 keyboard: New and updated symbolic assets
- renamed all assets to start with osk- disambiguate them from other keyboard status icons
- updated the design of hide, enter and keyboard layout icons to be more rounded
- new symbolic assets for emoji and delete actions to move away from using 16x16
- updated keyboard scss to use the scalable icon definition
- updated the zwnj asset to align with GNOME icon style
- changed all references to icons in layouts

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3555>
2025-01-10 14:22:01 +00:00
AuralRay
2c9e75252a style: Tweak ibus popover border radius
Both the popover padding and the radius of candidate items
is smaller than in "normal" popovers. Adjust the radius
of the candidate popup accordingly to better match the items.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3584>
2025-01-08 10:30:07 +00:00
Jakub Steiner
e55820cb1f data: Ship local copy of a cog wheel icon
Closes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/8135

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3589>
2025-01-06 22:10:54 +00:00
Florian Müllner
58a1e000fa animation: Use new spinner content
Change the dedicated Spinner widget to use the corresponding content
instead of subclassing AnimatedIcon with appropriate assets.

Other than the changed class hierarchy, the public API stays the
same, so the impact on callers should be minimal.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/8055
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3565>
2024-12-24 15:37:20 +00:00
Florian Müllner
5d8905c5c7 data: Really strip .desktop suffix from folder directory
Commit 730fcf34e9 was meant to strip the .desktop suffix from the
desktop directory file, but failed to actually do so: The replace()
method is called on the string parameter before it is passed to
the meson command which substitutes `@BASENAME@`, so it doesn't
have any effect at all.

Really fix the issue by providing the full output name.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3567>
2024-11-29 19:49:02 +01:00
Philip Withnall
df3b4d302d breakManager: Add new state machine for screen time/health breaks
This implements health break reminder support in gnome-shell. It depends
on a
few bits and bobs from other modules:
 - New settings schemas in gsettings-desktop-schemas (released in
   47.beta, which Mutter already depends on)
 - A settings UI in gnome-control-center
 - User documentation in gnome-user-docs

It implements the design from
https://gitlab.gnome.org/Teams/Design/settings-mockups/-/blob/master/wellbeing/wellbeing.png.

The core of the implementation is `BreakManager`, which is a state
machine which uses the Mutter `IdleMonitor` to track whether the user
is, or should be, in a screen time break.

The `BreakDispatcher` is based on top of this, and controls showing
notifications, countdown timers, screen fades, the lock shield, etc. to
make the user aware of upcoming or due breaks, as per their notification
preferences.

Unit tests are included to check that `BreakManager` works. These
provide mock implementations of basic GLib clock functions, the
`IdleMonitor` and `Gio.Settings` in order to test the state machine in
faster-than-real-time.

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

See: https://gitlab.gnome.org/Teams/Design/initiatives/-/issues/130
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3251>
2024-11-28 10:44:10 +00:00
Sam Hewitt
6912d31068 style: Improve contrast of empty notifications tray message
- lower how opaque the text is for the message
- redraw the icon asset to be outline as to make it feel less heavy at the brighter color

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7852
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3557>
2024-11-22 12:33:45 -03:30
Jonas Dreßler
7a4c971831 osk-layouts: Always use "delete" action for backspace in extended layouts
The extended-us layout is currently using actions/keyvals inconsistently for
its backspace keys, use the "delete" action consistently, just like we do in
all other OSK layouts (including the newly added za-extended layout).

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3549>
2024-11-17 20:19:27 +01:00
Florian Müllner
730fcf34e9 data: Strip .desktop suffix from folder directory
Desktop directories use .directory as suffix, not .directory.desktop.

The suffix is still needed for the source file, so xgettext and
damned lies can correctly infer the type, but strip it from the
output file.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3541>
2024-11-13 10:26:00 +00:00
Pablo Correa Gómez
152faae6f9 data: Add X-GNOME-Shell-Utilities.directory file to allow showing real name
Instead of having the name of the directory be X-GNOME-Utilities. This
also allows translating the name to the user's language. The name is
chose to be different to X-GNOME-Utilities from GNOME Menus.

In the process, also remove the categories. The menu definition from
gnome-menus is not used, and it's not a category that apps list
themselves, so it's completely unused anyway.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3526>
2024-11-04 20:46:29 +01:00
Florian Müllner
5b26b75137 style: Also restore padding for all password entries
Quoting Sam:
  "It is meant to be a general property of password entries
  (same as on .run-dialog-entry) and should be restored harder also."

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3514>
2024-10-18 14:42:16 +02:00
Florian Müllner
e8265c17dc style: Restore password entry width harder
Commit ee0538807 restored the fixed password entry width, but only
for entries nested under .prompt-dialog-password-layout. That
does not include the network secret dialog, so go back to the
original styling prior to commit 8d065b558e where the width
is set for all password entries, and the mount operation overrides
it with a more specific rule.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3514>
2024-10-18 12:20:59 +00:00
Florian Müllner
ee05388071 style: Restore password entry width
Commit removed the fixed width that is used by polkit/keyring
prompts, with the result that the entries now start at their
natural size, and grow as text is entered.

Restore the original behavior, but nest the style under
.prompt-dialog-password-layout (polkit/keyring) to better
differentiate it from entries under ..prompt-dialog-password-grid
(mount operations).

Fixes: 8d065b558e ("style: Clean up dialogs stylesheet to fix layout issues")
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3511>
2024-10-17 19:39:23 +02:00
Sam Hewitt
37e5b31408 style: Saner padding and margins in notification headers
Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7920
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3486>
2024-10-16 16:52:41 +00:00
Sam Hewitt
8d065b558e style: Clean up dialogs stylesheet to fix layout issues
- remove unnecessary dialog type-specific padding, spacing and margin definitions that led to layout to problems
- bump the size of user avatar in authentication dialog
- nest css classes in the sass to better reflect the structure of dialog elements
- sync style of audio device selector with switcher-popup style
- sync text and padding styles with other elements
- fix incorrect button order in audio selection dialog

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7876
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3473>
2024-10-16 16:41:40 +00:00
Alessandro Bono
647747fbd6 loginDialog: Get username directly from the conflicting session
The conflicting session is owned by the same user per definition.
Use the Name property of the conflicting session to get the
username instead of assuming that `this._user` is defined and
passing the username around.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3448>
2024-08-20 12:38:41 +02:00
Alessandro Bono
a80ad53500 org.freedesktop.login1.Session: Sort alphabetically
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3448>
2024-08-20 12:38:41 +02:00
Sam Hewitt
a32f735ec0 style: Use unlinked rounded buttons for notifications
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3427>
2024-08-02 13:37:44 -02:30
Sam Hewitt
ff4b9fdb08 style: Use unlinked rounded buttons for notifications
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3383>
2024-08-02 15:16:46 +00:00
Florian Müllner
1403747863 build: Add option to disable portal-helper
The portal login window uses WebKit, which is a security-sensitive
component that not all vendors want to support.

Support that case with a build option, and update the captive
portal handler to use the user's default browser if the portal-helper
is disabled.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3408>
2024-07-25 01:51:17 +00:00
Sam Hewitt
94181ea999 style: Text and icon weight adjustments
- bump the font weight of the clock
- lower the font weight of user names
- adjust avatar weight

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3410>
2024-07-19 18:45:44 +00:00
Sam Hewitt
fc39c32324 lookingGlass: Clean up the stylesheet and improve visuals overall
- shuffle stylesheet around for readability
- change names and classes of elements to be consistent
- added style classes to window list elements so they can be styled
- make sure all elements follow OSD style even in light theme
- clean out some old styles

Fixes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7746
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3412>
2024-07-11 19:00:29 +00:00
Sohrab Behdani
459981ef79 osk-layouts: Fixed Persian OSK
Remove duplicate and unnecessary keys, and add missing ones
(e.g. ZWNJ).

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3409>
2024-07-11 18:34:25 +00:00
Florian Müllner
6f2c99147c lookingGlass: Stop setting font programmatically
Instead, use CSS to request a monospace font selectively where
it makes sense (the evaluator).

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7776
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3413>
2024-07-11 19:27:08 +02:00
Julian Sparber
6e0227ac3d GtkNotificationDaemon: Add ActionInvoked signal
For the notification portal we need to provide the option to use unexported
actions.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3382>
2024-07-11 12:32:33 +00:00