Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Elixir icon #1437

Merged
merged 5 commits into from
Jul 25, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/icons.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
#define ICON_DESKTOP ICON_STR(FA_DESKTOP, "\ufcbe", "🖥️ ")
#define ICON_DOCUMENT ICON_STR(FA_FILE_TEXT_O, "\uf718", "🗒 ")
#define ICON_DOWNLOADS ICON_STR(FA_DOWNLOAD, "\uf5d7", "📥")
#define ICON_ELIXIR ICON_STR(MFIZZ_ELIXIR, "\ue62d", "💧")
#define ICON_ENCRYPT ICON_STR("", "\uf805", "🔒")
#define ICON_FSHARP ICON_STR(DEV_FSHARP, "\ue7a7", "")
#define ICON_GIT ICON_STR(FA_GIT, "\ue5fb", "🌱")
Expand Down Expand Up @@ -150,6 +151,7 @@
COLOR_X(COLOR_SCALA, 196) /* Red1 */ \
COLOR_X(COLOR_SHELL, 47) /* SpringGreen2 */ \
COLOR_X(COLOR_VIM, 28) /* Green4 */ \
COLOR_X(COLOR_ELIXIR, 104) /* MediumPurple */ \

/* X-Macro: https://en.wikipedia.org/wiki/X_Macro */
#define COLOR_X(N, V) N = (V),
Expand Down Expand Up @@ -248,6 +250,9 @@ static const struct icon_pair icons_ext[] = {
{"elf", ICON_LINUX, 0},
{"epub", ICON_PDF, COLOR_DOCS},
{"exe", ICON_EXEC, 0},
{"ex", ICON_ELIXIR, COLOR_ELIXIR},
{"eex", ICON_ELIXIR, COLOR_ELIXIR},
{"exs", ICON_ELIXIR, COLOR_ELIXIR},

/* F */
{"f#", ICON_FSHARP, COLOR_FSHARP},
Expand Down Expand Up @@ -277,6 +282,7 @@ static const struct icon_pair icons_ext[] = {
{"htm", ICON_HTML, 0},
{"html", ICON_HTML, 0},
{"hxx", ICON_CPLUSPLUS, COLOR_C},
{"heex", ICON_ELIXIR, COLOR_ELIXIR},

/* I */
{"ico", ICON_PICTUREFILE, COLOR_IMAGE},
Expand Down