Browse Source

feat(output): add icon function to FileNameColours trait

Signed-off-by: Sandro-Alessio Gierens <sandro@gierens.de>
Sandro-Alessio Gierens 1 năm trước cách đây
mục cha
commit
569d7750ec
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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.
     fn mount_point(&self) -> Style;
 
+    fn icon(&self) -> Option<Style>;
+
     fn colour_file(&self, file: &File<'_>) -> Style;
 }