mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-30 12:40:44 +00:00
feat(cli): Allow custom title in CLI header (#706)
This commit is contained in:
parent
91fa770196
commit
2ab7e3da71
4 changed files with 57 additions and 4 deletions
|
|
@ -10,15 +10,19 @@ import Gradient from 'ink-gradient';
|
|||
import BigText from 'ink-big-text';
|
||||
import { Colors } from '../colors.js';
|
||||
|
||||
export const Header: React.FC = () => (
|
||||
interface HeaderProps {
|
||||
title?: string;
|
||||
}
|
||||
|
||||
export const Header: React.FC<HeaderProps> = ({ title = 'GEMINI' }) => (
|
||||
<>
|
||||
<Box alignItems="flex-start">
|
||||
{Colors.GradientColors ? (
|
||||
<Gradient colors={Colors.GradientColors}>
|
||||
<BigText text="GEMINI" letterSpacing={0} space={false} />
|
||||
<BigText text={title} letterSpacing={0} space={false} />
|
||||
</Gradient>
|
||||
) : (
|
||||
<BigText text="GEMINI" letterSpacing={0} space={false} />
|
||||
<BigText text={title} letterSpacing={0} space={false} />
|
||||
)}
|
||||
</Box>
|
||||
</>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue