arcanis / clipanion

Type-safe CLI library / framework with no runtime dependencies
https://mael.dev/clipanion/
1.09k stars 61 forks source link

Gradient incorrect on light terminal themes #149

Open cspotcode opened 11 months ago

cspotcode commented 11 months ago

There's not really a fix for this other than to avoid gradients. On light terminal themes, the gradient should fade from black to white, not white to black. It ends up appearing like this:

image
arcanis commented 11 months ago

Since absolutely every reasonable person uses a dark terminal theme it should be fine

More seriously, the visual glitch is fairly minor, so I'd prefer to avoid removing gradients just for that - I guess there isn't an environment variable describing whether the terminal is light / dark ? 😅

arcanis commented 11 months ago

Interestingly, on my terminal (iTerm2) there's still a little visual glitch mid-way:

Screenshot 2023-09-19 at 11 22 08
romdej commented 4 months ago

There's another issue concerning non-black-and-white terminals: the gradient color doesn't consistently match the color of the header line.

Here's how it renders in Jetbrains IDE terminals (default theme): image

Here's how it renders in Jetbrains IDE terminals (colored theme); image

And this is what it could render on colored terminal without the gradient: image

While this might not be sufficient for removing the gradients, it's good to known that this issue also exists.