ColorTool: Add ps1xml as an accepted extension #7810

Open
opened 2026-01-31 01:13:13 +00:00 by claunia · 6 comments
Owner

Originally created by @WSLUser on GitHub (Apr 29, 2020).

Description of the new feature/enhancement

If you are using Windows Powershell, you'll discover that Windows Terminal changes it's default color scheme. However you are unable to change it back. This is due to a custom scheme extension which you can view in PowerShell ISE under Tools - Options. You can export the built-in themes but ColorTool won't allow you to use them. Per ColorTool doc, only json, .itermcolors, and ini file extensions are accepted. So add the option to read those files in, this may require cooperation with the PowerShell team. Ideally we'd be able to convert the color schemes to json so we can read them into Windows Terminal (ideally these should be added to defaults.json once we can export to json).

A clear and concise description of what the problem is that the new feature would solve.

Lets you continue to use the Windows PowerShell color themes if you enjoy using them.

Proposed technical implementation details (optional)

A clear and concise description of what you want to happen.

I want my Windows Powershell profile in WT to keep the same color scheme it originally had and/or change it to one of the other defaults listed in ISE.

Originally created by @WSLUser on GitHub (Apr 29, 2020). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> # Description of the new feature/enhancement If you are using Windows Powershell, you'll discover that Windows Terminal changes it's default color scheme. However you are unable to change it back. This is due to a custom scheme extension which you can view in PowerShell ISE under Tools - Options. You can export the built-in themes but ColorTool won't allow you to use them. Per ColorTool doc, only json, .itermcolors, and ini file extensions are accepted. So add the option to read those files in, this may require cooperation with the PowerShell team. Ideally we'd be able to convert the color schemes to json so we can read them into Windows Terminal (ideally these should be added to defaults.json once we can export to json). # A clear and concise description of what the problem is that the new feature would solve. Lets you continue to use the Windows PowerShell color themes if you enjoy using them. # Proposed technical implementation details (optional) # A clear and concise description of what you want to happen. I want my Windows Powershell profile in WT to keep the same color scheme it originally had and/or change it to one of the other defaults listed in ISE.
claunia added the Product-ColortoolHelp WantedIssue-TaskNeeds-Tag-Fix labels 2026-01-31 01:13:13 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Apr 29, 2020):

This sounds like an excellent request for colortool to be able to support reading that file format as well. We'd be happy to accept a community contribution here 😄

@zadjii-msft commented on GitHub (Apr 29, 2020): This sounds like an excellent request for colortool to be able to support reading that file format as well. We'd be happy to accept a community contribution here 😄
Author
Owner

@WSLUser commented on GitHub (Apr 29, 2020):

I looked at the file, I think if xml was supported in general, this would be fine (as long as we don't hardcode to just .xml).

@WSLUser commented on GitHub (Apr 29, 2020): I looked at the file, I think if xml was supported in general, this would be fine (as long as we don't hardcode to just `.xml`).
Author
Owner

@WSLUser commented on GitHub (Apr 29, 2020):

https://github.com/microsoft/terminal/blob/master/src/tools/ColorTool/ColorTool/SchemeParsers/XmlSchemeParser.cs appears to be a good start.

@WSLUser commented on GitHub (Apr 29, 2020): https://github.com/microsoft/terminal/blob/master/src/tools/ColorTool/ColorTool/SchemeParsers/XmlSchemeParser.cs appears to be a good start.
Author
Owner

@WSLUser commented on GitHub (Apr 29, 2020):

https://stackoverflow.com/questions/26706941/convert-xml-to-specific-json-structure-with-powershell even better start.

@WSLUser commented on GitHub (Apr 29, 2020): https://stackoverflow.com/questions/26706941/convert-xml-to-specific-json-structure-with-powershell even better start.
Author
Owner

@WSLUser commented on GitHub (Apr 29, 2020):

Fortunately, a couple of the themes are available from Concfg, just not my preferred one. ColorTool will need to strip out the editor portion of the color settings, but keep the terminal settings.

@WSLUser commented on GitHub (Apr 29, 2020): Fortunately, a couple of the themes are available from [Concfg](https://github.com/lukesampson/concfg), just not my preferred one. ColorTool will need to strip out the editor portion of the color settings, but keep the terminal settings.
Author
Owner

@WSLUser commented on GitHub (Apr 29, 2020):

Also I should looked closer at defaults.json which has "Campbell Powershell". Not identical but close enough (bright colors were configured instead of dark colors)

@WSLUser commented on GitHub (Apr 29, 2020): Also I should looked closer at `defaults.json `which has "Campbell Powershell". Not identical but close enough (bright colors were configured instead of dark colors)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#7810