file-browser: Add more package icons

This commit is contained in:
K. Lange 2021-04-08 10:20:31 +09:00
parent 506963c91b
commit 4a0492aad5
5 changed files with 8 additions and 2 deletions

View File

@ -643,11 +643,17 @@ static void load_directory(const char * path, int modifies_history) {
sprintf(f->icon, "font");
sprintf(f->filetype, "TrueType Font");
} else if (has_extension(f, ".tgz") || has_extension(f, ".tar.gz")) {
sprintf(f->icon, "package");
sprintf(f->icon, "package_targz");
sprintf(f->filetype, "Compressed Archive File");
} else if (has_extension(f, ".tar")) {
sprintf(f->icon, "package");
sprintf(f->icon, "package_tar");
sprintf(f->filetype, "Archive File");
} else if (has_extension(f, ".a")) {
sprintf(f->icon, "package_a");
sprintf(f->filetype, "Archive File");
} else if (has_extension(f, ".zip")) {
sprintf(f->icon, "package_zip");
sprintf(f->filetype, "ZIP Archive File");
} else if (has_extension(f, ".sh")) {
sprintf(f->icon, "sh");
if (statbuf.st_mode & 0111) {

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB