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 4 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
15 changes: 15 additions & 0 deletions src/icons.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@
#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("", "\ue62d", "💧")
N-R-K marked this conversation as resolved.
Show resolved Hide resolved
#define ICON_ENCRYPT ICON_STR("", "\uf805", "🔒")
#define ICON_ERLANG ICON_STR("", "\ue7b1", "📞")
tlarevo marked this conversation as resolved.
Show resolved Hide resolved
#define ICON_FSHARP ICON_STR(DEV_FSHARP, "\ue7a7", "")
#define ICON_GIT ICON_STR(FA_GIT, "\ue5fb", "🌱")
#define ICON_HASKELL ICON_STR("", "\ue777", "")
Expand All @@ -74,6 +76,7 @@
#define ICON_JAVASCRIPT ICON_STR(FA_FILE_CODE_O, "\uf81d", "")
#define ICON_LICENSE ICON_STR(FA_COPYRIGHT, "\uf718", "⚖️ ")
#define ICON_LINUX ICON_STR(FA_LINUX, "\uf83c", "🐧")
#define ICON_LOCKFILE ICON_STR("", "\uf720", "🔒")
#define ICON_MAKEFILE ICON_STR(FILE_CMAKE, "\uf68c", "🛠 ")
#define ICON_MANUAL ICON_STR(FILE_MANPAGE, "\uf5bd", "❓")
#define ICON_MS_EXCEL ICON_STR(FILE_EXCEL, "\uf71a", ICON_WORDDOC)
Expand Down Expand Up @@ -150,6 +153,11 @@
COLOR_X(COLOR_SCALA, 196) /* Red1 */ \
COLOR_X(COLOR_SHELL, 47) /* SpringGreen2 */ \
COLOR_X(COLOR_VIM, 28) /* Green4 */ \
COLOR_X(COLOR_ERLANG, 124) /* Red3 */ \
COLOR_X(COLOR_ERLANG_HRL, 130) /* DarkOrange3 */ \
COLOR_X(COLOR_ELIXIR, 90) /* DarkMagenta */ \
COLOR_X(COLOR_ELIXIR_SCR, 98) /* MediumPurple3 */ \
COLOR_X(COLOR_ELIXIR_PHX, 104) /* MediumPurple */ \
N-R-K marked this conversation as resolved.
Show resolved Hide resolved

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

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

/* I */
{"ico", ICON_PICTUREFILE, COLOR_IMAGE},
Expand All @@ -303,6 +317,7 @@ static const struct icon_pair icons_ext[] = {
{"lua", ICON_EXT_LUA, COLOR_LUA},
{"lzh", ICON_ARCHIVE, COLOR_ARCHIVE},
{"lzma", ICON_ARCHIVE, COLOR_ARCHIVE},
{"lock", ICON_LOCKFILE, 0},
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the "lock" extension used for and how common is it? Quick internet search seems to suggest it's something related to minecraft?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No some package managers/build systems maintain a 'lock' file to freeze the dependencies to specific version so that when the app is built builder knows exact versions to pick. Elixir's mix is one such tool. In elixir, mix.exs stores the dependencies and mix.lock has exact versions and other details.

Screenshot 2022-07-25 at 22 52 46


/* M */
{"m", ICON_EXT_M, COLOR_C},
Expand Down