From f8e8da018bcd2598a47260581faad2cbafad7f3a Mon Sep 17 00:00:00 2001 From: Denis Isidoro Date: Thu, 12 Mar 2020 23:58:51 -0300 Subject: [PATCH] Minor theme change (#246) --- src/display.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/display.rs b/src/display.rs index 25da1c8..c905c7f 100644 --- a/src/display.rs +++ b/src/display.rs @@ -1,11 +1,13 @@ use crate::terminal; + +use std::cmp::max; use termion::color; static COMMENT_COLOR: color::LightCyan = color::LightCyan; -static TAG_COLOR: color::LightGreen = color::LightGreen; +static TAG_COLOR: color::Blue = color::Blue; static SNIPPET_COLOR: color::White = color::White; -pub static DELIMITER: char = '\t'; +pub static DELIMITER: &str = r" ⠀"; lazy_static! { pub static ref WIDTHS: (usize, usize) = get_widths(); @@ -13,8 +15,8 @@ lazy_static! { fn get_widths() -> (usize, usize) { let width = terminal::width(); - let tag_width = width * 10 / 100; - let comment_width = width * 50 / 100; + let tag_width = max(4, width * 20 / 100); + let comment_width = max(4, width * 40 / 100); (usize::from(tag_width), usize::from(comment_width)) }