Skip to content

Commit 7ab588b

Browse files
branchseerclaude
andcommitted
feat: Match task selector colors with vite-plus command picker
Selected items: DarkGrey marker, Blue+Bold label, DarkGrey description. Non-selected items: default label color, DarkGrey description. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 439bc69 commit 7ab588b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

crates/vite_select/src/interactive.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -389,21 +389,21 @@ pub fn render_items(writer: &mut impl Write, params: &RenderParams<'_>) -> anyho
389389
(false, false) => " ",
390390
};
391391
let reset = SetAttribute(Attribute::Reset);
392+
let dark_grey = SetForegroundColor(Color::DarkGrey);
392393
if is_selected {
394+
let blue = SetForegroundColor(Color::Blue);
393395
let bold = SetAttribute(Attribute::Bold);
394396
write!(
395397
writer,
396-
"{bold}{prefix}{name}:{:>pad$} {desc}{reset}{line_ending}",
398+
"{dark_grey}{prefix}{reset}{blue}{bold}{name}:{reset}{dark_grey}{:>pad$} {desc}{reset}{line_ending}",
397399
"",
398400
pad = name_padding,
399401
desc = display_desc,
400402
)?;
401403
} else {
402-
// Color only the name, not the colon/description.
403-
let cyan = SetForegroundColor(Color::Cyan);
404404
write!(
405405
writer,
406-
"{prefix}{cyan}{name}{reset}:{:>pad$} {desc}{line_ending}",
406+
"{prefix}{name}:{dark_grey}{:>pad$} {desc}{reset}{line_ending}",
407407
"",
408408
pad = name_padding,
409409
desc = display_desc,

0 commit comments

Comments
 (0)