فهرست منبع

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.
     fn mount_point(&self) -> Style;
 
+    fn icon(&self) -> Option<Style>;
+
     fn colour_file(&self, file: &File<'_>) -> Style;
 }