Bug: Folder icons in file panel always render with default color (black)
Author: dnsblgCreated Sep 24, 2026Updated Sep 24, 2026
Bug: Folder icons in file panel always render with default color (black)
Description
Folder icons in the file panel always render in black (or the terminal's default foreground color) regardless of the directory_icon_color setting in the theme configuration. This differs from how file icons are handled, which correctly apply their configured colors.
Steps to Reproduce
- Create or use a theme with a custom
directory_icon_colorsetting (e.g.,directory_icon_color = "#50fa7b") - Set
nerdfont = truein the config - Open superfile and navigate to any directory
- Observe the folder icons in the file panel
Expected Behavior
Folder icons should display using the color specified in directory_icon_color from the theme (or fall back to Theme.FilePanelFG if not set)
Actual Behavior
Folder icons always display in black (or default terminal foreground color)
Environment
- OS: macOS
- Superfile version: v1.6.0
- Terminal: ghostty
- Nerd Font: JetBrainsMono Nerd Font Mono
Root Cause
In src/internal/common/icon_utils.go, the GetElementIcon() function handles directories but lacks the color fallback that exists for files:
Current behavior (buggy):
if isDir {
resultIcon := icon.Folders["folder"]
// ... folder lookup code ...
return resultIcon // Returns icon with color="NONE" if not set
}Source: yorukot/superfile