feat: larger boxess

This commit is contained in:
Nikita Revenco 2024-12-19 15:28:19 +00:00
parent a0a622d20d
commit 2b0c425cc6

View file

@ -92,7 +92,7 @@ impl menu::Item for CompletionItem {
None => None,
};
maybe_hex_color.map_or(Span::raw("color"), |c| match Color::from_hex(c) {
Ok(l) => Span::styled("", Style::default().fg(l)),
Ok(l) => Span::styled(" ", Style::default().bg(l)),
Err(_) => Span::raw("color"),
})
}