diff options
| author | sigoden <sigoden@gmail.com> | 2023-03-11 18:53:36 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-11 18:53:36 +0800 |
| commit | cfb6ce6958751da5e13683ea07f42a5dbc4eae01 (patch) | |
| tree | c7ec60ba7c1d2e37225ae6b1476057a18e2eb987 /src/repl/handler.rs | |
| parent | dc09cb38d480342c9fe781a19fe72d2bb892b70c (diff) | |
| download | aichat-cfb6ce6958751da5e13683ea07f42a5dbc4eae01.tar.gz | |
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
Diffstat (limited to 'src/repl/handler.rs')
| -rw-r--r-- | src/repl/handler.rs | 2 |
1 files changed, 2 insertions, 0 deletions
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(), |
