Skip to content

The IDE you know, rebuilt in Rust. IntelliJ IDEA–style keymap, tool windows and search-everywhere in a fast native app: editor, code insight, debugger, Git, terminal, database and HTTP clients for 60+ languages.

fix(ui): give AsciiDoc files their own icon (#763)

l0ng-aiff97d7724c7c
diff --git a/src/ui/icons.tsx b/src/ui/icons.tsx
index 341630142..bcaf888bf 100644
--- a/src/ui/icons.tsx
+++ b/src/ui/icons.tsx
@@ -130,6 +130,7 @@ const ICONS = {
"file-gdscript": "openidea/fileTypes/gdscript",
"file-godot": "openidea/fileTypes/godot",
"file-gdshader": "openidea/fileTypes/gdshader",
+ "file-asciidoc": "openidea/fileTypes/asciidoc",
"file-d": "openidea/fileTypes/d",
"file-dart": "openidea/fileTypes/dart",
"file-elixir": "openidea/fileTypes/elixir",
@@ -826,7 +827,7 @@ const EXT_ICONS = table({
"file-rst": "rst",
"file-yaml": "yaml yml",
"file-toml": "toml",
- "file-text": "txt text adoc",
+ "file-text": "txt text",
"file-log": "log",
"file-csv": "csv tsv",
"file-html": "html htm shtml html.tmpl",
@@ -879,6 +880,7 @@ const EXT_ICONS = table({
"file-gdscript": "gd",
"file-godot": "tscn tres godot import",
"file-gdshader": "gdshader gdshaderinc",
+ "file-asciidoc": "adoc asciidoc",
"file-d": "d di",
"file-dart": "dart",
"file-elixir": "ex exs",
diff --git a/src/ui/openidea/fileTypes/asciidoc.svg b/src/ui/openidea/fileTypes/asciidoc.svg
new file mode 100644
index 000000000..81076e492
--- /dev/null
+++ b/src/ui/openidea/fileTypes/asciidoc.svg
@@ -0,0 +1,3 @@
+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
+<g stroke-linejoin="round"><path d="M14 4C14 2.89543 13.1046 2 12 2H4C2.89543 2 2 2.89543 2 4V12C2 13.1046 2.89543 14 4 14H12C13.1046 14 14 13.1046 14 12V4Z" fill="#C94F6D"/><path d="M4.5 11.5L8 4L11.5 11.5" stroke="#2B2D30" stroke-linecap="round"/><path d="M5.9 8.5H10.1" stroke="#2B2D30"/></g>
+</svg>
diff --git a/src/ui/openidea/fileTypes/asciidoc_dark.svg b/src/ui/openidea/fileTypes/asciidoc_dark.svg
new file mode 100644
index 000000000..2f60166f6
--- /dev/null
+++ b/src/ui/openidea/fileTypes/asciidoc_dark.svg
@@ -0,0 +1,3 @@
+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
+<g stroke-linejoin="round"><path d="M14 4C14 2.89543 13.1046 2 12 2H4C2.89543 2 2 2.89543 2 4V12C2 13.1046 2.89543 14 4 14H12C13.1046 14 14 13.1046 14 12V4Z" fill="#E0708A"/><path d="M4.5 11.5L8 4L11.5 11.5" stroke="#2B2D30" stroke-linecap="round"/><path d="M5.9 8.5H10.1" stroke="#2B2D30"/></g>
+</svg>