htop-dev / htop

htop - an interactive process viewer
https://htop.dev/
GNU General Public License v2.0
6.29k stars 424 forks source link

Insufficient contrast on light background #1495

Open savchenko opened 2 months ago

savchenko commented 2 months ago

Using the "light terminal" theme and default "Linux console" colours:

image

Note the header and selected PID line. Would you consider inverting colours or increasing brightness of the highlight (background colour) ?

BenBE commented 2 months ago

Unfortunately due to a limitation in how background colors are handled with ncurses you can't have light background colors in a nicely portable way. It is possible, but usually involves hacks, as the bit for bright background is often misinterpreted as blinking foreground … ;-)

savchenko commented 2 months ago

Wild. In the age of TrueColour-capable terminals... Made me check ncurses webpage:

The package was originated as pcurses, written by Pavel Curtis around 1982

No further questions.

Explorer09 commented 2 months ago

@savchenko You should adjust the color palette of your terminal emulator. It isn't something we can adjust in htop's side. IMHO, we could have an alternative of using white text on a dark background for highlighted item, but the benefit of implementing that would be too small.