Wrong classname when I use matchName Api to get the icon classname of txt file
Jocs opened this issue · comments
Ran Luo commented
John Gardner commented
A handful of icons are provided by Atom's core styling. The ones used by File-Icons are:
Here's the equivalent CSS, if you need it outside of Atom:
.icon-circuit-board::before { content: "\f0d6"; font: 16px/1 "Octicons Regular"; }
.icon-file-pdf::before { content: "\f014"; font: 16px/1 "Octicons Regular"; }
.icon-file-text::before { content: "\f011"; font: 16px/1 "Octicons Regular"; }
.icon-mail::before { content: "\f03b"; font: 16px/1 "Octicons Regular"; }
.icon-paintcan::before { content: "\f0d1"; font: 16px/1 "Octicons Regular"; }
.icon-star::before { content: "\f02a"; font: 16px/1 "Octicons Regular"; }
This inconsistency is annoying, but it's for backwards (and forwards) compatibility. Basically, any class-name prefixed by icon-
is guaranteed not to be defined by File-Icons, which uses the -icon
suffix instead.