-
Notifications
You must be signed in to change notification settings - Fork 23
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
Text is completely invisible on common light terminal configurations #57
Comments
Thank you for your detailed analysis and advice. I agree, the theming aspect needs to be completely reworked. I have implemented dynamic theming for another project (https://github.com/darkhz/invidtui/tree/theme), wherein:
This is currently being tested, and can be imported once I have finished testing it. Documentation is sparse, but do look at the default configuration here, which has brief documentation: https://github.com/darkhz/invidtui/blob/theme/themes/default.theme EDIT:
|
Hi, just wanted to help out a little. Here's the kitty with Solarized Light: (looks fine to me) Here's the alacritty with Gruvbox Dark: (i think white is mixed up a little with the green and magenta) Here's the alacritty with GitHub Light: (colors are mixed up with the grey) Here's the kitty with Tango Dark: (looks good) I'm on |
@txgk very helpful, thank you so much. I'm looking into it, although this will be fixed much later, due to the work on other more priority based tasks on the application. I also plan to make the theme engine load themes dynamically, have to port the theme engine from invidtui and maybe modify it, but this will make customising all elements more granular. |
It’s very common on light terminals for white to match the default background colour exactly. As it stands, bluetuith uses bold white (
␛[37;1m
). This means that, in terminals like mine, almost all of the text is invisible, and the entire output ofbluetuith --help
.If you’re going to default to using foreground colours like black or white, you must also set a contrasting background colour.
The vastly preferable option is not using black or white. As far as I can tell, all the places bluetuith is using bold white should be just default colour (that is, drop the
␛[37m
), and almost always not bold, either (that is, drop the␛[1m
). Certainlybluetuith --help
has no business setting colours.More generally, if you’re going colouring things, here’s my advice, independent of project. I recommend that a default theme use only these styles: the default foreground and background colours; foreground colours 1, 2, 5 and 6; bold for emphasis; uncoloured invert for emphasis; and faint, italic and underline as optional enhancements which not all terminals will support. Black and white are verboten (they might each be maximum or zero contrast). Blue is somewhat risky (because of mostly-historical-but-definitely-not-entirely-gone dark themes). Yellow is fine, but bright yellow is very risky (because of light themes), so bold yellow becomes risky as it may become bright. Background colours are moderately risky, must not be used without specifying a foreground colour, and should not be used for large areas. Invert with non-default colours is generally unwise. Bright colours (8–15) are a little risky because in light themes they can be higher contrast (darker) or higher intensity (lighter). Really, the 16-colour thing is just fundamentally a very bad design that made assumptions that were never correct.
Another remark, the stuff exposed in
--theme
is strange and limiting. It doesn’t let you remove colours (default colour!) or styles like bold, or specify colour numbers (0–255) which is commonly preferable and likely to be much clearer.Extra keyword for search purposes: color.
The text was updated successfully, but these errors were encountered: