Преглед изворни кода

feat(output): add icon function to FileNameColours trait

Signed-off-by: Sandro-Alessio Gierens <sandro@gierens.de>
Sandro-Alessio Gierens пре 1 година
родитељ
комит
569d7750ec
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2 0
      src/output/file_name.rs

+ 2 - 0
src/output/file_name.rs

@@ -510,5 +510,7 @@ pub trait Colours: FiletypeColours {
     /// The style to paint a directory that has a filesystem mounted on it.
     /// The style to paint a directory that has a filesystem mounted on it.
     fn mount_point(&self) -> Style;
     fn mount_point(&self) -> Style;
 
 
+    fn icon(&self) -> Option<Style>;
+
     fn colour_file(&self, file: &File<'_>) -> Style;
     fn colour_file(&self, file: &File<'_>) -> Style;
 }
 }