Skip to content

Commit 159f2b3

Browse files
authoredMar 30, 2023
fix(colors): change unicode to default to ansi (#249)
1 parent 566d6be commit 159f2b3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed
 

‎src/handlers/theme.rs

+7-1
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,16 @@ impl GraphicalTheme {
3131

3232
/// Graphical theme that draws using both ansi colors and unicode
3333
/// characters.
34+
///
35+
/// Note that full rgb colors aren't enabled by default because they're
36+
/// an accessibility hazard, especially in the context of terminal themes
37+
/// that can change the background color and make hardcoded colors illegible.
38+
/// Such themes typically remap ansi codes properly, treating them more
39+
/// like CSS classes than specific colors.
3440
pub fn unicode() -> Self {
3541
Self {
3642
characters: ThemeCharacters::unicode(),
37-
styles: ThemeStyles::rgb(),
43+
styles: ThemeStyles::ansi(),
3844
}
3945
}
4046

0 commit comments

Comments
 (0)
Please sign in to comment.