From 5f4d4a6e2030a9b2365ead8215400b9ccfefa5e9 Mon Sep 17 00:00:00 2001 From: Anton Date: Fri, 1 May 2026 15:39:58 +0200 Subject: [PATCH] feat: replace hand-rolled language glyphs with Simple Icons brand marks The previous LANG_ICON map was a set of approximate single-path SVG shapes. Recognisable but not pixel-accurate, and the FILE fallback for TOML/YAML/JSON looked indistinguishable from any other plain-document glyph. Swap in the official Simple Icons (CC0, public domain) paths for all sixteen languages we currently classify: rust, c, cpp, python, typescript, javascript, go, java, ruby, markdown, toml, yaml, json, html, css, shell. Each language now renders its own well-designed, instantly recognisable brand mark in the treemap. The lookup keys already match the names emitted by language_name() and the standard plugin catalog, so every tile gets a glyph without further plumbing. Drop the now-unused FILE constant. --- src/cli.rs | 173 ++++++++++++++++++++++++++++++++++++++++------------- 1 file changed, 130 insertions(+), 43 deletions(-) diff --git a/src/cli.rs b/src/cli.rs index a054472..bd09569 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -1290,18 +1290,20 @@ pub(crate) fn visualization_html( r#" Raysense