Repository navigation
Conversation
Shows a red count badge on a pinned group's taskbar button, and a dot on the app inside the popup, when an app in the group has notifications. Apps that live only inside a group no longer hide their unread state. - Detection (read-only, counts only, nothing stored but last-seen times): the Windows notification store (unseen Action Center toasts and app badge counts, via the built-in winsqlite3.dll) and window-title counts such as "3 new items" or "(3) Discord", including tray-hidden windows. A badge clears when the app is focused or launched from the group. - Display: click-through layered windows over the taskbar buttons, located through UI Automation. Pinned shortcuts are never modified, because Windows 11 does not reliably repaint a pinned shortcut whose icon changes. On taskbars where the buttons can't be found, nothing is drawn and one line is logged. - Settings > Others > Notification badges toggle (on by default). - --badge-diag and --badge-overlay-test command-line diagnostics. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #124
Shows a red count badge on a pinned group's taskbar button, and a dot on the app inside the popup, when an app in the group has notifications.
What changes
NotificationBadgeManager.cs(new)--badge-diagTaskbarBadgeOverlay.cs(new)App.xaml.csPopupWindow.xaml.csSettingsHelper.cs,SettingsDialog.xaml(.cs)ShowNotificationBadgessetting (default on) and its toggleProgram.cs--badge-diag(writesBadges\diag.txt) and--badge-overlay-test [sec](shows sample badges, changes nothing)AppGroup.csprojInterop.UIAutomationClientpackageFitting the planned modular architecture
Thanks for being open to this. On your note about making features more modular: the feature is already mostly self-contained, so it should be easy to lift out.
App.xaml.cs, the setting, the CLI flags, and the dot inPopupWindow.xaml.cs.appgroups.json, the pinned shortcuts, and Windows' notification sources.Changedevent andMarkItemSeen. In a separate component, that would become a small message between processes.Adapting it however suits the new design is completely fine with me. I'm also happy to restructure it myself once the new architecture lands.
Detection (read-only)
%LOCALAPPDATA%\Microsoft\Windows\Notifications\wpndatabase.db). It's opened read-only through Windows' ownwinsqlite3.dll, so no new native dependency. It provides toasts that arrived after the app was last focused or launched, plus app badge counts (Phone Link, Mail, and so on).... - 3 new items - Slackor(3) Discord.To match a group's items to notifications, it uses each shortcut's app ID, the package name for Store apps, and Edge's app ID for website notifications. A badge clears when you focus the app, launch it from the group, or the app clears its own count. Only per-app last-seen times are stored, in
Badges\seen.jsonunder the data folder.Why an overlay instead of changing the pinned icon
Windows 11 doesn't reliably redraw a pinned shortcut after its icon changes. I tried the usual shell refresh calls, and only an Explorer restart worked every time. So the pinned shortcuts are never touched. The badge window is click-through, never takes focus, and has no taskbar entry. It follows its button as the button moves, and hides when the taskbar auto-hides or a full-screen app covers it.
Limitations
Taskbar.TaskListButtonAutomationPeer. If either changes, nothing is drawn and one line is logged toBadges\badges.log.Testing
Tested on Windows 11 (build 26300):
Built with the help of Claude Code; I reviewed and tested the changes.