bug: icons not visible under dark color schemes #442
Replies: 11 comments 2 replies
-
what version of NerdFonts are you using? |
Beta Was this translation helpful? Give feedback.
-
The icon should be the same color as the filename. What command line options are you using? Edit: Looking at the code it could be using the background color. |
Beta Was this translation helpful? Give feedback.
-
And what color scheme? |
Beta Was this translation helpful? Give feedback.
-
well this sucks, i am using vivid to generate ls-colors resetting ls-colors fixes this issue also, i am using nerd fonts v2.3.3 since v3.0.0 introduced some breaking changes, but i also tried with v3.0.2 (latest) i am using gruvbox dark color scheme (hard variant) |
Beta Was this translation helpful? Give feedback.
-
Yeah, that theme seems to use white on black background for dot files, and eza apparently uses the filename's foreground color for the icon unless the filename has a background color and then it uses the background color: $ LS_COLORS="$(vivid generate gruvbox-dark-hard)" EXA_COLORS="" eza -l --icons -a ~ as opposed to $ LS_COLORS="$(vivid generate lava)" EXA_COLORS="" eza -l --icons -a ~ and in your terminal's theme the black background matches the terminal background. |
Beta Was this translation helpful? Give feedback.
-
For now, I have modified my colorscheme to remove background color. core:
normal_text:
foreground: fg
- background: bg
regular_file:
foreground: fg
- background: bg
reset_to_normal: {}
Should we close this issue ? |
Beta Was this translation helpful? Give feedback.
-
I finally understood that sentence (probably because that behaviour is indeed quite odd). So yea... that should not be desired imo
Well I think it is still a problem that would need a fix or at least a justification. So I'd leave it open. I'll try to look into it should I have the time. |
Beta Was this translation helpful? Give feedback.
-
It can run into trouble either way. If the filename has different foreground and background colors then either can match the terminal background and it'll still be visible, but making the icon foreground match either with no background can lead to its disappearing. So maybe the icon should use both the same foreground and background colors. |
Beta Was this translation helpful? Give feedback.
-
That's what I meant. 👍 Because I think it should be reasonable to assume that the theme is chosen/created in such a way that filenames are properly legible so I don't see a reason why the icons shouldn't just use the texts properties. |
Beta Was this translation helpful? Give feedback.
-
So I found the change in question and it seemed to be a deliberate decision. So at that point I think it is best to convert this into a discussion to talk about what the best way forward would be. (Because I strongly believe in only throwing stuff away when you know why it was put there in the first place) So far my findings/experiments are as far as follows:
|
Beta Was this translation helpful? Give feedback.
-
(@cafkafk I felt the Development category looked most appropriate, looking at the other discussions. If there is a better suited one let me know. thanks) |
Beta Was this translation helpful? Give feedback.
-
They are certainly present, just not visible:
I am using the latest version:
Beta Was this translation helpful? Give feedback.
All reactions