You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Display current tab's icon as a badge on the taskbar icon #1871
Area-UserInterfaceIssues pertaining to the user interface of the Console or TerminalHelp WantedWe encourage anyone to jump in on these.Issue-FeatureComplex enough to require an in depth planning process and actual budgeted, scheduled work.Product-TerminalThe new Windows Terminal.
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.
Reacted by Richard Cox, tommymaynard, Bruce Johnson, Shimmy Weitzhandler, Srdjan Jovčić, maf1024, Patrick Nelson, Michael Kruse, Rui Lopes, ClauS and 6 more
Reacted by David Teresi, Nathan Kasco and Dmitry Kuznetsov
Reacted by tommymaynard, Bruce Johnson, Nick Piercy, Patrick Nelson, Laurier Lavoie-Giasson, Violet Hansen, Adam Rose, Xyloflake, Asaad Mohammed, dylanchu and 1 more
Add a global showTaskbarOverlay setting, that's a bool, to MTSMSettings.h
Plumb the profile icon path up from TerminalPage -> AppHost, whenever the active pane changes.
This should just be a PropertyChanged event, ala TitlebarBrush, FrameBrush.
What happens when the icon is a Web URL?
We probably just have to say that these won't work for now. I looked into BackgroundDownloader, but seemingly didn't work for packaged centennial apps.
What about ms-appx URIs?
Take the code from dev/migrie/f/4768-taskbar-icons, and move that into IconPathConvertersomewhere. It needs a LOT of cleanup.
IconPathConverter is in terminal.settings.model. We need to use this up at the Window level, and that doesn't reference T.S.M.
_getIconIndex probably needs to get pulled out to a helper.
Don't do raw COM like that, use smart pointers.
Make sure that it works unpackaged.
Use smart pointers for the HICON et al.
Should we cache these HICON's in a map in the AppHost, so if we see the same URI again, we skip the generation? PROBABLY
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.
Hi! Is anyone working on this? I have a small prototype working, but wanted to make sure no one's already working on this first or if there are other plans. Also had a few questions about what to do with glyph icons (settings, remote machine, etc) and split panes.
2025-12-23.18-37-11.mp4
Reacted by James Holderness, Dan Thompson, Piotr Przybylski, Mike Griese, ChesuCR, Oisin Grehan, Syrme, dylanchu, johnkw and Stanislav Popov
William Zhang (@Aliremu) this is amazing! feel free to work on it and maybe eventually PR it - we can discuss it over there :)
IMO, we should be able to get a pretty quick handle on a rendering context that'll let us rasterize glyph and emoji icons; split panes will be something else entirely (and something I have long wished to expose better in the UI overall) and probably need some design aforethought
Area-UserInterfaceIssues pertaining to the user interface of the Console or TerminalHelp WantedWe encourage anyone to jump in on these.Issue-FeatureComplex enough to require an in depth planning process and actual budgeted, scheduled work.Product-TerminalThe new Windows Terminal.
Activity
zadjii-msft commentedon Jul 8, 2019
Is it even possible to change the taskbar icon for an exe at runtime?
dave-c-whitney commentedon Jul 8, 2019
I believe the taskbar icon matches the window's icon, which you can change at runtime.
fredless commentedon Jul 8, 2019
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.
dave-c-whitney commentedon Jul 8, 2019
I feel a configuration switch coming on...
DHowett-MSFT commentedon Jul 8, 2019
I'm inclined to just say "nah."
DHowett-MSFT commentedon Jul 11, 2019
I'm inclined to just say "this can actually be pretty useful" and stick it on the backlog. Thanks!
12 remaining items
AnuthaDev commentedon Jun 21, 2020
This should help: https://devblogs.microsoft.com/oldnewthing/20130211-00/?p=5283
zadjii-msft commentedon Jul 26, 2021
(not my best walkthrough, but a start)
Look at
dev/migrie/f/4768-taskbar-iconsfor a start here. That's got code for making HICONs out of image files.showTaskbarOverlaysetting, that's a bool, toMTSMSettings.hTerminalPage->AppHost, whenever the active pane changes.PropertyChangedevent, alaTitlebarBrush,FrameBrush.BackgroundDownloader, but seemingly didn't work for packaged centennial apps.ms-appxURIs?dev/migrie/f/4768-taskbar-icons, and move that intosomewhere. It needs a LOT of cleanup.IconPathConverterIconPathConverteris in terminal.settings.model. We need to use this up at the Window level, and that doesn't reference T.S.M._getIconIndexprobably needs to get pulled out to a helper.HICON's in a map in the AppHost, so if we see the same URI again, we skip the generation? PROBABLYvemundha commentedon Jul 28, 2021
zadjii-msft commentedon Jul 28, 2021
zadjii-msft commentedon Apr 28, 2023
xlink: #4768 (comment) has the most comprehensive summary of the problem space
kiruthikpurpose commentedon Oct 21, 2024
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.
Aliremu commentedon Jan 20, 2026
Hi! Is anyone working on this? I have a small prototype working, but wanted to make sure no one's already working on this first or if there are other plans. Also had a few questions about what to do with glyph icons (settings, remote machine, etc) and split panes.
2025-12-23.18-37-11.mp4
DHowett commentedon Jan 21, 2026
William Zhang (@Aliremu) this is amazing! feel free to work on it and maybe eventually PR it - we can discuss it over there :)
IMO, we should be able to get a pretty quick handle on a rendering context that'll let us rasterize glyph and emoji icons; split panes will be something else entirely (and something I have long wished to expose better in the UI overall) and probably need some design aforethought
zadjii-msft commentedon Jan 21, 2026
That demo is awesome, ship it
oising commentedon Jan 23, 2026
Beautiful! Great job, William Zhang (@Aliremu) !