-
Notifications
You must be signed in to change notification settings - Fork 8.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--tabColor
and setTabColor
should accept color names
#8893
Comments
If we’re going to do that, we should converge all color converters on the VT color parser. All of them. This will change the semantics of our color parser slightly. It’s the only right thing to do. |
Back then Dustin brought up the idea of "all the color we know about" in #7578. The XParseColor spec includes the You can just feed terminal/src/types/ut_types/UtilsTests.cpp Line 158 in 3181b6a
|
Yeah, it'd also be nice if we could allow for things like |
The only downside is that |
Well, also that the color table will be copied into a third binary because of static linking but hey, we have a huge Utils problem already. |
I think we can prioritize CSS rules if the input is in the form of |
If you're going to prioritize CSS rules for the hex formats, then you also need to consider whether you want to prioritize CSS rules for the color names too (for example, CSS green and X11 green are very different colors). Sooner or later someone is going to ask why a particular color is what it is. That's easy enough to explain if we can just say we're using CSS, or we're using X11. It's harder to justify if we've got a weird mix of the two. |
That's actually a valid concern. Maybe we need to also introduce CSS colors and use them specifically for colors in JSON, etc.
获取 Outlook for Android<https://aka.ms/ghei36>
|
I think that we should converge on the X11 color names and accept the breaking change (the loss of 4 bits of depth on the short-form hex code colors). @zadjii-msft what do you think? |
I think if you're using |
Just so long as no one's expecting "red" to mean "the value of red from the color scheme". That's right out. Not doing that 😛 |
I'm not sure, man. Our users have proven to be...imaginative . |
I'm fine with converging on the X11 color names. I do believe most people are using Also I'm proposing to add support for |
Yea I'm cool with the |
Can we please make sure that's not exposed in the OSC palette sequences though, unless it's one of the standard formats supported by other terminals. |
Of course. It will be separate from existing X11 code.
获取 Outlook for iOS<https://aka.ms/o0ukef>
|
I don't necessarily see the value in |
I agree settings UI will reduce the usage of color values in settings.json. However, for command line usgae, i think we should support as many as formats. Hence the rgb idea.
获取 Outlook for Android<https://aka.ms/ghei36>
|
Description of the new feature/enhancement
It'd be cool if
--tabColor
andsetTabColor
should accept color names in addition to hex-codes. Specifically, something like this would be accepted:Proposed technical implementation details (optional)
Detecting if it's a name vs hex-code should be pretty straightforward: check if the leading character is a
#
.#7578 may help detect if the color name actually exists?
The text was updated successfully, but these errors were encountered: