mirror of https://github.com/zkat/miette.git
change unicode to default to ansi
This commit is contained in:
parent
566d6be6e3
commit
a9b00bfa94
|
|
@ -31,10 +31,16 @@ impl GraphicalTheme {
|
||||||
|
|
||||||
/// Graphical theme that draws using both ansi colors and unicode
|
/// Graphical theme that draws using both ansi colors and unicode
|
||||||
/// characters.
|
/// characters.
|
||||||
|
///
|
||||||
|
/// Note that full rgb colors aren't enabled by default because they're
|
||||||
|
/// an accessibility hazard, especially in the context of terminal themes
|
||||||
|
/// that can change the background color and make hardcoded colors illegible.
|
||||||
|
/// Such themes typically remap ansi codes properly, treating them more
|
||||||
|
/// like CSS classes than specific colors.
|
||||||
pub fn unicode() -> Self {
|
pub fn unicode() -> Self {
|
||||||
Self {
|
Self {
|
||||||
characters: ThemeCharacters::unicode(),
|
characters: ThemeCharacters::unicode(),
|
||||||
styles: ThemeStyles::rgb(),
|
styles: ThemeStyles::ansi(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue