-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
--theme auto results in the fallback to the default theme #3641
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't working
Description
What steps will reproduce the bug?
-
Configure the environment as following:
BAT_PAGER=less --RAW-CONTROL-CHARS --quit-if-one-screen --mouse BAT_STYLE=plain,changes BAT_THEME=auto BAT_THEME_DARK=neovim-dark BAT_THEME_LIGHT=neovim-light -
Launch a dark terminal. I am using foot version 1.26.1 with
$TERMset tofoot-direct. Here are the colours:

-
Create a tiny
foo.pyto test the highlighting:def foo(bar: list[int]) -> str: baz, *blah = bar return f"{baz}-{blah}" print(foo([1, 2, 3, 4]))
What happens?
What did you expect to happen instead?
When terminal is dark (also, org.gnome.desktop.interface color-scheme is prefer-dark), I would expect bat to respect the BAT_THEME=auto as per manual. So when the terminal is dark it should be:
And when the terminal is light:
How did you install bat?
GitHub release.
bat version and environment
bat 0.25.0
bat has been built without the 'bugreport' feature. The '--diagnostic' option is not available.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
