Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use bat with a light coloured background? #3116

Open
girgen opened this issue Oct 30, 2024 · 2 comments
Open

Use bat with a light coloured background? #3116

girgen opened this issue Oct 30, 2024 · 2 comments
Labels
feature-request New feature or request

Comments

@girgen
Copy link

girgen commented Oct 30, 2024

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 girgen added the feature-request New feature or request label Oct 30, 2024
@keith-hall
Copy link
Collaborator

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

@janxkoci
Copy link

janxkoci commented Jan 15, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants