Skip to content

Commit

Permalink
fix(colors): change unicode to default to ansi (#249)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gankra committed Mar 30, 2023
1 parent 566d6be commit 159f2b3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/handlers/theme.rs
Expand Up @@ -31,10 +31,16 @@ impl GraphicalTheme {

/// Graphical theme that draws using both ansi colors and unicode
/// 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 {
Self {
characters: ThemeCharacters::unicode(),
styles: ThemeStyles::rgb(),
styles: ThemeStyles::ansi(),
}
}

Expand Down

0 comments on commit 159f2b3

Please sign in to comment.