From 04181084c0ba9867ba0836d59fc814b23b9b6e47 Mon Sep 17 00:00:00 2001 From: NRK Date: Sun, 26 Dec 2021 14:43:18 +0600 Subject: [PATCH] add webp icon --- src/icons-nerdfont.h | 1 + src/icons.h | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/icons-nerdfont.h b/src/icons-nerdfont.h index d5316fbe..53077b4d 100644 --- a/src/icons-nerdfont.h +++ b/src/icons-nerdfont.h @@ -251,6 +251,7 @@ /* 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 diff --git a/src/icons.h b/src/icons.h index ca345a45..0daeb7c7 100644 --- a/src/icons.h +++ b/src/icons.h @@ -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},