Skip to content

profile.colorTable is broken #4091

Closed

Description

Setting a colorTable in a profile was broken in 8ba8f35dc5 when we set the default _schemeName to Campbell. During the construction of a TerminalSettings, we apply the table and then the scheme. If we do it in a different order, or delete _schemeName when we find colorTable, it works fine.

However: nobody noticed. This is the perfect opportunity to kill that feature or replace it with "colorTable overlays on top of the scheme"!

Related: #1069.

Activity

  1. added
    Issue-Bug
    Area-Settings
    Product-Terminal
    Priority-3
    on Dec 31, 2019
  2. ghost added
    Needs-Triage
    on Dec 31, 2019
  3. removed
    Needs-Triage
    on Jan 6, 2020
  4. added a commit that references this issue on Jan 30, 2020
    1b45119
  5. mhintzke commented on Feb 4, 2020

    @mhintzke

    Dustin L. Howett (MSFT) (@DHowett-MSFT) I just tried to customize my colorTable and noticed none of my changes took effect. Finally tracked down this issue. Do you know of a work around for now by any chance or are we out of luck and forced to just use a colorScheme for now?

  6. DHowett-MSFT commented on Feb 4, 2020

    @DHowett-MSFT
    ContributorAuthor

    Consensus among the team is that color schemes are better suited to this purpose: we never implemented individual color index overriding for tables overlaid on schemes, which would have been the only way to make them broadly useful.

    If you don’t mind my asking, why might you prefer setting the color table in the profile over having a color scheme?

  7. mhintzke commented on Feb 4, 2020

    @mhintzke

    It is very possible that a scheme is what I'm after. I tried out a couple of the out-of-box ones like "One Half Dark" and "Solarized Dark", but there were minor tweaks I wanted to make as my oh-my-posh theme was causing some low contrast points for me that were hard look at. It is possible I am just not aware of how to use the Color Schemes properly.

    I tried playing around with the profile.json a little, but the tooltip hints weren't enough for me to figure it out. Is there specific documentation on how to customize your own color scheme within this repository?

  8. mhintzke commented on Feb 7, 2020

    @mhintzke

    Ok I have found a pretty easy path towards installing a bunch more color schemes. I'm not sure if I am just missing this documentation somewhere, but for any future people that are having an issue installing their own custom scheme here is what you do:

    1. From the Windows Terminal, open up Settings which will open up your profiles.json
    2. Find a Windows Terminal scheme from the iTerm2 github and then find it in the Windows Terminal folder here
    3. Copy the JSON in the theme you want to try and paste it into the "schemes": [] property inside the profiles.json you opened up in step 1
    4. Go up in the profiles.json and find the shell profile of the one you want to change (I changed PowerShell Core) and set the "colorScheme" to the name of the scheme you just pasted on step 3.

    Voila!

    Dustin L. Howett (@DHowett) please let me know if there is some other documentation I can point to that already states this information. It would be great if there were instructions on how to do this in the root level README.md of this repository, no?

  9. added 2 commits that reference this issue on Mar 30, 2020
    e3bc5a9
    4a25554
  10. ghost added
    In-PR
    on Mar 30, 2020
  11. ghost added
    Needs-Tag-Fix
    on Mar 31, 2020
  12. added a commit that references this issue on Mar 31, 2020
    cd9e854
  13. ghost removed
    In-PR
    on Mar 31, 2020
  14. ghost added
    Resolution-Fix-Committed
    on Mar 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Area-SettingsIssue-BugNeeds-Tag-FixPriority-3Product-TerminalResolution-Fix-Committed

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions