From 8764b3092adc6d622aa3df42b5fb9ff23a7b0f0f Mon Sep 17 00:00:00 2001 From: ClementTsang Date: Sat, 8 Feb 2020 16:39:50 -0500 Subject: Some cleaning up of the canvas colour setting feature --- src/canvas.rs | 152 ++++++++++++++++++++++++++++------------------------------ 1 file changed, 74 insertions(+), 78 deletions(-) (limited to 'src') diff --git a/src/canvas.rs b/src/canvas.rs index f87e4d1e..9eaa29f9 100644 --- a/src/canvas.rs +++ b/src/canvas.rs @@ -188,15 +188,14 @@ pub struct Painter { } pub struct CanvasColours { - text_colour: Color, - scroll_text_colour: Color, - scroll_bg_colour: Color, + currently_selected_text_colour: Color, + currently_selected_bg_colour: Color, currently_selected_text_style: Style, table_header_style: Style, - ram_colour: Color, - swap_colour: Color, - rx_colour: Color, - tx_colour: Color, + ram_style: Style, + swap_style: Style, + rx_style: Style, + tx_style: Style, cpu_colour_styles: Vec