mirror of
https://github.com/danog/ytop.git
synced 2024-12-02 09:27:48 +01:00
Refactor colorscheme
This commit is contained in:
parent
2a7c855c52
commit
40e63a253e
@ -31,26 +31,26 @@ impl FromStr for Colorschemes {
|
|||||||
|
|
||||||
#[derive(Deserialize)]
|
#[derive(Deserialize)]
|
||||||
struct ColorschemeRaw {
|
struct ColorschemeRaw {
|
||||||
pub fg: i64,
|
fg: i64,
|
||||||
pub bg: i64,
|
bg: i64,
|
||||||
|
|
||||||
pub titles: i64,
|
titles: i64,
|
||||||
pub borders: i64,
|
borders: i64,
|
||||||
|
|
||||||
pub battery_lines: Vec<i64>,
|
battery_lines: Vec<i64>,
|
||||||
|
|
||||||
// need at least 8 entries
|
// need at least 8 entries
|
||||||
pub cpu_lines: Vec<i64>,
|
cpu_lines: Vec<i64>,
|
||||||
|
|
||||||
pub mem_main: i64,
|
mem_main: i64,
|
||||||
pub mem_swap: i64,
|
mem_swap: i64,
|
||||||
|
|
||||||
pub net_bars: i64,
|
net_bars: i64,
|
||||||
|
|
||||||
pub proc_cursor: i64,
|
proc_cursor: i64,
|
||||||
|
|
||||||
pub temp_low: i64,
|
temp_low: i64,
|
||||||
pub temp_high: i64,
|
temp_high: i64,
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct Colorscheme {
|
pub struct Colorscheme {
|
||||||
|
Loading…
Reference in New Issue
Block a user