{ lib, stdenvNoCC, gtk3, baseTheme }: # HyprChrome folders, drawn as the first artboard of the "HyprChrome Folders" # design canvas (claude.ai/artifact/W2jmmhXLUzt2isUpGEraB6): 20 folder icons on # a 32px grid in its two finishes, each shipped as its own theme. Only folders # are drawn; everything else comes from baseTheme via Inherits=. let accent = "#e8722a"; accentHot = "#ff6b4a"; # LIT: accent tab over a selection-grey hull, accent emblems. # SOLID: accent hull, surface-ink emblems. themes = { "HyprChrome-Folders" = acc: { inherit acc; tab = acc; hull = "#1a1c1f"; seam = ''stroke="#dedede" stroke-opacity="0.12"''; ink = acc; sub = ''stroke="#858585"''; hole = "#1a1c1f"; }; "HyprChrome-Folders-Solid" = acc: { inherit acc; tab = "#292c30"; hull = acc; seam = ''stroke="#0a0a0a" stroke-opacity="0.35"''; ink = "#0a0a0a"; sub = ''stroke="#0a0a0a" stroke-opacity="0.5"''; hole = acc; }; }; bases = { closed = f: '' ''; open = f: '' ''; }; # the canvas's k / kf / sb / hl classes paint = f: { k = ''fill="none" stroke="${f.ink}"''; kf = ''fill="${f.ink}"''; sb = ''fill="none" ${f.sub}''; hl = ''fill="${f.hole}"''; }; can = p: '' ''; emblems = { none = p: ""; homelab = p: '' ''; home = p: '' ''; desktop = p: '' ''; documents = p: '' ''; download = p: '' ''; music = p: '' ''; pictures = p: '' ''; videos = p: '' ''; templates = p: '' ''; publicshare = p: '' ''; git = p: '' ''; projects = p: '' ''; remote = p: '' ''; saved-search = p: '' ''; locked = p: '' ''; important = p: '' ''; trash = p: can p + '' ''; trash-full = p: can p + '' ''; }; # aliases: the other names apps (and baseTheme) use for the same folder, so # those don't fall through to baseTheme's own drawing. icons = { folder = { emblem = "none"; aliases = [ "inode-directory" "gtk-directory" "gnome-fs-directory" "gnome-folder" "stock_folder" ]; }; folder-open = { base = "open"; emblem = "none"; aliases = [ "folder-drag-accept" "folder-visiting" "gnome-fs-directory-accept" ]; }; folder-homelab = { emblem = "homelab"; }; user-home = { emblem = "home"; aliases = [ "folder-home" "folder_home" "gnome-fs-home" ]; }; user-desktop = { emblem = "desktop"; aliases = [ "folder-desktop" "gnome-fs-desktop" ]; }; folder-documents = { emblem = "documents"; }; folder-download = { emblem = "download"; aliases = [ "folder-downloads" ]; }; folder-music = { emblem = "music"; }; folder-pictures = { emblem = "pictures"; aliases = [ "folder-images" "folder-image" "folder-picture" ]; }; folder-videos = { emblem = "videos"; aliases = [ "folder-video" ]; }; folder-templates = { emblem = "templates"; }; folder-publicshare = { emblem = "publicshare"; aliases = [ "folder-public" ]; }; folder-git = { emblem = "git"; }; folder-projects = { emblem = "projects"; aliases = [ "folder-development" ]; }; folder-remote = { emblem = "remote"; aliases = [ "folder-network" ]; }; folder-saved-search = { emblem = "saved-search"; }; folder-locked = { emblem = "locked"; aliases = [ "folder-encrypted" ]; }; folder-important = { emblem = "important"; hot = true; }; user-trash = { emblem = "trash"; aliases = [ "trash-empty" "gnome-fs-trash-empty" ]; }; user-trash-full = { emblem = "trash-full"; aliases = [ "gnome-fs-trash-full" ]; }; }; svg = finish: name: { emblem, base ? "closed", hot ? false, ... }: let f = finish (if hot then accentHot else accent); in builtins.toFile "${name}.svg" '' ${bases.${base} f}${emblems.${emblem} (paint f)} ''; buildTheme = theme: finish: '' dir="$out/share/icons/${theme}" mkdir -p "$dir/places/scalable" cat > "$dir/index.theme" <