-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Allow changing the taskbar icon #7076
Comments
It's not possible to change the taskbar icon in UWP apps. They always use the icon specified in their package manifest including desktop bridge apps. |
Okay well, this is technically different than "Display current tab's icon as a badge on the taskbar icon #1871" and "Display current tab's icon as the taskbar icon #6556". Those threads both cover more of the technical aspects of why this may or may not be possible. I suppose I'm open to the idea of allowing the user to customize the icon, though I'd love to see how it works in practice. |
@zadjii-msft Badges are possible but replacing the icon with something else can't be done in a packaged app. |
Do we have some source on that? I'd love to update the other threads with the relevant info, and file a dependency on the platform to get that restriction relaxed |
If "Author" in "Needs-Author-Feedback" means me, then I'm afraid I don't really have much to add, as I'm not really knowledgeable in the app-making field. I just wanted to suggest that cause I love Windows Terminal, Windows itself, and the people working on these; and I think it'd be very nice if that tiny bit of customization was possible. I made this issue/feature/suggestion cause I couldn't find (when searching on the internet) a way to do this. The usually stated reason was that it can't be done for a Microsoft Store app. For most other apps on my taskbar all that's needed is just right-clicking on the icon on the taskbar, going to properties, and changing the icon of the shortcut. Doesn't work for WT - there isn't even a "properties" option. |
@Dreamykass , take a look at this for creating shortcuts to store apps: https://lifehacker.com/how-to-create-a-shortcut-for-any-modern-windows-app-1722569853 |
xlink: #4768 (comment) has the most comprehensive summary of the problem space |
Played with this more today. I concur - I don't think this'll be possible in a packaged application. We might be able to still enable this for unpackaged installs... but then you're already unpackaged where it's easier to set the icon. I've got a line out to some taskbar folks for confirmation, but I'm not optimistic. |
Talked this over with some taskbar folks. Looks like this is going to be largely impossible. The Taskbar really doesn't expect an app to be changing its icon at runtime. There are technically tricks we could play (by doing Aumid/RelaunchIcon trickery), but that would essentially cause the Taskbar to think the Terminal was a different app each time. Our window would get moved to the end of the taskbar order. Pinning to the taskbar would also be weird. I'm sure there are more edge cases here that they didn't just rattle off the top of their head too. Sorry about this 😕 The aforementioned "create a shortcut to an app" does seem like the best way to get around this. |
An app (eg conhost console app) can set the icon on the taskbar icon = LoadIcon(GetModuleHandle(NULL), "IDI_ICON1"); // eg get own icon this works at least with windows 2000 (GetConsoleWindow() is a new function in windows 2000) up to windows 11. The windows taskbar can handle an icon change. |
Sure, that's correct. However, (I'm told) packaged applications are treated differently by the taskbar. For packaged apps, the taskbar apparently ignores the HWND icon and just uses the package's icon. Prototype code I wrote in SendMessageW(_hwnd, WM_SETICON, ICON_BIG, (LPARAM)hIcon);
SendMessageW(_hwnd, WM_SETICON, ICON_SMALL, (LPARAM)hIcon); instead of |
I read, the the taskbar ist not able to handle Icon changes, but the "taskbar" is /or was able to do it. The SendMessage(..., WM_SETICON, ) method worked in my apps up to Windows 7, but not Windows 10 anymore. So I added the |
Description of the new feature/enhancement
Allow changing the taskbar icon, for a bit more additional and nice customization.
Proposed technical implementation details
A parameter in settings.json? Allowing either picking any icon, or just providing a toggle to use the monochrome icon that's used in high-contrast mode.
Why?
I got Windows Terminal from chocolatey, which gets it from Microsoft Store, so it's not possible to just right-click, go to properties, and select a different icon, like with other apps.
How my taskbar looks currently:
How I'd really love it to look like:
The text was updated successfully, but these errors were encountered: