浏览代码

feat(output): add icon function to FileNameColours trait

Signed-off-by: Sandro-Alessio Gierens <sandro@gierens.de>
Sandro-Alessio Gierens 2 年之前
父节点
当前提交
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;
 }