Terminal Preview and Terminal have the same icon in Alt-Tab and Win-Tab window switchers #9425

Closed
opened 2026-01-31 01:54:13 +00:00 by claunia · 5 comments
Owner

Originally created by @metathinker on GitHub (Jul 3, 2020).

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

  1. Open Windows Terminal.
  2. Open Windows Terminal Preview.
  3. Press Alternate-Tab or Windows-Tab.

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.)
Windows-Tab screenshot showing Windows Terminal and Windows Terminal Preview with the same icons

Originally created by @metathinker on GitHub (Jul 3, 2020). ### 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 1. Open Windows Terminal. 1. Open Windows Terminal Preview. 1. Press Alternate-Tab or Windows-Tab. ### 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.) ![Windows-Tab screenshot showing Windows Terminal and Windows Terminal Preview with the same icons](https://user-images.githubusercontent.com/1039862/86488953-929ece80-bd17-11ea-857a-76f042185755.png)
Author
Owner

@KalleOlaviNiemitalo commented on GitHub (Jul 5, 2020):

(Taskbar shows different icons as expected.)

That is true in two cases:

  • If Windows Terminal Preview is pinned to the task bar and not running.
  • If, in the taskbar settings, "Combine taskbar buttons" is "Always, hide labels"

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, https://github.com/microsoft/terminal/issues/6556 would make the taskbar icon not depend on the application icon.)

@KalleOlaviNiemitalo commented on GitHub (Jul 5, 2020): > (Taskbar shows different icons as expected.) That is true in two cases: - If Windows Terminal Preview is pinned to the task bar and not running. - If, in the taskbar settings, "Combine taskbar buttons" is "Always, hide labels" 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, <https://github.com/microsoft/terminal/issues/6556> would make the taskbar icon not depend on the application icon.)
Author
Owner

@jtippet commented on GitHub (Jul 8, 2020):

I believe there are two possible fixes:

  • Fix the OS shell to prefer the MRT icon instead of preferring the win32 icon
  • 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.

@jtippet commented on GitHub (Jul 8, 2020): I believe there are two possible fixes: * Fix the OS shell to prefer the MRT icon instead of preferring the win32 icon * 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.
Author
Owner

@metathinker commented on GitHub (Jul 8, 2020):

  • Fix the OS shell to prefer the MRT icon instead of preferring the win32 icon

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.

@metathinker commented on GitHub (Jul 8, 2020): > * Fix the OS shell to prefer the MRT icon instead of preferring the win32 icon 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](https://docs.microsoft.com/windows/uwp/app-resources/) 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](https://docs.microsoft.com/windows/msix/) 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.
Author
Owner

@DHowett commented on GitHub (Jul 8, 2020):

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.
Is there something we could do by having all the resources in the executable and setting the window icon to one of them based on PFN?

@DHowett commented on GitHub (Jul 8, 2020): 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. Is there something we could do by having all the resources in the executable and setting the window icon to one of them based on PFN?
Author
Owner

@ghost commented on GitHub (Nov 11, 2020):

:tada:This issue was addressed in #7971, which has now been successfully released as Windows Terminal Preview v1.5.3142.0.🎉

Handy links:

@ghost commented on GitHub (Nov 11, 2020): :tada:This issue was addressed in #7971, which has now been successfully released as `Windows Terminal Preview v1.5.3142.0`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v1.5.3142.0) * [Store Download](https://www.microsoft.com/store/apps/9n8g5rfz9xk3?cid=storebadge&ocid=badge)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#9425