]> Sergey Matveev's repositories - nnn.git/commitdiff
add webp icon
authorNRK <nrk@disroot.org>
Sun, 26 Dec 2021 08:43:18 +0000 (14:43 +0600)
committerNRK <nrk@disroot.org>
Sun, 26 Dec 2021 08:43:18 +0000 (14:43 +0600)
src/icons-nerdfont.h
src/icons.h

index d5316fbe20b057711208642ca8ed59a73d8cc8f9..53077b4db0173488a133b65997f8424815cd9e01 100644 (file)
 /* W */
 #define ICON_EXT_WAV       ICON_MUSICFILE
 #define ICON_EXT_WEBM      ICON_VIDEOFILE
+#define ICON_EXT_WEBP      ICON_PICTUREFILE
 #define ICON_EXT_WMA       ICON_VIDEOFILE
 #define ICON_EXT_WMV       ICON_VIDEOFILE
 
index ca345a452cc35736dff515adbd5c2366a2f70172..0daeb7c73e71bb38a5aebd805e967092069cf217 100644 (file)
@@ -95,7 +95,7 @@ static const struct icon_pair icons_name[] = {
 };
 
 /*
- * New entries should bu added such that the first character of the extension is in the correct group .
+ * New entries should be added such that the first character of the extension is in the correct group .
  * This is done for performance reason so that the correct icon can be found faster.
  * All entries are case-insensitive
  */
@@ -284,6 +284,7 @@ static const struct icon_pair icons_ext[] = {
        /* W */
        {"wav",      FA_FILE_AUDIO_O,      COLOR_AUDIO},
        {"webm",     FA_FILE_MOVIE_O,      COLOR_VIDEO},
+       {"webp",     FA_FILE_IMAGE_O,      COLOR_IMAGE},
        {"wma",      FA_FILE_AUDIO_O,      COLOR_AUDIO},
        {"wmv",      FA_FILE_MOVIE_O,      COLOR_VIDEO},
 
@@ -502,6 +503,7 @@ static const struct icon_pair icons_ext[] = {
        /* W */
        {"wav",        ICON_EXT_WAV,       COLOR_AUDIO},
        {"webm",       ICON_EXT_WEBM,      COLOR_VIDEO},
+       {"webp",       ICON_EXT_WEBP,      COLOR_IMAGE},
        {"wma",        ICON_EXT_WMA,       COLOR_AUDIO},
        {"wmv",        ICON_EXT_WMV,       COLOR_VIDEO},