Allow color fields to refer back to the active color scheme (like "cursorColor = yellow") #10479

Open
opened 2026-01-31 02:22:43 +00:00 by claunia · 7 comments
Owner

Originally created by @vefatica on GitHub (Sep 3, 2020).

I can't do this

"cursorColor": "yellow"

AFAICT, to get a "yellow" cursor I must (look up and) hard code the "yellow" value from the current theme.

Is there a better way? If not I suggest that you allow color names for "cursorColor"

And what's the difference between "#rgb" and "#rrggbb"?

Originally created by @vefatica on GitHub (Sep 3, 2020). I can't do this "cursorColor": "yellow" AFAICT, to get a "yellow" cursor I must (look up and) hard code the "yellow" value from the current theme. Is there a better way? If not I suggest that you allow color names for "cursorColor" And what's the difference between "#rgb" and "#rrggbb"?
claunia added the Area-SettingsIssue-TaskProduct-Terminal labels 2026-01-31 02:22:44 +00:00
Author
Owner

@DHowett commented on GitHub (Sep 3, 2020):

I was sure that we had a feature request for this already, but it looks like we don't! Thanks!

The difference between #rgb and #rrggbb is that #rgb is shorter.

@DHowett commented on GitHub (Sep 3, 2020): I was sure that we had a feature request for this already, but it looks like we don't! Thanks! The difference between `#rgb` and `#rrggbb` is that `#rgb` is shorter.
Author
Owner

@DHowett commented on GitHub (Sep 3, 2020):

Link: #3327

@DHowett commented on GitHub (Sep 3, 2020): Link: #3327
Author
Owner

@DHowett commented on GitHub (Sep 3, 2020):

Link: #5776

@DHowett commented on GitHub (Sep 3, 2020): Link: #5776
Author
Owner

@vefatica commented on GitHub (Sep 3, 2020):

I searched too (but not as hard as you).

And/or ... allow an integer index in the palette, as in

"cursorColor": 3 // "yellow"

@vefatica commented on GitHub (Sep 3, 2020): I searched too (but not as hard as you). And/or ... allow an integer index in the palette, as in "cursorColor": 3 // "yellow"
Author
Owner

@vefatica commented on GitHub (Sep 3, 2020):

The difference between #rgb and #rrggbb is that #rgb is shorter.

That's obvious. :-) Is there any difference in their use? Is there any alternative to "#123456"?

@vefatica commented on GitHub (Sep 3, 2020): _The difference between #rgb and #rrggbb is that #rgb is shorter._ That's obvious. :-) Is there any difference in their use? Is there any alternative to "#123456"?
Author
Owner

@DHowett commented on GitHub (Sep 3, 2020):

Nah. I believe the #rgb shorthand comes from CSS, and as such is very convenient for web color grading. You specify one nybble for each color, and that nybble is copied over the one you didn't specify: #c12 becomes #cc1122 and #fff becomes #ffffff.

There's no shorthand for #123456 (nor can there ever be?) because there's no way to specify the same amount of information by specifying less information 😉

@DHowett commented on GitHub (Sep 3, 2020): Nah. I believe the `#rgb` shorthand comes from CSS, and as such is very convenient for _web color grading_. You specify one nybble for each color, and that nybble is copied over the one you didn't specify: `#c12` becomes `#cc1122` and `#fff` becomes `#ffffff`. There's no shorthand for `#123456` (nor can there ever be?) because there's no way to specify the same amount of information _by specifying less information_ 😉
Author
Owner

@vefatica commented on GitHub (Sep 3, 2020):

You specify one nybble for each color, and that nybble is copied over the one you didn't specify: #c12 becomes #cc1122 and #fff becomes #ffffff.

Thanks for the explanation. That's odd. I never saw it before.

@vefatica commented on GitHub (Sep 3, 2020): _You specify one nybble for each color, and that nybble is copied over the one you didn't specify: #c12 becomes #cc1122 and #fff becomes #ffffff._ Thanks for the explanation. That's odd. I never saw it before.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#10479