Add some icons for files

This commit is contained in:
Grigorii Horos 2019-08-03 23:41:52 +03:00
parent 89c861f24d
commit 0d3023657b
No known key found for this signature in database
GPG Key ID: 690E27A17D89A380

View File

@ -52,16 +52,18 @@ fn icon(file: &File) -> char {
"android" => '\u{e70e}', "android" => '\u{e70e}',
"apple" => '\u{f179}', "apple" => '\u{f179}',
"avro" => '\u{e60b}', "avro" => '\u{e60b}',
"c" => '\u{e61e}',
"clj" => '\u{e768}', "clj" => '\u{e768}',
"coffee" => '\u{f0f4}', "coffee" => '\u{f0f4}',
"conf" => '\u{e615}', "conf" => '\u{e615}',
"cpp" => '\u{e61d}', "cpp" => '\u{e61d}',
"c" => '\u{e61e}',
"h" => '\u{e61e}',
"css" => '\u{e749}', "css" => '\u{e749}',
"d" => '\u{e7af}', "d" => '\u{e7af}',
"dart" => '\u{e798}', "dart" => '\u{e798}',
"db" => '\u{f1c0}', "db" => '\u{f1c0}',
"diff" => '\u{f440}', "diff" => '\u{f440}',
"patch" => '\u{f440}',
"doc" => '\u{f1c2}', "doc" => '\u{f1c2}',
"ebook" => '\u{e28b}', "ebook" => '\u{e28b}',
"env" => '\u{f462}', "env" => '\u{f462}',
@ -111,6 +113,22 @@ fn icon(file: &File) -> char {
"xml" => '\u{e619}', "xml" => '\u{e619}',
"yml" => '\u{f481}', "yml" => '\u{f481}',
"zip" => '\u{f410}', "zip" => '\u{f410}',
"deb" => '\u{e77d}',
"rpm" => '\u{e7bb}',
"exe" => '\u{e70f}',
"msi" => '\u{e70f}',
"dll" => '\u{e70f}',
"sh" => '\u{f292}',
"bash" => '\u{f292}',
"zsh" => '\u{f292}',
"fish" => '\u{f292}',
"ini" => '\u{e615}',
"toml" => '\u{e615}',
"apk" => '\u{e70e}',
"ttf" => '\u{f031}',
"woff" => '\u{f031}',
"woff2" => '\u{f031}',
"otf" => '\u{f031}',
_ => '\u{f15b}' _ => '\u{f15b}'
} }
} else { } else {