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
Area-SettingsIssues related to settings and customizability, for console or terminalHelp WantedWe encourage anyone to jump in on these.Issue-TaskIt's a feature request, but it doesn't really need a major design.Product-TerminalThe new Windows Terminal.Resolution-Fix-CommittedFix is checked in, but it might be 3-4 weeks until a release.
Optionally, if the icon is missing and the executable from the command line has icons, pick the default icon, much like how the shell does.
Reacted by Drew Noakes, David Anthoff, Jon Couldridge, Karl Wester-Ebbinghaus, Daniel Mendalka, SJang1, Ivan171, Mike Cales, Frank Fesevur, Christian Sirolli and 39 more
Reacted by Cyrus Chan, Mateusz Łoskot, Robert O'Connor, IAmIlliest, Kamack38, Alex Alabuzhev, Unknown6656 and John Sudds
Notes: Right now we're using the XAML resource loader to get at our icons. If we want to support EXE/other PE resources we'll need to fall back to a more win32-like resource loader. There are real benefits to the XAML one, such as it choosing the right icon scale and supporting vector graphics and stuff like that. I've tagged it help-wanted.
Dustin L. Howett (MSFT) (@DHowett-MSFT) afaik not even the settings app in Windows uses SVG graphics but PNGs. I stumbled across them once. I see the point of having this more modern and getting rid of old ico restrictions.
Still not sure if that connects up to a BitmapImage. Maybe I should look in the BitmapImage source itself - it can apparently read from .ico files, so there's probably some overlap between reading an .ico and reading an HICON.
More notes:
Window::s_RegisterWindowClass is where we set the HICON for the console window.
This is unpacked in Icon::GetIcons, after a call to:
Icon::LoadIconsFromPath, in win32/SystemConfigurationProvider::GetSettingsFromLink (see also Console icon? #11759)
first check: ShortcutSerialization::s_GetLinkValues
ShortcutSerialization::s_GetLoadedShellLinkForShortcut to load the IShellLink for the lnk
psl->GetIconLocation to load the icon from the IShellLink.
Then, we fall back to the title?
SystemConfigurationProvider::GetSettingsFromLink sets the icon GLOBALLY. It probably initializes other state. If we want to reuse that to pull the icon out of an lnk before handoff, the we should be SURE it's not setting any other magic global state. We can use a dummy console Settings to hold data if need be.
Area-SettingsIssues related to settings and customizability, for console or terminalHelp WantedWe encourage anyone to jump in on these.Issue-TaskIt's a feature request, but it doesn't really need a major design.Product-TerminalThe new Windows Terminal.Resolution-Fix-CommittedFix is checked in, but it might be 3-4 weeks until a release.
Activity
Karl-WE commentedon Jun 25, 2019
I agree. or things like "icon": "C:\Program Files\PowerShell\6-preview\pwsh.exe",
DHowett-MSFT commentedon Jun 27, 2019
Yeah, it would be pretty cool if we did this.
DHowett-MSFT commentedon Jun 27, 2019
Notes: Right now we're using the XAML resource loader to get at our icons. If we want to support EXE/other PE resources we'll need to fall back to a more win32-like resource loader. There are real benefits to the XAML one, such as it choosing the right icon scale and supporting vector graphics and stuff like that. I've tagged it
help-wanted.Karl-WE commentedon Jun 28, 2019
Dustin L. Howett (MSFT) (@DHowett-MSFT) afaik not even the settings app in Windows uses SVG graphics but PNGs. I stumbled across them once. I see the point of having this more modern and getting rid of old ico restrictions.
4 remaining items
zadjii-msft commentedon May 24, 2022
Notes from some tabs I had open for the last few weeks:
System.Windows.Interop.Imaging.CreateBitmapSourceFromHIcon, which obv we can't use.IWICImagingFactory_CreateBitmapFromHICON_ProxyIWICBitmapLock::GetDataPointerStill not sure if that connects up to a
BitmapImage. Maybe I should look in the BitmapImage source itself - it can apparently read from.icofiles, so there's probably some overlap between reading an.icoand reading anHICON.More notes:
Window::s_RegisterWindowClassis where we set the HICON for the console window.Icon::GetIcons, after a call to:Icon::LoadIconsFromPath, inwin32/SystemConfigurationProvider::GetSettingsFromLink(see also Console icon? #11759)ShortcutSerialization::s_GetLinkValuesShortcutSerialization::s_GetLoadedShellLinkForShortcutto load theIShellLinkfor the lnkpsl->GetIconLocationto load the icon from theIShellLink.SystemConfigurationProvider::GetSettingsFromLinksets the icon GLOBALLY. It probably initializes other state. If we want to reuse that to pull the icon out of an lnk before handoff, the we should be SURE it's not setting any other magic global state. We can use a dummy consoleSettingsto hold data if need be.zadjii-msft commentedon Sep 9, 2022
Note to self:
dev/migrie/1504-prototype-2Allow for exe/dll paths for the Icon setting (#14107)
Fix indexed icon media resource resolution (#20572)
Fix indexed icon media resource resolution (#20572)
Fix indexed icon media resource resolution (#20572)
Squashed commit of the following: