bat/tests
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
..
benchmarks Add new --style called header-filesize and display it by default (#1988) 2022-02-07 20:48:57 +01:00
examples Skip syntax highlighting for long lines (#2165) 2022-05-04 07:59:24 +02:00
mocked-pagers tests: Make mocked pagers work on Windows 2021-01-04 20:22:04 +01:00
scripts CICD: Add check for accidental inclusion of GPL:ed code 2021-11-28 21:04:37 +01:00
snapshots Add new --style called header-filesize and display it by default (#1988) 2022-02-07 20:48:57 +01:00
syntax-tests Make INI syntax register as handler of .inf files 2022-05-11 17:39:01 +02:00
utils tests: Move 'mocked pagers' utils to separate file 2021-01-10 14:05:39 +01:00
.gitattributes Modify Linguist overrides 2021-06-14 08:36:20 +02:00
assets.rs Add "Visual Studio Dark+" theme to vec of themes 2021-03-24 18:39:06 +05:00
integration_tests.rs Make the default macOS theme depend on Dark Mode (#2197) 2022-05-24 19:29:03 +02:00
no_duplicate_extensions.rs HighlightingAssets: Make .syntaxes() and syntax_for_file_name() failable 2021-07-29 08:26:18 +02:00
snapshot_tests.rs Use BatTester::default instead of BatTester::new 2021-01-09 19:43:39 +01:00
tester.rs Update dependencies; replace unmaintained (#1522) 2021-02-16 08:50:41 +01:00