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

File​Icons

by braver ST3

File icons for Sublime Text

Labels file, icons

Details

Installs

  • Total 75K
  • Win 42K
  • OS X 15K
  • Linux 18K
Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7 Jul 6 Jul 5 Jul 4 Jul 3 Jul 2 Jul 1 Jun 30 Jun 29 Jun 28 Jun 27 Jun 26 Jun 25 Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12 Jun 11 Jun 10 Jun 9 Jun 8 Jun 7 Jun 6
Windows 29 89 118 102 119 89 96 73 74 104 97 86 124 101 73 93 127 99 131 86 76 66 90 100 93 87 124 88 67 85 92 93 99 98 81 61 79 106 94 107 126 88 75 70 92 88
OS X 7 18 34 33 35 37 32 19 14 28 29 41 37 26 21 24 32 40 37 33 26 17 14 25 35 31 36 38 22 29 22 30 36 42 32 13 24 26 41 25 22 28 22 19 23 27
Linux 6 41 50 44 53 52 40 26 27 37 41 54 36 48 37 34 48 43 49 31 40 32 30 29 50 31 33 35 27 31 50 45 30 36 34 32 20 50 55 58 45 49 34 30 40 44

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 3. 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 manipulation of settings or themes, no restarting
  • No configuration: just uses existing theme override behavior

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.

To produce png files:

  • npm install
  • npm run build

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:

  • Go to the Sublime Text “Packages” directory (e.g. via the command “Browse Packages”).
  • Download the latest version of FileIcons, or clone the repo. Download or switch to the mono branch for the gray-scale icons.
  • Put the “FileIcons” directory you just downloaded/cloned into “Packages” directory.
  • In your settings, check what theme you're using (e.g. 'itg.flat.dark.sublime-theme').
  • In the FileIcons directory, open the “theme” directory. At the top you should see both “Adaptive.sublime-theme” and “Default.sublime-theme”. You can rename either of those to the filename you just found in your settings.
  • 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!