mirror of
https://github.com/denisidoro/navi
synced 2024-11-22 11:33:10 +00:00
Minor theme change (#246)
This commit is contained in:
parent
7f4fc90116
commit
f8e8da018b
1 changed files with 6 additions and 4 deletions
|
@ -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))
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue