bat/src
Martin Nordholts 3339eee2dc
Make the default macOS theme depend on Dark Mode (#2197)
* Make the default macOS theme depend on Dark Mode

We frequently get complaints from macOS users that bat does not work on
their default macOS terminal background, which is white.

Pay the price of slightly increased startup time to get a better default
on macOS. To avoid the slightly increased startup time, simply specify a
theme explicitly via `--theme`, `BAT_THEME`, or `~/.config/bat`.

Note that if there is an error when we check if Dark Mode is enabled, we
behave the same as on Windows and Linux; assume that the terminal
background is dark. This harmonizes behavior across platforms, and makes
bat behave the same as before, when Dark Mode was always assumed to be
enabled.

* src/assets.rs: Fix typo

* Update CHANGELOG.md
2022-05-24 19:29:03 +02:00
..
assets Allow the license used by GraphQL 2022-02-07 06:14:07 +01:00
bin/bat Add a --style=default option (#2119) 2022-05-04 21:31:32 +02:00
syntax_mapping Support for ignored-suffix CLI arguments (#1892) 2021-11-19 17:05:23 +01:00
assets.rs Make the default macOS theme depend on Dark Mode (#2197) 2022-05-24 19:29:03 +02:00
config.rs Add various other code refactorings 2021-09-12 15:50:10 +02:00
controller.rs use io::Empty instead of crafted dummy stdin struct 2021-10-23 13:04:24 +02:00
decorations.rs Reduce public API 2020-04-22 23:55:28 +02:00
diff.rs Improve readability 2021-03-07 14:59:10 +01:00
error.rs Bump to syntect 5.0.0 to e.g. start lazy-loading syntaxes (#2181) 2022-05-07 13:43:11 +02:00
input.rs Run cargo clippy --fix --all-targets --all-features with Rust 1.60 2022-05-04 07:49:40 +02:00
less.rs Add support for BusyBox less as pager (#2162) 2022-05-04 07:56:38 +02:00
lib.rs Improved ANSI passthrough (#1596) 2021-12-08 16:06:42 +01:00
line_range.rs Line range edge cases test 2021-11-24 07:27:36 +01:00
macros.rs Introduce bat_warning! helper macro 2020-12-28 09:27:40 +01:00
output.rs Add support for BusyBox less as pager (#2162) 2022-05-04 07:56:38 +02:00
pager.rs Refactor "Use matches macro" 2021-05-27 12:05:07 +02:00
paging.rs Move PagingMode to separate module 2020-04-22 23:55:28 +02:00
preprocessor.rs correctly handle multiple tabs in one line 2022-03-06 20:03:00 +01:00
pretty_printer.rs Allow configuring show_nonprintable from PrettyPrinter 2022-04-02 21:05:37 +02:00
printer.rs Bump to syntect 5.0.0 to e.g. start lazy-loading syntaxes (#2181) 2022-05-07 13:43:11 +02:00
style.rs Add a --style=default option (#2119) 2022-05-04 21:31:32 +02:00
syntax_mapping.rs Add mapping for Unix mail spool (#2156) 2022-04-27 22:51:10 +02:00
terminal.rs Add ansi theme to replace ansi-light and ansi-dark 2020-12-21 17:05:10 +01:00
vscreen.rs Improved ANSI passthrough (#1596) 2021-12-08 16:06:42 +01:00
wrapping.rs Addressed PR feedback. Upped min version and used matches! macro 2021-01-09 15:21:26 +01:00