8000 GWL: add notification badges to panel icons by fredcw · Pull Request #12569 · linuxmint/cinnamon · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

GWL: add notification badges to panel icons #12569

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your a 8000 ccount

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

fredcw
Copy link
Contributor
@fredcw fredcw commented Dec 12, 2024

Continuing on from the great work by @romario-07 in #12561 this adds a different color notification badge on the right of the icon and both badge sizes are adjusted automatically to the size of the icon. The "Show window count numbers" config option is removed as it seems fairly pointless.

@clefebvre @mtwebster Is this too late for the beta?

28px panel:
Screenshot from 2024-12-12 07-40-46

40px panel (Mint default):
Screenshot from 2024-12-12 07-40-55

48px panel:
Screenshot from 2024-12-12 07-41-15

The issue mentioned in this comment is fixed.

In Mint-Y, 40 px:
Screenshot from 2024-12-12 07-56-51

closes #10124

Edit: Changed window count badge to bottom left and adjusted notification color:

Screenshot from 2025-04-27 16-25-31

@clefebvre
Copy link
Member

Yes, new features don't go in past BETA.

@clefebvre clefebvre changed the title GWL: add notification badges to panel icons [Next] GWL: add notification badges to panel icons Dec 19, 2024
@anaximeno
Copy link
Contributor

I don't know if I like the two numbers side by side (it excludes a big portion of the top of the icon and presents two conflicting pieces of information side by side, requiring more effort than necessary to interpret the values since they are very close, despite having different colors). We could try to think of a better way to present that information until the next merge period for the next release.

@Secret-chest
Copy link
Contributor

The "Show window count numbers" config option is removed as it seems fairly pointless.

Why? I'm not using a phone OS

@clefebvre clefebvre changed the title [Next] GWL: add notification badges to panel icons GWL: add notification badges to panel icons Feb 24, 2025
@mtwebster mtwebster requested review from Copilot and rcalixte April 25, 2025 12:20
Copy link
@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds new notification badges for panel icons by introducing a separate badge for notifications along with the existing window count badge and removes the "Show window count numbers" configuration. Key changes include:

  • Passing a new desktopEntry hint to notifications in both notificationDaemon.js and messageTray.js.
  • Adding event handling for notification updates in workspace.js.
  • Overhauling the appGroup.js code to support separate badges for windows and notifications.

Reviewed Changes

Copilot reviewed 5 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
js/ui/notificationDaemon.js Updated notification creation to include the desktopEntry hint.
js/ui/messageTray.js Extended Notification class and documentation to support desktopEntry.
files/usr/share/cinnamon/applets/grouped-window-list@cinnamon.org/workspace.js Added connection to notify-applet-update and a new notificationReceived handler.
files/usr/share/cinnamon/applets/grouped-window-list@cinnamon.org/applet.js Removed the obsolete updateWindowNumberState function.
files/usr/share/cinnamon/applets/grouped-window-list@cinnamon.org/appGroup.js Modified badge layout and introduced methods for updating notification and window count badges.
Files not reviewed (3)
  • data/theme/cinnamon-sass/_colors.scss: Language not supported
  • data/theme/cinnamon-sass/widgets/_windowlist.scss: Language not supported
  • files/usr/share/cinnamon/applets/grouped-window-list@cinnamon.org/settings-schema.json: Language not supported

@fredcw
Copy link
Contributor Author
fredcw commented Apr 27, 2025

@anaximeno How about in opposite corners.

Screenshot from 2025-04-27 16-25-31

I can't think of anything else that will work with all themes except badges.

@anaximeno
Copy link
Contributor
anaximeno commented Apr 27, 2025

@anaximeno How about in opposite corners.

Screenshot from 2025-04-27 16-25-31

It looks better this way you did it now, in my opinion. Good choice.

I can't think of anything else that will work with all themes except badges.

Yeah, the options are limited thanks to that.

@mtwebster mtwebster requested a review from clefebvre April 28, 2025 16:22
and remove "Show window count numbers" config option.
@fredcw fredcw force-pushed the gwlnotifications branch from 1235bc4 to b33185a Compare April 29, 2025 05:09
fredcw added 2 commits May 1, 2025 06:08
...so that they're also removed from notifications applet and other instances of GWL applet
 + decrement badge when individual notifications are destroyed.
 + add 'notification' role in case notifications applet not running
 + ensure all instances of an app have the same notification count.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Request] Notification badges on dock app icons
4 participants
0