add label new

This commit is contained in:
JMARyA 2024-06-06 13:04:57 +02:00
parent 09f6dd0625
commit c469386c6a
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263
4 changed files with 40 additions and 6 deletions

View file

@ -66,7 +66,7 @@ pub fn time_since(event: DateTime<Utc>) -> String {
}
fn print_label(label: &Label) {
let color = hex_to_color(&label.hex_color).unwrap();
let color = hex_to_color(&label.hex_color).unwrap_or(Color::Reset);
print_color_bg(color, label.title.trim());
}