diff options
| author | Jacob Richman <[email protected]> | 2025-04-24 11:36:34 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-04-24 11:36:34 -0700 |
| commit | 5790a5d7cf85deda92bf2e58477558b4a4ebc726 (patch) | |
| tree | 26bd2a9c15a93a8378168aedcbbf45da9c35a2d5 /packages/cli/src/ui/App.tsx | |
| parent | d8c0587346b759d7ca5e02651a6bfb7586f67a34 (diff) | |
Add a theme preview and update the theme when highlight changes. (#151)
Diffstat (limited to 'packages/cli/src/ui/App.tsx')
| -rw-r--r-- | packages/cli/src/ui/App.tsx | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/packages/cli/src/ui/App.tsx b/packages/cli/src/ui/App.tsx index d6813387..cd8295f7 100644 --- a/packages/cli/src/ui/App.tsx +++ b/packages/cli/src/ui/App.tsx @@ -39,8 +39,12 @@ export const App = ({ config, cliVersion }: AppProps) => { const { elapsedTime, currentLoadingPhrase } = useLoadingIndicator(streamingState); - const { isThemeDialogOpen, openThemeDialog, handleThemeSelect } = - useThemeCommand(); + const { + isThemeDialogOpen, + openThemeDialog, + handleThemeSelect, + handleThemeHighlight, + } = useThemeCommand(); useStartupWarnings(setStartupWarnings); useInitializationErrorEffect(initError, history, setHistory); @@ -134,7 +138,10 @@ export const App = ({ config, cliVersion }: AppProps) => { )} {isThemeDialogOpen ? ( - <ThemeDialog onSelect={handleThemeSelect} /> + <ThemeDialog + onSelect={handleThemeSelect} + onHighlight={handleThemeHighlight} + /> ) : ( <> <Box flexDirection="column"> |
