gemini-cli icon indicating copy to clipboard operation
gemini-cli copied to clipboard

Regression due to #4739 Provide a better diff view on light-mode environments

Open stefanofornari opened this issue 1 year ago • 5 comments

What happened?

#4739 was fixed with #4747 and released in July. On light-mode environments the theme used is very much not readable:

Image

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

stefanofornari avatar Aug 10 '25 08:08 stefanofornari

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.

shivas1432 avatar Aug 10 '25 11:08 shivas1432

@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 avatar Aug 10 '25 18:08 miguelsolorio

@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 avatar Aug 11 '25 06:08 stefanofornari

@stefanofornari user settings are saved under ~/.gemini/settings.json https://github.com/google-gemini/gemini-cli/blob/main/docs/cli/configuration.md

miguelsolorio avatar Aug 13 '25 14:08 miguelsolorio

Many thanks!

stefanofornari avatar Aug 13 '25 14:08 stefanofornari