Regression due to #4739 Provide a better diff view on light-mode environments
What happened?
#4739 was fixed with #4747 and released in July. On light-mode environments the theme used is very much not readable:
I am opening a new issue as I can not reopen the original one.
What did you expect to happen?
I expect first of all the theme to be clearly readable; worst case, I'd need at least to either to customize the coloring, or disabling it
Client information
$ gemini /about
About Gemini CLI │
│ │
│ CLI Version 0.1.18 │
│ Git Commit cd7e60e0 │
│ Model gemini-2.5-pro │
│ Sandbox no sandbox │
│ OS linux │
│ Auth Method OAuth
Login information
google account
Anything else we need to know?
No response
Yeah the diff colors are terrible in light mode - can barely read anything.
Quick fixes:
- Better contrast colors for light theme diffs
- Use darker text or borders instead of just background colors
- Look at how GitHub/VS Code does light mode diffs
Workaround: switch to dark theme when viewing diffs for now.
Should be an easy CSS fix with proper light/dark color schemes.
@stefanofornari @shivas1432 what theme are you using? I suspect you’re running the default theme, which is dark, you can select a light theme that works better in light mode via the /theme command
@miguelsolorio , that's what I was looking for ! :) thanks. Just one more question: it looks like I am not abl to save the setting mermanently. in which config file can I tweak it?
@stefanofornari user settings are saved under ~/.gemini/settings.json https://github.com/google-gemini/gemini-cli/blob/main/docs/cli/configuration.md
Many thanks!