-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Make terminal colored again! #483
Comments
This could definitely be useful for more colorful themes in the future, perhaps options to dynamically color themes can be added as well? (Like a slow color change/fade!) different colors per module would also be neat. |
So far every visual setting and tweak is handled by themes (except font size, because it's something that you want to be able to change on-the-fly); I don't want to break that rule so eventual terminal color filters would have to be defined in a theme file. And @Xeddius - different colors per module will have to wait for #334. |
That would be interesting, what would that look like? |
@jennasisis Something like this: {
"terminal":
"colorFilter": [
"saturate(120)",
"hue(340)",
"mix(0.3)"
],
"colorFilterMixTarget": "#00FF00"
}
} |
Oh that’s interesting, I’ll see if I can work that in and open a PR when I have the time. |
Implemented. I'm going to edit: docs are up. Here are some examples, shown side-by-side with another terminal so you spot the color difference: "colorFilter": [
"negate()"
] "colorFilter": [
"rotate(180)",
"saturate(0.5)",
"mix(0.7)"
] "colorFilter": [
"rotate(-40)",
"desaturate(0.2)",
"mix(0.4)"
] This is surely the most gadget feature I've ever made, lol. But it's 20 lines of code and you can probably get something good out of it, so why not? I made all the necessary stuff to prevent abusing this for code injection, too. That's actually 99% of the commit, so I thought I'd mention it. I'm going to include a new |
Perceived idea awesomeness
Perceived idea difficulty
Similar to #463 but not really? I was snooping through the code to see how ya dun it and I noticed, in src/classes/terminal.class.js, you've grayscaled the colors. I removed the grayscale method and was still muted a little bit, so I messed with the number in the mix method. Changed it to 1 and everything was black and white; no in-between like you had before. I changed it to 0.7 and it was slightly more muted than 0.3.. the default.
This sparked an idea.
Why not make that grayscale-ness customizable to the user? And I don't just mean in themes and such, I mean like as a setting or something.
... and so on and so forth.
Lmk what you think
The text was updated successfully, but these errors were encountered: