From e01de41925c5dc3b6d67df4dd8b45f652dcdfd99 Mon Sep 17 00:00:00 2001 From: Joscha Date: Thu, 30 Dec 2021 02:30:13 +0100 Subject: [PATCH] Make current day stand out more --- src/cli/print.rs | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/src/cli/print.rs b/src/cli/print.rs index e675a80..22f5108 100644 --- a/src/cli/print.rs +++ b/src/cli/print.rs @@ -1,7 +1,7 @@ use std::cmp; use chrono::{Datelike, NaiveDate}; -use colored::{Color, ColoredString, Colorize}; +use colored::{ColoredString, Colorize}; use crate::files::primitives::{Time, Weekday}; @@ -41,17 +41,19 @@ impl ShowLines { let weekday: Weekday = date.weekday().into(); let weekday = weekday.full_name(); - let color = if today { - Color::BrightCyan - } else { - Color::Cyan + let styled = |s: &str| { + if today { + s.bright_cyan().bold() + } else { + s.cyan() + } }; // '=' symbols before the spans start let p1 = format!("{:=