@@ -70,25 +70,25 @@ impl PathType {
7070
7171 fn get_color_for_type ( & self ) -> String {
7272 match self {
73- Self :: Dir => format ! ( "{}" , termion:: color:: Fg ( termion:: color:: LightBlue ) ) ,
74- Self :: Symlink => format ! ( "{}" , termion:: color:: Fg ( termion:: color:: LightMagenta ) ) ,
75- Self :: Path => format ! ( "{}" , termion:: color:: Fg ( termion:: color:: White ) ) ,
76- Self :: Pipe => format ! ( "{}" , termion:: color:: Fg ( termion:: color:: Yellow ) ) ,
77- Self :: CharD => format ! ( "{}{}" , termion:: color:: Bg ( termion:: color:: Yellow ) , termion:: color:: Fg ( termion:: color:: LightBlue ) ) ,
78- Self :: BlockD => format ! ( "{}" , termion:: color:: Fg ( termion:: color:: LightGreen ) ) ,
79- Self :: Socket => format ! ( "{}" , termion:: color:: Fg ( termion:: color:: LightRed ) ) ,
73+ Self :: Dir => format ! ( "{}" , termion:: color:: Fg ( termion:: color:: LightBlue ) ) ,
74+ Self :: Symlink => format ! ( "{}" , termion:: color:: Fg ( termion:: color:: LightMagenta ) ) ,
75+ Self :: Path => format ! ( "{}" , termion:: color:: Fg ( termion:: color:: White ) ) ,
76+ Self :: Pipe => format ! ( "{}" , termion:: color:: Fg ( termion:: color:: Yellow ) ) ,
77+ Self :: CharD => format ! ( "{}{}" , termion:: color:: Bg ( termion:: color:: Yellow ) , termion:: color:: Fg ( termion:: color:: LightBlue ) ) ,
78+ Self :: BlockD => format ! ( "{}" , termion:: color:: Fg ( termion:: color:: LightGreen ) ) ,
79+ Self :: Socket => format ! ( "{}" , termion:: color:: Fg ( termion:: color:: LightRed ) ) ,
8080 }
8181 }
8282
8383 fn get_text_traits_for_type ( & self , name : & str , file : & std:: path:: PathBuf ) -> String {
8484 match self {
85- Self :: Dir => text_effects:: bold ( & format ! ( "{}{}/" , name, termion:: color:: Fg ( termion:: color:: White ) ) ) ,
85+ Self :: Dir => text_effects:: bold ( & format ! ( "{}{}/" , name, termion:: color:: Fg ( termion:: color:: White ) ) ) ,
8686 Self :: Symlink => text_effects:: italic ( & format ! ( "{} -> {}" , name, std:: fs:: read_link( file) . unwrap( ) . display( ) . to_string( ) ) ) ,
87- Self :: Path => text_effects:: bold ( name) ,
88- Self :: Pipe => text_effects:: bold ( & format ! ( "{}{}|" , name, termion:: color:: Fg ( termion:: color:: White ) ) ) ,
89- Self :: CharD => text_effects:: bold ( name) ,
90- Self :: BlockD => text_effects:: bold ( name) ,
91- Self :: Socket => text_effects:: bold ( & format ! ( "{}{}=" , name, termion:: color:: Fg ( termion:: color:: White ) ) ) ,
87+ Self :: Path => text_effects:: bold ( name) ,
88+ Self :: Pipe => text_effects:: bold ( & format ! ( "{}{}" , name, termion:: color:: Fg ( termion:: color:: White ) ) ) ,
89+ Self :: CharD => text_effects:: bold ( name) ,
90+ Self :: BlockD => text_effects:: bold ( name) ,
91+ Self :: Socket => text_effects:: bold ( & format ! ( "{}{}" , name, termion:: color:: Fg ( termion:: color:: White ) ) ) ,
9292 }
9393 }
9494}
0 commit comments