-
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
Terminal Preview and Terminal have the same icon in Alt-Tab and Win-Tab window switchers #6777
Comments
That is true in two cases:
However, if Windows Terminal Preview 1.1.1812.0 is running and "Combine taskbar buttons" is "Never", then the icon in the taskbar button lacks the blue preview marker, just like the icon in Alt-Tab. I assume correcting the Windows Terminal Preview icon in Alt-Tab would fix the icon in the taskbar button as well, so I am not filing that as a separate issue. (Alternatively, #6556 would make the taskbar icon not depend on the application icon.) |
I believe there are two possible fixes:
The 1st fix is clearly better, since it benefits any hybrid app. But the 2nd fix is much easier, since it'd just take about an hour to gin up a new .ico file and hack the .RC file to refer to it when building the preview flavor. |
For the benefit of people outside Microsoft or the Windows org: "MRT" is the internal name for the Modern Resource Technology, or the Resource Management System as it is referred to on docs.microsoft.com. It is the system for adding and loading text string, image, and file resources to a Universal Windows Platform app or other MSIX-packaged app (including Desktop Bridge apps like Terminal), and for choosing the right resource to use depending on things like the user's language and system color choices, tile sizes, and the screen's scale factor. Basically, if your MSIX-packaged desktop app's image resources are separate files or even separate MSIX packages, they may be loaded by MRT. If they're embedded in the .exe, they're the old-fashioned Win32 resources Mr. Tippet is referring to. |
So, I’m not averse to having a separate preview icon in the EXE file, but right now there are no compiled artifact differences between Release and Preview, only packaging and livery. |
This commit introduces 8 more variants of the .ICO file, embeds them into WindowsTerminal.exe, and adds code that will select the most appropriate icon at runtime. Since we're a Centennial application, the "application" icon inside our package isn't used by the shell for the taskbar thumbnails or the Alt-Tab window. To quote J. Tippet, > I believe there are two possible fixes: > > 1. Fix the OS shell to prefer the MRT icon instead of preferring the > win32 icon > 2. Add alternate versions of /res/terminal.ico > The 1st fix is clearly better, since it benefits any hybrid app. But > the 2nd fix is much easier, since it'd just take about an hour to gin up > a new .ico file and hack the .RC file to refer to it when building the > preview flavor. ... and to quote M. Ratanapintha, > Basically, if your MSIX-packaged desktop app's image resources are > separate files or even separate MSIX packages, they may be loaded by > MRT. If they're embedded in the .exe, they're the old-fashioned Win32 > resources Mr. Tippet is referring to. This is the "2nd fix." Fixes #6777
This commit introduces 8 more variants of the .ICO file, embeds them into WindowsTerminal.exe, and adds code that will select the most appropriate icon at runtime. Since we're a Centennial application, the "application" icon inside our package isn't used by the shell for the taskbar thumbnails or the Alt-Tab window. To quote J. Tippet, > I believe there are two possible fixes: > > 1. Fix the OS shell to prefer the MRT icon instead of preferring the > win32 icon > 2. Add alternate versions of /res/terminal.ico > The 1st fix is clearly better, since it benefits any hybrid app. But > the 2nd fix is much easier, since it'd just take about an hour to gin up > a new .ico file and hack the .RC file to refer to it when building the > preview flavor. ... and to quote M. Ratanapintha, > Basically, if your MSIX-packaged desktop app's image resources are > separate files or even separate MSIX packages, they may be loaded by > MRT. If they're embedded in the .exe, they're the old-fashioned Win32 > resources Mr. Tippet is referring to. This is the "2nd fix." Fixes #6777
This commit introduces 8 more variants of the .ICO file, embeds the right ones into WindowsTerminal.exe, and adds code that will select the most appropriate icon at runtime. Since we're a Centennial application, the "application" icon inside our package isn't used by the shell for the taskbar thumbnails or the Alt-Tab window. To quote J. Tippet, > I believe there are two possible fixes: > > 1. Fix the OS shell to prefer the MRT icon instead of preferring the > win32 icon > 2. Add alternate versions of /res/terminal.ico > The 1st fix is clearly better, since it benefits any hybrid app. But > the 2nd fix is much easier, since it'd just take about an hour to gin up > a new .ico file and hack the .RC file to refer to it when building the > preview flavor. ... and to quote Michael Ratanapintha, > Basically, if your MSIX-packaged desktop app's image resources are > separate files or even separate MSIX packages, they may be loaded by > MRT. If they're embedded in the .exe, they're the old-fashioned Win32 > resources Mr. Tippet is referring to. This is the "2nd fix." Fixes #6777 Co-authored-by: Jeffrey Tippet <[email protected]>
🎉This issue was addressed in #7971, which has now been successfully released as Handy links: |
Environment
Windows build number: Windows 10 ver. 2004 build 19041.329
Windows Terminal version (if applicable): 1.0.1811.0, Preview 1.1.1812.0
Steps to reproduce
Expected behavior
The Terminal and Terminal Preview windows thumbnails have different icons displayed next to their titles.
Actual behavior
The Terminal and Terminal Preview windows thumbnails have the same displayed next to their titles.
(Taskbar shows different icons as expected.)
The text was updated successfully, but these errors were encountered: