FileIcons
File icons for Sublime Text
Details
Installs
- Total 297K
- Win 185K
- Mac 47K
- Linux 65K
Nov 21 | Nov 20 | Nov 19 | Nov 18 | Nov 17 | Nov 16 | Nov 15 | Nov 14 | Nov 13 | Nov 12 | Nov 11 | Nov 10 | Nov 9 | Nov 8 | Nov 7 | Nov 6 | Nov 5 | Nov 4 | Nov 3 | Nov 2 | Nov 1 | Oct 31 | Oct 30 | Oct 29 | Oct 28 | Oct 27 | Oct 26 | Oct 25 | Oct 24 | Oct 23 | Oct 22 | Oct 21 | Oct 20 | Oct 19 | Oct 18 | Oct 17 | Oct 16 | Oct 15 | Oct 14 | Oct 13 | Oct 12 | Oct 11 | Oct 10 | Oct 9 | Oct 8 | Oct 7 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 36 | 11 | 14 | 21 | 37 | 26 | 28 | 0 | 0 | 31 | 32 | 32 | 27 | 31 | 35 | 23 | 30 | 26 | 34 | 34 | 36 | 19 | 28 | 27 | 41 | 23 | 21 | 32 | 34 | 42 | 32 | 31 | 34 | 31 | 28 | 41 | 41 | 36 | 35 | 29 | 30 | 38 | 53 | 40 | 41 | 46 |
Mac | 7 | 5 | 3 | 12 | 10 | 4 | 12 | 0 | 0 | 5 | 5 | 7 | 6 | 9 | 1 | 11 | 7 | 11 | 9 | 3 | 8 | 10 | 9 | 10 | 10 | 9 | 2 | 12 | 11 | 10 | 11 | 7 | 7 | 4 | 5 | 9 | 13 | 9 | 11 | 7 | 6 | 17 | 14 | 12 | 12 | 11 |
Linux | 14 | 9 | 4 | 13 | 11 | 8 | 16 | 0 | 0 | 21 | 14 | 11 | 12 | 12 | 15 | 14 | 17 | 15 | 14 | 6 | 15 | 22 | 17 | 11 | 10 | 18 | 11 | 6 | 6 | 14 | 21 | 13 | 18 | 13 | 8 | 13 | 18 | 13 | 15 | 26 | 22 | 20 | 19 | 18 | 14 | 14 |
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!