From cfb6ce6958751da5e13683ea07f42a5dbc4eae01 Mon Sep 17 00:00:00 2001 From: sigoden Date: Sat, 11 Mar 2023 18:53:36 +0800 Subject: feat: support light theme (#65) There are two ways to enable the light theme: - add `light_theme: true` to config.yaml - use `AICHAT_LIGHT_THEME=true` env var --- src/repl/handler.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/repl/handler.rs') diff --git a/src/repl/handler.rs b/src/repl/handler.rs index ce95855..a7f4b08 100644 --- a/src/repl/handler.rs +++ b/src/repl/handler.rs @@ -51,11 +51,13 @@ impl ReplCmdHandler { return Ok(()); } let highlight = self.config.lock().highlight; + let light_theme = self.config.lock().light_theme; let wg = WaitGroup::new(); let ret = render_stream( &input, &self.client, highlight, + light_theme, true, self.abort.clone(), wg.clone(), -- cgit v1.2.3