mirror of
https://github.com/atom/atom.git
synced 2026-02-14 16:45:14 -05:00
Use binary icon for .woff and .DS_Store extensions
This commit is contained in:
@@ -48,6 +48,8 @@ class FuzzyFinderView extends SelectList
|
||||
typeClass = 'image-name'
|
||||
else if fs.isPdfExtension(ext)
|
||||
typeClass = 'pdf-name'
|
||||
else if fs.isBinaryExtension(ext)
|
||||
typeClass = 'binary-name'
|
||||
else
|
||||
typeClass = 'text-name'
|
||||
@span fs.base(path), class: "file label #{typeClass}"
|
||||
|
||||
@@ -25,6 +25,8 @@ class FileView extends View
|
||||
@fileName.addClass('image-icon')
|
||||
else if fs.isPdfExtension(extension)
|
||||
@fileName.addClass('pdf-icon')
|
||||
else if fs.isBinaryExtension(extension)
|
||||
@fileName.addClass('binary-icon')
|
||||
else
|
||||
@fileName.addClass('text-icon')
|
||||
|
||||
|
||||
@@ -180,6 +180,11 @@ module.exports =
|
||||
'.ron'
|
||||
], ext, true) >= 0
|
||||
|
||||
isBinaryExtension: (ext) ->
|
||||
_.indexOf([
|
||||
'.DS_Store'
|
||||
'.woff'
|
||||
], ext, true) >= 0
|
||||
|
||||
isReadmePath: (path) ->
|
||||
extension = @extension(path)
|
||||
|
||||
Reference in New Issue
Block a user