bat icon indicating copy to clipboard operation
bat copied to clipboard

Use bat with a light coloured background?

Open girgen opened this issue 1 year ago • 4 comments

Hi!

Is there a way to negate the colours (so white is black, eg)? I use a bone white background for better contrast, and bat isn't really usable out of the box then. Perhaps there's a switch for it, but I didn't see one?

Thanks!

girgen avatar Oct 30 '24 09:10 girgen

You can use a different theme: https://github.com/sharkdp/bat?tab=readme-ov-file#highlighting-theme. https://github.com/sharkdp/bat/pull/2896 has recently been merged which should improve theme selection by default.

keith-hall avatar Nov 16 '24 07:11 keith-hall

For me the syntax highlighting is visible on white background, albeit higher contrast would improve it for sure. But with plain txt files I get white text on white background, which is pretty bad - it took me a while to realize bat was even working.

Using bat 0.24.0 (9cecc21-modified) installed with conda from conda-forge channel, on Manjaro GNOME (default shell is zsh, if that matters).

PS: ok never mind, updated to v0.25 and the problem is gone.

janxkoci avatar Jan 15 '25 12:01 janxkoci

Ok weird, I've installed v0.25 on another machine and I've got the same issue again 🤔

janxkoci avatar Aug 06 '25 21:08 janxkoci