on master help sign in
Changed to plain style
commit38544ed735df60423bfbc70656061b1dc30adc24 authorms2300 <matt.sewall@gmail.com> dateMon 27 Aug 2018, 14:10 (8 years ago) parent5444b0d
1 file changed+5
src/main.rs+5
src/main.rs+5
@@ -31,12 +31,14 @@ mod terminal;
3131use std::io;
3232use std::path::Path;
3333use std::process;
34+use std::collections::HashSet;
3435
3536use ansi_term::Colour::Green;
3637
3738use app::{App, Config};
3839use assets::{clear_assets, config_dir, HighlightingAssets};
3940use controller::Controller;
41+use style::{OutputComponent, OutputComponents};
4042
4143mod errors {
4244 error_chain! {
@@ -130,7 +132,10 @@ pub fn list_languages(assets: &HighlightingAssets, term_width: usize) {
130132
131133pub fn list_themes(assets: &HighlightingAssets, config: &mut Config) {
132134 let themes = &assets.theme_set.themes;
135+ let mut style = HashSet::new();
136+ style.insert(OutputComponent::Plain);
133137 config.files = vec![Some("assets/hello.rs")];
138+ config.output_components = OutputComponents(style);
134139 for (theme, _) in themes.iter() {
135140 println!("{}", theme);
136141 config.theme = theme.to_string();