From 4a0492aad5eca02af4a9b014629c6087e0086d13 Mon Sep 17 00:00:00 2001 From: "K. Lange" Date: Thu, 8 Apr 2021 10:20:31 +0900 Subject: [PATCH] file-browser: Add more package icons --- apps/file-browser.c | 10 ++++++++-- base/usr/share/icons/48/package_a.png | Bin 0 -> 1193 bytes base/usr/share/icons/48/package_tar.png | Bin 0 -> 1459 bytes base/usr/share/icons/48/package_targz.png | Bin 0 -> 1907 bytes base/usr/share/icons/48/package_zip.png | Bin 0 -> 1498 bytes 5 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 base/usr/share/icons/48/package_a.png create mode 100644 base/usr/share/icons/48/package_tar.png create mode 100644 base/usr/share/icons/48/package_targz.png create mode 100644 base/usr/share/icons/48/package_zip.png diff --git a/apps/file-browser.c b/apps/file-browser.c index 741ffbe6..658ad722 100644 --- a/apps/file-browser.c +++ b/apps/file-browser.c @@ -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) { diff --git a/base/usr/share/icons/48/package_a.png b/base/usr/share/icons/48/package_a.png new file mode 100644 index 0000000000000000000000000000000000000000..819cd48692052a28165d994579df4d3b7e0b4524 GIT binary patch literal 1193 zcmV;a1XlZrP)Qy9X!i zy2~9sJ8&s6K6!oU*cP4mr5d@IT|Kt0Z+}`E|1-Tg3*0_9_m2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FSR%7KkTNTJQ11DieqQF7p?>-U+Qo(!ic-UfVX!|(XT}9!X12!7@e*~ffEI%>rgh_+DpuIGC5z~=FPlm7 z+*6NZS>e?)%8@4WHmXGsV-RBqbeIcb3|DSGpi=WmyAHVy7thy}=0dvpfwbm{F<454 zbsham8{;@_5E1;qFg9Kw*Wr@QB=P(J5h0bdIk3BrOV=h42^UC2&{`uB{#J~{KFUWv zjdo{KOiY#uv~Xj58h``C12~pN%>+!%RQdekt=5V|$nhYMhVkLb$2|#0rqK4Sos_E{ z#n~EKLQXrj#hx8oxORIAKM)+tq9>bTX0DE<6v>25pan}Qvgst2rDC4~)S0)AnUu9L zFQK@oiQeRAA+=f`wl)ejSQ~9aTsQ_s#pdYpQ~!G~FscZn-~cHg2jqdCMm^maYes6( z|CQIqHUI<&fGSV|rhx)5+vp2a!zc?#5IT`*lvJb7UPr?h!T=iZff`V0lv<-tnub}8 zViOwe@NnffI!}a$kq8J4*Nr~YbYQ+CYTi?^ajV~inO9`qvpKf8@fU}7m7s4TTi5^q N002ovPDHLkV1n}wxlI57 literal 0 HcmV?d00001 diff --git a/base/usr/share/icons/48/package_targz.png b/base/usr/share/icons/48/package_targz.png new file mode 100644 index 0000000000000000000000000000000000000000..a82993273e638f50b19099c9483c21dc269ae2be GIT binary patch literal 1907 zcmV-(2aNcMP)GAy9E#Tv=ZQCMnd0|`4Q1P4FUzi|_uKnbvpH6nS^*Hd+M?drj!|LZ3 z&yP=xjr70pfB=0*&h*F|OAq&CZ(+5rps`MmyjOdJxiq6g{b$8$sK!)6Yk`t3nv}V-MKWL2g4`7*(0w^ z|8>tcBc=K5-n3~b)k!4*o2heVd~{-{KfC9F0LIQ<>5=CjOzzV2`B1FXcrZQRNhKHJ z)EUU9CvxfJor9?Le#CJd=cxvs6{p|* zphup%^Q(Qct+ZikcF{DAx#kKXe>dEpbBwlxdVgjK0C6x8Xk%m`FQ2Tg|JoJU%=fOI z+ntBw;dogbKZ}z{BNHiPBGtJU&d%=&KYzS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