From 38544ed735df60423bfbc70656061b1dc30adc24 Mon Sep 17 00:00:00 2001 From: ms2300 Date: Mon, 27 Aug 2018 14:10:56 -0600 Subject: [PATCH] Changed to plain style --- src/main.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main.rs b/src/main.rs index 74a5758c..ba9af25c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -31,12 +31,14 @@ mod terminal; use std::io; use std::path::Path; use std::process; +use std::collections::HashSet; use ansi_term::Colour::Green; use app::{App, Config}; use assets::{clear_assets, config_dir, HighlightingAssets}; use controller::Controller; +use style::{OutputComponent, OutputComponents}; mod errors { error_chain! { @@ -130,7 +132,10 @@ pub fn list_languages(assets: &HighlightingAssets, term_width: usize) { pub fn list_themes(assets: &HighlightingAssets, config: &mut Config) { let themes = &assets.theme_set.themes; + let mut style = HashSet::new(); + style.insert(OutputComponent::Plain); config.files = vec![Some("assets/hello.rs")]; + config.output_components = OutputComponents(style); for (theme, _) in themes.iter() { println!("{}", theme); config.theme = theme.to_string();