Skip to content

Commit

Permalink
Try to detect the current theme based on the terminal background color
Browse files Browse the repository at this point in the history
This uses the termbg crate, as discussed here:
#1746
Other than that, it uses the same logic as on macOS.

This behavior should probably be extended to macOS too, for cases like a
terminal with a light background while the system theme is dark (or vice
versa). But I didn't want to accidentally break anything on macOS.
  • Loading branch information
aykevl committed Dec 8, 2023
1 parent 28990bc commit c4af3ee
Show file tree
Hide file tree
Showing 5 changed files with 759 additions and 11 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Features

- Make the default theme depend on the terminal background, when available, see #2797 (@aykevl).

## Bugfixes

- Fix `NO_COLOR` support, see #2767 (@acuteenvy)
Expand Down

0 comments on commit c4af3ee

Please sign in to comment.