···11use ratatui::{
22- style::{Color, Modifier},
22+ style::{Color, Modifier, Stylize},
33 text::{Line, Span, Text},
44 widgets::{List, ListState},
55};
···3939 let id_list = tree
4040 .tree
4141 .traverse_pre_order_ids(scope)
4242- .expect("This should nto panic as the node id should exist inside")
4242+ .expect("This should not panic as the node id should exist inside")
4343 .collect::<Vec<_>>();
44444545 Self {
···6161 fn from(value: &TodoNode) -> Self {
6262 let spacer = Span::from(" ".repeat(value.depth));
6363 let name = match value.kind {
6464- TodoNodeKind::Group(ref g) => Span::from(g.name.clone()),
6464+ TodoNodeKind::Group(ref g) => Span::from(g.name.clone()).bg(g.tag.color),
6565 TodoNodeKind::Task(ref t) => Span::from(t.name.clone()),
6666 TodoNodeKind::Root => Span::from("THIS SHOULD NOT BE VISIBLE"),
6767 };