Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjust 'ANSI 8' color to be more visible against background. Fixes mi…
- Loading branch information
8d75ff1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I thought we said that we should make like solarized_dark_for_powershell.itermcolors with the adjustment and keep this one preserving the exact same values as other platforms.
I expected a new file, not a change to this one.
8d75ff1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@miniksa I understand - wanting to distinguish that this is a changed version. I'd suggest actually not shipping solarised_dark at all (since it isn't usable as-is) and shipping an existing modification instead (with the name of the mod). How does that sound? Happy to send a new PR.
8d75ff1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I dunno. @zadjii-msft, do you have an opinion here. I don't really super care if he changes the base one. Do you?
8d75ff1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Totally off topic: how did you know that
1;30m
was ANSI 8? I worked it out using the importer on https://terminal.sexy, but is there a better way to determine it?8d75ff1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are 16 ansi colors. 0-7 are the dark shades and 8-15 are the bright shades.
Doing 1;30m is the same as doing 90m.
https://en.wikipedia.org/wiki/ANSI_escape_code#3/4_bit
I mean, literally 30 = 0, 31 = 1, 32 = 2, etc. 1;30/90 = 8, 1;31/91 = 9, etc.
8d75ff1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also:
30
-37
sets the foreground to 0-7,40
-47
sets the background to 0-7,90
-97
sets the foreground to 8-15,100
-117
sets the background to 8-15,1
bolds (brightens) a 3x or 4x.8d75ff1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Back on topic...
I'd probably prefer that if we're changing the default
solarized_dark
scheme, at very least we pick colors from their official list:... Even though apparently we weren't doing that before...
Maybe we go with the value here?
https://github.com/mbadolato/iTerm2-Color-Schemes/blob/master/schemes/Solarized%20Dark%20-%20Patched.itermcolors#L131-L139
8d75ff1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we did pick colors from their official list, wouldn't we either not solve the bug (using the same color, which has low contrast), or significantly alter the output from the original intention by using a different color from their list?
8d75ff1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll let @zadjii-msft make the final call here. Color tool is his pet project. I could go either way.
But it might take us a few more days, @mikemaccana. We have a few high priority things to accomplish this week and musing about colors unfortunately falls lower. Just want you to know that we're not ignoring you, just getting pulled away to other things.