Add a theme preview and update the theme when highlight changes. (#151)

This commit is contained in:
Jacob Richman
2025-04-24 11:36:34 -07:00
committed by GitHub
parent d8c0587346
commit 5790a5d7cf
4 changed files with 70 additions and 5 deletions

View File

@@ -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">