mirror of
				https://github.com/sharkdp/bat.git
				synced 2025-11-04 00:51:56 +00:00 
			
		
		
		
	Small style changes to --list-themes
This commit is contained in:
		@@ -1,5 +1,5 @@
 | 
			
		||||
// Output the square of a number.
 | 
			
		||||
fn print_square(num: f64) {
 | 
			
		||||
    let result = f64::powf(num, 2.0);
 | 
			
		||||
    println!("The square of {:.2} is {:.2}.", num, result);
 | 
			
		||||
}
 | 
			
		||||
  // Output the square of a number.
 | 
			
		||||
  fn print_square(num: f64) {
 | 
			
		||||
      let result = f64::powf(num, 2.0);
 | 
			
		||||
      println!("The square of {:.2} is {:.2}.", num, result);
 | 
			
		||||
  }
 | 
			
		||||
 
 | 
			
		||||
@@ -139,10 +139,10 @@ pub fn list_themes(assets: &HighlightingAssets, cfg: &Config) {
 | 
			
		||||
    config.files = vec![Some("assets/theme_preview.rs")];
 | 
			
		||||
    config.output_components = OutputComponents(style);
 | 
			
		||||
    for (theme, _) in themes.iter() {
 | 
			
		||||
        println!("{}\n", Style::new().bold().paint(theme.to_string()));
 | 
			
		||||
        println!("Theme: {}\n", Style::new().bold().paint(theme.to_string()));
 | 
			
		||||
        config.theme = theme.to_string();
 | 
			
		||||
        let _controller = Controller::new(&config, &assets).run();
 | 
			
		||||
        println!("--------------------------------\n");
 | 
			
		||||
        println!()
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user