Allow disabling truecolor and use closest "simple" color, even if terminal can support truecolors #1873
Closed
spenserblack
started this conversation in
3. Ideas
Replies: 1 comment 2 replies
-
This sounds a bit weird - are you referring to the icons? Besides icons, Yazi's default theme does use 16 colors instead of true color to better match terminal colors, you can find the default color scheme at https://github.com/sxyazi/yazi/blob/main/yazi-config/preset/theme.toml |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm starting this as a discussion just in case my request actually is supported, and I'm just missing something.
The default theme looks great in a terminal with a dark theme! But sometimes I use a light theme. I'm assuming that most of yazi's testing has been done on a dark terminal. An easy way to provide better support for light themes is to provide an "escape hatch" for disabling true colors. That way it becomes the terminal theme's job to make sure the 16 colors (black, white, red, etc.) look good, not the application theme's job.
I tried some of the common ways to force disable truecolor, but Yazi is smart enough to know I'm using WezTerm and can show truecolors 🧠
I'd ask for this to be a CLI option, if possible. For my personal usage, my preference frequently changes, so it isn't really suitable for a config file, and works better in CLI. A simple way to do this is
--truecolor auto|never|always (default: auto)
Edit: I just saw #988, which could help partially resolve my personal issue. But it would force me to exit yazi after switching themes to reload the appropriate colors.
Beta Was this translation helpful? Give feedback.
All reactions