diff options
Diffstat (limited to 'src/bin/main.rs')
-rw-r--r-- | src/bin/main.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/bin/main.rs b/src/bin/main.rs index 4332f759..9a6d1795 100644 --- a/src/bin/main.rs +++ b/src/bin/main.rs @@ -30,7 +30,7 @@ use crossterm::{ use tui::{backend::CrosstermBackend, Terminal}; use bottom::{ - canvas::{self, canvas_styling::CanvasColours}, + canvas::{self, canvas_styling::CanvasStyling}, constants::*, data_conversion::*, options::*, @@ -66,9 +66,9 @@ fn main() -> Result<()> { .context("Found an issue while trying to build the widget layout.")?; // FIXME: Should move this into build app or config - let colours = { + let styling = { let colour_scheme = get_color_scheme(&matches, &config)?; - CanvasColours::new(colour_scheme, &config)? + CanvasStyling::new(colour_scheme, &config)? }; // Create an "app" struct, which will control most of the program and store settings/state @@ -78,11 +78,11 @@ fn main() -> Result<()> { &widget_layout, default_widget_id, &default_widget_type_option, - &colours, + &styling, )?; // Create painter and set colours. - let mut painter = canvas::Painter::init(widget_layout, colours)?; + let mut painter = canvas::Painter::init(widget_layout, styling)?; // Check if the current environment is in a terminal. check_if_terminal(); |