file-browser: Add more package icons
This commit is contained in:
parent
506963c91b
commit
4a0492aad5
@ -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) {
|
||||
|
BIN
base/usr/share/icons/48/package_a.png
Normal file
BIN
base/usr/share/icons/48/package_a.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.2 KiB |
BIN
base/usr/share/icons/48/package_tar.png
Normal file
BIN
base/usr/share/icons/48/package_tar.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.4 KiB |
BIN
base/usr/share/icons/48/package_targz.png
Normal file
BIN
base/usr/share/icons/48/package_targz.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.9 KiB |
BIN
base/usr/share/icons/48/package_zip.png
Normal file
BIN
base/usr/share/icons/48/package_zip.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.5 KiB |
Loading…
Reference in New Issue
Block a user