some icons

This commit is contained in:
Guilleag01
2023-11-27 14:41:02 +01:00
parent eb00f02843
commit 873f368004
2 changed files with 7 additions and 0 deletions

View File

@@ -31,6 +31,9 @@ pub fn default(mut elements: Vec<Element>) {
column_widths[j] = max_len; column_widths[j] = max_len;
} }
i += 1; i += 1;
if i == elements.len() {
break;
}
} }
i -= 1; i -= 1;

View File

@@ -72,6 +72,7 @@ pub fn get_size_string(bytes: u64) -> String {
} }
} }
#[inline]
pub fn system_time_to_string(system_time: SystemTime) -> String { pub fn system_time_to_string(system_time: SystemTime) -> String {
let datetime: DateTime<Utc> = system_time.into(); let datetime: DateTime<Utc> = system_time.into();
datetime.format("%d-%m-%y %H:%M").to_string() datetime.format("%d-%m-%y %H:%M").to_string()
@@ -102,6 +103,7 @@ pub fn get_icon_file_type<'a>(filename: String) -> &'a str {
"ttf" | "fnt" => "", "ttf" | "fnt" => "",
"gitignore" => "", "gitignore" => "",
"b" | "bf" => "󰧑 ", "b" | "bf" => "󰧑 ",
"makefile" => "",
"json" => "", "json" => "",
"html" => "", "html" => "",
"lock" => "󰌾 ", "lock" => "󰌾 ",
@@ -119,7 +121,9 @@ pub fn get_icon_file_type<'a>(filename: String) -> &'a str {
"js" => "", "js" => "",
"sh" => "", "sh" => "",
"db" => "󰆼 ", "db" => "󰆼 ",
"cs" => "",
"c" => "", "c" => "",
"r" => "",
_ => "󰈔 ", _ => "󰈔 ",
} }
} }