mirror of
https://github.com/jarun/nnn.git
synced 2025-01-15 21:36:42 +00:00
Add new icon colors for mp4 and flac formats
This commit is contained in:
parent
49f21ae013
commit
8fb7feb61c
17
src/icons.h
17
src/icons.h
|
@ -39,8 +39,11 @@ struct icon_pair {
|
||||||
#define ICON_SIZE 1
|
#define ICON_SIZE 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define COLOR_VIDEO 93 /* Purple */
|
/* For color names, refer to: https://www.ditig.com/256-colors-cheat-sheet */
|
||||||
|
#define COLOR_VIDEO 190 /* Yellow2 */
|
||||||
|
#define COLOR_VIDEO1 45 /* Turquoise2 */
|
||||||
#define COLOR_AUDIO 220 /* Gold1 */
|
#define COLOR_AUDIO 220 /* Gold1 */
|
||||||
|
#define COLOR_AUDIO1 205 /* HotPink */
|
||||||
#define COLOR_IMAGE 82 /* Chartreuse2 */
|
#define COLOR_IMAGE 82 /* Chartreuse2 */
|
||||||
#define COLOR_DOCS 202 /* OrangeRed1 */
|
#define COLOR_DOCS 202 /* OrangeRed1 */
|
||||||
#define COLOR_ARCHIVE 209 /* Salmon1 */
|
#define COLOR_ARCHIVE 209 /* Salmon1 */
|
||||||
|
@ -188,7 +191,7 @@ static const struct icon_pair icons_ext[] = {
|
||||||
|
|
||||||
/* F */
|
/* F */
|
||||||
{"f#", DEV_FSHARP, 0},
|
{"f#", DEV_FSHARP, 0},
|
||||||
{"flac", FA_FILE_AUDIO_O, COLOR_AUDIO},
|
{"flac", FA_FILE_AUDIO_O, COLOR_AUDIO1},
|
||||||
{"flv", FA_FILE_MOVIE_O, COLOR_VIDEO},
|
{"flv", FA_FILE_MOVIE_O, COLOR_VIDEO},
|
||||||
{"fs", DEV_FSHARP, 0},
|
{"fs", DEV_FSHARP, 0},
|
||||||
{"fsi", DEV_FSHARP, 0},
|
{"fsi", DEV_FSHARP, 0},
|
||||||
|
@ -248,7 +251,7 @@ static const struct icon_pair icons_ext[] = {
|
||||||
{"mkv", FA_FILE_MOVIE_O, COLOR_VIDEO},
|
{"mkv", FA_FILE_MOVIE_O, COLOR_VIDEO},
|
||||||
{"mov", FA_FILE_MOVIE_O, COLOR_VIDEO},
|
{"mov", FA_FILE_MOVIE_O, COLOR_VIDEO},
|
||||||
{"mp3", FA_FILE_AUDIO_O, COLOR_AUDIO},
|
{"mp3", FA_FILE_AUDIO_O, COLOR_AUDIO},
|
||||||
{"mp4", FA_FILE_MOVIE_O, COLOR_VIDEO},
|
{"mp4", FA_FILE_MOVIE_O, COLOR_VIDEO1},
|
||||||
{"mpeg", FA_FILE_MOVIE_O, COLOR_VIDEO},
|
{"mpeg", FA_FILE_MOVIE_O, COLOR_VIDEO},
|
||||||
{"mpg", FA_FILE_MOVIE_O, COLOR_VIDEO},
|
{"mpg", FA_FILE_MOVIE_O, COLOR_VIDEO},
|
||||||
{"msi", FA_WINDOWS, 0},
|
{"msi", FA_WINDOWS, 0},
|
||||||
|
@ -399,7 +402,7 @@ static const struct icon_pair icons_ext[] = {
|
||||||
/* F */
|
/* F */
|
||||||
{"f#", ICON_EXT_FSHARP, COLOR_FSHARP},
|
{"f#", ICON_EXT_FSHARP, COLOR_FSHARP},
|
||||||
{"fen", ICON_EXT_FEN, 0},
|
{"fen", ICON_EXT_FEN, 0},
|
||||||
{"flac", ICON_EXT_FLAC, COLOR_AUDIO},
|
{"flac", ICON_EXT_FLAC, COLOR_AUDIO1},
|
||||||
{"flv", ICON_EXT_FLV, COLOR_VIDEO},
|
{"flv", ICON_EXT_FLV, COLOR_VIDEO},
|
||||||
{"fs", ICON_EXT_FS, COLOR_FSHARP},
|
{"fs", ICON_EXT_FS, COLOR_FSHARP},
|
||||||
{"fsi", ICON_EXT_FSI, COLOR_FSHARP},
|
{"fsi", ICON_EXT_FSI, COLOR_FSHARP},
|
||||||
|
@ -462,7 +465,7 @@ static const struct icon_pair icons_ext[] = {
|
||||||
{"mkv", ICON_EXT_MKV, COLOR_VIDEO},
|
{"mkv", ICON_EXT_MKV, COLOR_VIDEO},
|
||||||
{"mov", ICON_EXT_MOV, COLOR_VIDEO},
|
{"mov", ICON_EXT_MOV, COLOR_VIDEO},
|
||||||
{"mp3", ICON_EXT_MP3, COLOR_AUDIO},
|
{"mp3", ICON_EXT_MP3, COLOR_AUDIO},
|
||||||
{"mp4", ICON_EXT_MP4, COLOR_VIDEO},
|
{"mp4", ICON_EXT_MP4, COLOR_VIDEO1},
|
||||||
{"mpeg", ICON_EXT_MPEG, COLOR_VIDEO},
|
{"mpeg", ICON_EXT_MPEG, COLOR_VIDEO},
|
||||||
{"mpg", ICON_EXT_MPG, COLOR_VIDEO},
|
{"mpg", ICON_EXT_MPG, COLOR_VIDEO},
|
||||||
{"msi", ICON_EXT_MSI, 0},
|
{"msi", ICON_EXT_MSI, 0},
|
||||||
|
@ -611,7 +614,7 @@ static const struct icon_pair icons_ext[] = {
|
||||||
{"exe", EMOJI_WINDOWS, 0},
|
{"exe", EMOJI_WINDOWS, 0},
|
||||||
|
|
||||||
/* F */
|
/* F */
|
||||||
{"flac", EMOJI_AUDIO, COLOR_AUDIO},
|
{"flac", EMOJI_AUDIO, COLOR_AUDIO1},
|
||||||
{"flv", EMOJI_MOVIE, COLOR_VIDEO},
|
{"flv", EMOJI_MOVIE, COLOR_VIDEO},
|
||||||
|
|
||||||
/* G */
|
/* G */
|
||||||
|
@ -672,7 +675,7 @@ static const struct icon_pair icons_ext[] = {
|
||||||
{"mom", EMOJI_NOTE, COLOR_DOCS},
|
{"mom", EMOJI_NOTE, COLOR_DOCS},
|
||||||
{"mov", EMOJI_MOVIE, COLOR_VIDEO},
|
{"mov", EMOJI_MOVIE, COLOR_VIDEO},
|
||||||
{"mp3", EMOJI_AUDIO, COLOR_AUDIO},
|
{"mp3", EMOJI_AUDIO, COLOR_AUDIO},
|
||||||
{"mp4", EMOJI_MOVIE, COLOR_VIDEO},
|
{"mp4", EMOJI_MOVIE, COLOR_VIDEO1},
|
||||||
{"mpeg", EMOJI_MOVIE, COLOR_VIDEO},
|
{"mpeg", EMOJI_MOVIE, COLOR_VIDEO},
|
||||||
{"mpg", EMOJI_MOVIE, COLOR_VIDEO},
|
{"mpg", EMOJI_MOVIE, COLOR_VIDEO},
|
||||||
{"ms", EMOJI_NOTE, COLOR_DOCS},
|
{"ms", EMOJI_NOTE, COLOR_DOCS},
|
||||||
|
|
Loading…
Reference in a new issue