mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-05-03 14:10:43 +00:00
Add a theme preview and update the theme when highlight changes. (#151)
This commit is contained in:
parent
d8c0587346
commit
5790a5d7cf
4 changed files with 70 additions and 5 deletions
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue