mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-10-05 21:46:49 -04:00
A color that reads well on a dark background can be hard to read on a light one, and the other way round. If you switch your terminal between dark and light, there is often no single set of theme colors that works for both (#4366). Add two overrides of gui.theme, one for each kind of background. gui.colorScheme, or else what the terminal tells us, decides which one applies. A field that is set in the override replaces the one in gui.theme. Author colors and branch color patterns are merged by entry instead, so that an override doesn't have to repeat the entries it doesn't change. When the terminal's background changes, re-apply the theme and re-render all views, not only the ones that show author colors. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>