-
Notifications
You must be signed in to change notification settings - Fork 8.5k
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 account
Display current tab's icon as a badge on the taskbar icon #1871
Comments
Is it even possible to change the taskbar icon for an exe at runtime? |
I believe the taskbar icon matches the window's icon, which you can change at runtime. |
Outlook does, and I've seen other (non-UWP) apps do it to implement faux-badging too. That being said, I prefer the current static icon approach. |
I feel a configuration switch coming on... |
I'm inclined to just say "nah." |
I'm inclined to just say "this can actually be pretty useful" and stick it on the backlog. Thanks! |
How do they look downscaled to the size of the taskbar buttons? Are the adornments even visible any more? |
This might not be possible
|
I looked into this before and found some information that may be pertinent here:
Basically, you can't update the taskbar icon at runtime unless you've disabled pinning. |
No big deal. I don't have much of anything pinned. |
There does exist a win32 api for adding overlay icons to the taskbar button which could be used for this ITaskbarList3::SetOverlayIcon. |
@dsafa -- the API doesn't allow arbitrary overlays: There's a fixed list. We could emulate what you show by replacing the entire icon though, under certain conditions. |
With the UWP badges I do see the restrictions. However, with the older desktop api it does appear to be able to support arbitrary icons. The screenshot is from a quick implementation using a hardcoded image. |
Chiming in... I think this option request is super useful. An alternative is to be able to set up icons for shortcuts that would display in the taskbar. Which currently doesn't work with
|
This should help: https://devblogs.microsoft.com/oldnewthing/20130211-00/?p=5283 |
(not my best walkthrough, but a start) Look at
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
xlink: #4768 (comment) has the most comprehensive summary of the problem space |
This feature would greatly enhance usability by allowing users to quickly identify the active tab through taskbar icons, especially for those managing multiple profiles and sessions simultaneously. Implementing this could also be configurable, giving users the option to enable or disable this feature based on personal preference. I agree that caching HICONs for repeated icons is a smart optimization to avoid unnecessary re-generation. The complexity around web URL icons can be handled in future iterations, but for now, supporting local and packaged icons should cover most cases. |
I can assign individual icons for each profile, and each tab I open for said profile has that profile's icon on the tab. HOWEVER, the taskbar "button" has the primary app icon on it, which isn't as helpful as having the currently active tab's icon instead. The correct icon provides a visual cue on which taskbar button is "my" button I'm looking for.
Proposed technical implementation details (optional)
The text was updated successfully, but these errors were encountered: