Changed preview code

This commit is contained in:
ms2300 authored and David Peter committed 2018-08-28 20:24:13 +02:00
1 parent 38544ed735
commit 4ea3e6bbb7
3 files changed
+8 -8

No files matched your search

+3 -2
View File
@@ -134,12 +134,13 @@ 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.files = vec![Some("assets/theme_preview.rs")];
config.output_components = OutputComponents(style);
for (theme, _) in themes.iter() {
println!("{}", theme);
println!("{}\n", theme);
config.theme = theme.to_string();
let _controller = Controller::new(&config, &assets).run();
println!("--------------------------------\n");
}
}