From 40e63a253e58de6ec962a3dabd640f3fb0b9b663 Mon Sep 17 00:00:00 2001 From: Caleb Bassi Date: Mon, 13 Jan 2020 08:27:37 -0800 Subject: [PATCH] Refactor colorscheme --- src/colorscheme.rs | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/colorscheme.rs b/src/colorscheme.rs index d154984..a503739 100644 --- a/src/colorscheme.rs +++ b/src/colorscheme.rs @@ -31,26 +31,26 @@ impl FromStr for Colorschemes { #[derive(Deserialize)] struct ColorschemeRaw { - pub fg: i64, - pub bg: i64, + fg: i64, + bg: i64, - pub titles: i64, - pub borders: i64, + titles: i64, + borders: i64, - pub battery_lines: Vec, + battery_lines: Vec, // need at least 8 entries - pub cpu_lines: Vec, + cpu_lines: Vec, - pub mem_main: i64, - pub mem_swap: i64, + mem_main: i64, + mem_swap: i64, - pub net_bars: i64, + net_bars: i64, - pub proc_cursor: i64, + proc_cursor: i64, - pub temp_low: i64, - pub temp_high: i64, + temp_low: i64, + temp_high: i64, } pub struct Colorscheme {