From 1fc07f29c9aada0e1489080304db598bec683bc4 Mon Sep 17 00:00:00 2001 From: gambas Date: Sat, 24 Apr 2021 16:40:56 +0200 Subject: [PATCH] FileView: Add new default file type icons. [GB.FORM] * NEW: FileView: Add new default file type icons. --- comp/src/gb.form/.src/File/FileView.class | 27 +++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/comp/src/gb.form/.src/File/FileView.class b/comp/src/gb.form/.src/File/FileView.class index bef81f243..ffdbd125b 100644 --- a/comp/src/gb.form/.src/File/FileView.class +++ b/comp/src/gb.form/.src/File/FileView.class @@ -84,31 +84,47 @@ Static Public Sub _init() $cExt["html"] = "html" $cExt["htm"] = "html" - $cExt["css"] = "html" + $cExt["css"] = "css" + $cExt["js"] = "js" + $cExt["xml"] = "xml" + $cExt["tar"] = "archive" $cExt["gz"] = "archive" $cExt["tgz"] = "archive" $cExt["bz2"] = "archive" $cExt["z"] = "archive" $cExt["zip"] = "archive" + $cExt["xz"] = "archive" + $cExt["txt"] = "text" + $cExt["log"] = "text" $cExt["json"] = "text" + $cExt["mp3"] = "audio" $cExt["aac"] = "audio" $cExt["ogg"] = "audio" + $cExt["oga"] = "audio" + $cExt["flac"] = "audio" $cExt["wav"] = "audio" + $cExt["mpg"] = "video" $cExt["mpeg"] = "video" $cExt["avi"] = "video" $cExt["wmv"] = "video" $cExt["mov"] = "video" + $cExt["gambas"] = "gambas" - $cExt["c"] = "text" - $cExt["cpp"] = "text" - $cExt["h"] = "text" + $cExt["gbs"] = "gambas" + + $cExt["c"] = "c" + $cExt["cpp"] = "cpp" + $cExt["h"] = "h" + $cExt["deb"] = "package" $cExt["rpm"] = "package" + $cExt["iso"] = "cdrom" + $cExt["jpg"] = "image" $cExt["jpeg"] = "image" $cExt["png"] = "image" @@ -118,7 +134,10 @@ Static Public Sub _init() $cExt["ico"] = "image" $cExt["xcf"] = "image" $cExt["svg"] = "image" + $cExt["svgz"] = "image" + $cExt["pdf"] = "pdf" + $cExt["ttf"] = "font" $cExt["otf"] = "font" $cExt["bdf"] = "font"