Changed to plain style

This commit is contained in:
ms2300 2018-08-27 14:10:56 -06:00 committed by David Peter
parent 5444b0dfed
commit 38544ed735

View File

@ -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();