mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-10-06 14:06:32 -04:00
The colors that lazygit derives from the names of authors are picked for a dark background. On a light one, they are too pale to read; against white, every author has a contrast ratio between 2.2:1 and 3.5:1. Now that lazygit knows whether the terminal is dark or light, pick them from a darker range of lightness when it is light. Against white, the contrast ratio is now between 5.2:1 and 9.2:1, and against the background of Solarized Light between 4.8:1 and 8.5:1. On a dark background, nothing changes. If the terminal switches between dark and light while lazygit is running, draw the commits again in the new colors. Add gui.colorScheme for terminals that don't tell us, and for anyone who wants to override what they tell. It is 'auto' by default; 'dark' and 'light' ignore what the terminal says. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>