From a9b00bfa94c6bc48fb997b812a042fe62019d085 Mon Sep 17 00:00:00 2001 From: Aria Beingessner Date: Thu, 30 Mar 2023 10:30:19 -0400 Subject: [PATCH] change unicode to default to ansi --- src/handlers/theme.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/handlers/theme.rs b/src/handlers/theme.rs index 0596e45..1f5236a 100644 --- a/src/handlers/theme.rs +++ b/src/handlers/theme.rs @@ -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(), } }