ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

File​Icons

by braver ST3 Trending Top 100

File icons for Sublime Text

Labels file, icons

Details

Installs

  • Total 302K
  • Win 188K
  • Mac 48K
  • Linux 66K
Mar 6 Mar 5 Mar 4 Mar 3 Mar 2 Mar 1 Feb 28 Feb 27 Feb 26 Feb 25 Feb 24 Feb 23 Feb 22 Feb 21 Feb 20 Feb 19 Feb 18 Feb 17 Feb 16 Feb 15 Feb 14 Feb 13 Feb 12 Feb 11 Feb 10 Feb 9 Feb 8 Feb 7 Feb 6 Feb 5 Feb 4 Feb 3 Feb 2 Feb 1 Jan 31 Jan 30 Jan 29 Jan 28 Jan 27 Jan 26 Jan 25 Jan 24 Jan 23 Jan 22 Jan 21 Jan 20
Windows 5 34 41 38 39 22 37 35 28 33 31 44 37 20 30 41 45 38 30 23 29 30 32 41 28 21 20 26 22 34 29 20 26 34 33 35 33 29 37 22 26 35 40 29 25 38
Mac 1 7 13 9 3 8 8 9 16 4 11 7 10 9 5 16 7 6 6 9 11 17 9 11 11 6 12 11 10 9 12 21 8 11 9 22 8 15 13 8 11 8 9 18 13 7
Linux 4 19 25 16 16 13 11 11 14 18 20 10 15 8 11 8 10 12 18 12 12 14 25 7 16 9 15 9 10 13 11 16 8 13 13 21 9 16 13 12 12 11 11 8 17 16

Readme

Source
raw.​githubusercontent.​com

FileIcons

Colored file icons for Sublime Text. Also available in greyscale.

Adds specific, colored icons for most file types for the sidebar in Sublime Text. Supports both the Default and Adaptive themes.

Inspired by A File Icon, but simpler:

  • Doesn't introduce “alias” languages like “Javascript (Gulpfile)”
  • No runtime code, no restarting required
  • Zero configuration

Customize

The following changes are made to Adaptive/Default.sublime-theme. You can override them by creating a theme file with the same name in your Packages/User directory.

[
  {
    "class": "icon_file_type",
    "layer0.tint": [255, 255, 255],
    "layer0.opacity": 0.75,
    "content_margin": [8, 8]
  },
  {
    "class": "icon_file_type",
    "parents": [{"class": "tree_row", "attributes": ["hover"]}],
    "layer0.opacity": 0.5
  },
  {
    "class": "icon_file_type",
    "parents": [{"class": "tree_row", "attributes": ["selected"]}],
    "layer0.opacity": 1.0
  }
]

Contributing

The “build” directory contains svg assets. Each icon is assigned a color in icons.json, available colors are listed in colors.json.

PNG icons are built using a small app written in Rust:

  • cd build
  • cargo run

To add an icon:

  • add an svg asset with the correct name
  • add an entry to icons.json and assign it a color
  • add an entry to the preferences directory
  • run the build
  • commit the files
  • open a PR
  • 💃

Enable file icons for 3rd party themes

To get file icons in any theme other than Default or Adaptive, take the following steps:

  • After installing FileIcons through Package Control, go to the Sublime Text “Packages” directory (e.g. via the command “Browse Packages”).
  • Create a “FileIcons/theme” directory structure in your “Packages” directory.
  • In your settings, check what theme you're using (e.g. 'itg.flat.dark.sublime-theme').
  • In the “FileIcons/theme” directory, create a file with the name of the theme you are using and copy the theme overrides that make FileIcons work into it.
  • Restart Sublime Text and you should see icons in the sidebar!

Buy me a coffee

☕️👌🏻

If you enjoy this package, feel free to make a little donation via PayPal towards the coffee that keeps this project running. It's much appreciated!