mirror of
https://github.com/tiennm99/ccstatusline.git
synced 2026-10-13 02:14:29 +00:00
Fix color changing for git status
This commit is contained in:
1 parent
7d7dd2084b
commit
9abd1ed183
1 file changed
+2
-1
+2
-1
@@ -660,7 +660,7 @@ interface ColorMenuProps {
|
||||
|
||||
const ColorMenu: React.FC<ColorMenuProps> = ({ items, onUpdate, onBack }) => {
|
||||
const colorableItems = items.filter(item =>
|
||||
['model', 'git-branch', 'tokens-input', 'tokens-output', 'tokens-cached', 'tokens-total', 'context-length', 'context-percentage', 'session-clock', 'version', 'custom-text'].includes(item.type)
|
||||
['model', 'git-branch', 'git-changes', 'tokens-input', 'tokens-output', 'tokens-cached', 'tokens-total', 'context-length', 'context-percentage', 'session-clock', 'terminal-width', 'version', 'custom-text'].includes(item.type)
|
||||
);
|
||||
const [selectedIndex, setSelectedIndex] = useState(0);
|
||||
|
||||
@@ -699,6 +699,7 @@ const ColorMenu: React.FC<ColorMenuProps> = ({ items, onUpdate, onBack }) => {
|
||||
case 'context-length': return 'Context Length';
|
||||
case 'context-percentage': return 'Context Percentage';
|
||||
case 'session-clock': return 'Session Clock';
|
||||
case 'terminal-width': return 'Terminal Width';
|
||||
case 'version': return 'Version';
|
||||
case 'custom-text': return `Custom Text (${item.customText || 'Empty'})`;
|
||||
default: return item.type;
|
||||
|
||||
Reference in new issue
Block a user