It'd be awesome if the docs for profiles.json
included a table enumerating the icons included in the Terminal and their paths.
For example, it's highly non-intuitive that the PowerShell icon is "ms-appx:///ProfileIcons/{61c54bbd-c2c6-5271-96e7-009a87ff44bf}.png"
whereas the icon for Cmd is "ms-appx:///ProfileIcons/{0caa0dad-35be-5f56-a8ff-afceeeaa6101}.png"
.
What, therefore, is the path to the PowerShell Core icon?
These aren't really intended to be used by users. They exist to support dynamic profile generation. When we have a settings UI, you can just select from a palette of icons.
Either way, we should document these icons' guids.
I profoundly disagree! They're an implementation detail, not an implementation on their own!
I like to see documented palette of icons - which I can select to tell me tab using. Example current Ubuntu bash icon is not same as I use directly wsl bash, like to change it. It would be nice to see set of icons which user like to select to tell meaning of tab. Same way as you setup ex. favicon in netsite/tab.
In "real" program you can setup icon from set of icons. But this "apps" you can't ? Ex. I like to set some icon to this Window Terminal which are not so much as PS cmd window has been.
Since @DHowett-MSFT doesn't want to document them, and we (the users) don't have a UI at the moment and I was curious what icons I could use, I searched and found https://github.com/microsoft/terminal/tree/master/src/cascadia/CascadiaPackage/ProfileIcons
There you have the 5 GUIDs that are available at the moment :wink:
It's also possible to use ordinary URL:s. For example, I added Git bash and used this git logo URL for "icon"
.
@md2perpe We'd recommend referring to local files, NOT URLs - the latter may take considerable amounts of time to retrieve (if at all) and since the image you refer to is quite large, it'll take a noticeable amount of time for it to be reduced down to 32x32px. Combined, this will likely result in a poor experience, and perhaps intermittent "disappearing" icons.
To add to that, you probably don't want to be making a web request to a remote server every time you launch Terminal. :smile:
@ffes While I agree to some point, as stated here:
Note: Do not rely on the files referenced by the ms-appx URI Scheme - they are considered an internal implementation detail and may change name/location or may be omitted in the future.
We're going to be working on a settings UX in the future, but for now if you want to use specific icons, we encourage you to create & refer to your own icon collection.
For others' future reference, I added a line to my profiles.json
file:
"icon": "file:///c:/users/<username>/icons/bash_logo_32x32.png"
This points to an icon file in a completely different folder than whatever ms:///appx
points to, and it worked once I saved the profile. I didn't even have to reload the program for it to apply.
This was on Windows Terminal (Preview) Version: 0.9.433.0, so of course it might change (or have some future interface override it), but it's probably going to work this way for the foreseeable future through v1.0.
Can confirm the process outlined by @kjmitch works in 1.0; I don't know if this is intended behaviour but when displaying a PNG the terminal won't keep the transparency but rather use a white background.
Well, uh, all of the PNGs that come with terminal have transparency in them. . .
FWIW, I keep a folder called "WindowsTerminal" in my OneDrive in which I stash all the icons and background images for the shells etc. that I use, and which are automatically synchronized across all my machines.
Then in my settings.json, I just need to specify "%USERPROFILE%/OneDrive/WindowsTerminal/...
to reach any of those files.
This makes it MUCH easier to keep my profiles tuned just the way I like them.
Bonus tip: Once I have my settings the way I like them, I also keep a backup copy in the aforementioned OneDrive folder so I can just copy it onto new/re-paved machines.
@Devilmoon - I bet if you open your PNG in Paint.NET, you'll find that it has a white background. If it's transparent, you'll see a gray and white chequerboard pattern indicating areas of transparency.
You can use Paint.Net's magic wand & selection tools to select & delete white areas, revealing the transparency chequerboard - see left hand side of Dustin's profile image here 馃槣:
@bitcrazed Yes, that seemed to be the case even though I had downloaded what seemed like a transparent PNG image from Google. However after manually removing the background it now works as expected.
FWIW, I keep a folder called "WindowsTerminal" in my OneDrive in which I stash all the icons and background images for the shells etc. that I use, and which are automatically synchronized across all my machines.
Then in my settings.json, I just need to specify
"%USERPROFILE%/OneDrive/WindowsTerminal/...
to reach any of those files.This makes it MUCH easier to keep my profiles tuned just the way I like them.
Bonus tip: Once I have my settings the way I like them, I also keep a backup copy in the aforementioned OneDrive folder so I can just copy it onto new/re-paved machines.
FYI @bitcrazed : I really liked your idea, but when I used this in my office environment, this didn't get resolved correctly--probably due to folder redirection or some such. But, what I can use everywhere is "%OneDrive%/WindowsTerminal/...
Thanks.
Hey @JimF42 - thanks for the tip - if you configure OneDrive for Business on your machine, then %ONEDRIVE% points there, not to your personal OneDrive.
Looks like one could also use %ONEDRIVECOMMERCIAL%
and %ONEDRIVECONSUMER%
too:
Updating my settings.json now :)
Where is the Windows terminal icon itself located?
@weitzhandler This what you're looking for? https://github.com/microsoft/terminal/tree/master/res/terminal
Yes! But where is its location on the windows installation?
Windows Terminal is a modern, packaged app. All packaged apps are installed by the Windows packaged app installation engine into the protected C:\Program Files\WindowsApps\<app>
folders.
Because it's a modern app, Windows Terminal doesn't contain an .ico
icon file per se., but instead contains several multi-resolution images in the app's images
folder.
May I ask why you're trying to file Terminal's icon/tile image files on disk?
@bitcrazed I, personally, want to set the icon to a shortcut I made to C:\Users\nacho\AppData\Local\Microsoft\WindowsApps\wt.exe
. I do not use Windows 10 style pinned apps and prefer the Windows 7 style Quick Launch folder in my taskbar. But the wt.exe
shortcut doesn't have the Windows Terminal icon -- it has the default/generic one. So I am trying to find the Windows Terminal .ico
file so I can set the icon in my shortcut.
The default icons that Windows Terminal is using is here: C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_#####
To get into the WindowsApps folder you will need permission. However, if you do not want to mess with permissions, you can do the following.
To use these icons keep the ms-appx:///ProfileIcons/
then just add the icon name and extension. However, to add your own icons to the folder, you will need permission.
We reserve the right to change the names of and paths to these icons.
@zooboo44 Thanks! I appreciate it. I was looking for the main icon for terminal icon, the one with >_
, in an .ico
format. I don't need the specific terminal type icons. But I was able to use C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_####\wt.exe
to get to it. Thanks~
@DHowett Got it.
Most helpful comment
Since @DHowett-MSFT doesn't want to document them, and we (the users) don't have a UI at the moment and I was curious what icons I could use, I searched and found https://github.com/microsoft/terminal/tree/master/src/cascadia/CascadiaPackage/ProfileIcons
There you have the 5 GUIDs that are available at the moment :wink: