Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try to detect the current theme based on the terminal background color
This uses the termbg crate, as discussed here: sharkdp#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