Minor theme change (#246)

This commit is contained in:
Denis Isidoro 2020-03-12 23:58:51 -03:00 committed by GitHub
parent 7f4fc90116
commit f8e8da018b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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))
}