miette/src
Benjamin Lee 1816b06a2e
feat(theme): restructure automatic color selection (#177)
Fixes: https://github.com/zkat/miette/issues/176

Change the default ansi color theme to use colors that are more similar
to the colors from the default RGB theme. In particular, don't use red
for any of the span labels, since that color is also used for errors.

BREAKING CHANGES:
* the default theme now prefers ANSI colors, even if RGB is supported
* `MietteHandlerOpts::ansi_colors` is removed
* `MietteHandlerOpts::rgb_color` now takes an enum that controls the
  color format used when color support is enabled, and has no effect
  otherwise.
2022-06-24 08:30:36 -07:00
..
eyreish fix: cargo fmt (#168) 2022-05-05 08:30:13 -07:00
handlers feat(theme): restructure automatic color selection (#177) 2022-06-24 08:30:36 -07:00
chain.rs fix(chain): correct `Chain` structure exported (#102) 2022-01-07 17:34:39 -08:00
diagnostic_chain.rs feat(diagnostic_source): add protocol method for Diagnostic-aware source chaining (#165) 2022-05-05 08:32:37 -07:00
error.rs fix(docs): Docs overhaul (#124) 2022-02-25 08:39:18 -08:00
handler.rs feat(theme): restructure automatic color selection (#177) 2022-06-24 08:30:36 -07:00
lib.rs fix(tests): add Display impl to diagnostic_source example 2022-05-05 12:44:49 -07:00
macro_helpers.rs feat(label): use macro magic instead of optional flag for optional labels 2022-04-17 22:43:01 -07:00
named_source.rs feat(spans): make SourceSpan implement Copy (#151) 2022-04-17 15:27:11 -07:00
panic.rs feat(panic): add backtrace support to panic handler and move set_panic_hook into fancy features 2021-09-22 16:34:21 -07:00
protocol.rs feat(diagnostic_source): add protocol method for Diagnostic-aware source chaining (#165) 2022-05-05 08:32:37 -07:00
source_impls.rs fix(docs): Docs overhaul (#124) 2022-02-25 08:39:18 -08:00