mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-20 16:57:46 +00:00
feat: subagent list dialog - working
This commit is contained in:
9
packages/cli/src/ui/components/subagents/utils.ts
Normal file
9
packages/cli/src/ui/components/subagents/utils.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { COLOR_OPTIONS } from './constants.js';
|
||||
|
||||
export const shouldShowColor = (backgroundColor?: string): boolean =>
|
||||
backgroundColor !== undefined && backgroundColor !== 'auto';
|
||||
|
||||
export const getColorForDisplay = (colorName?: string): string | undefined =>
|
||||
!colorName || colorName === 'auto'
|
||||
? undefined
|
||||
: COLOR_OPTIONS.find((color) => color.name === colorName)?.value;
|
||||
Reference in New Issue
Block a user