add webp icon

This commit is contained in:
NRK 2021-12-26 14:43:18 +06:00
parent dcf3a35cd5
commit 04181084c0
2 changed files with 4 additions and 1 deletions

View file

@ -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

View 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},