FileIcons
File icons for Sublime Text
Details
Installs
- Total 308K
- Win 191K
- Mac 49K
- Linux 68K
Aug 17 | Aug 16 | Aug 15 | Aug 14 | Aug 13 | Aug 12 | Aug 11 | Aug 10 | Aug 9 | Aug 8 | Aug 7 | Aug 6 | Aug 5 | Aug 4 | Aug 3 | Aug 2 | Aug 1 | Jul 31 | Jul 30 | Jul 29 | Jul 28 | Jul 27 | Jul 26 | Jul 25 | Jul 24 | Jul 23 | Jul 22 | 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 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 23 | 19 | 19 | 28 | 27 | 24 | 25 | 18 | 13 | 16 | 23 | 24 | 28 | 18 | 15 | 18 | 17 | 14 | 22 | 18 | 18 | 12 | 22 | 18 | 20 | 22 | 14 | 19 | 19 | 18 | 25 | 25 | 22 | 27 | 17 | 14 | 15 | 19 | 22 | 16 | 13 | 38 | 16 | 16 | 18 | 17 |
Mac | 3 | 3 | 5 | 6 | 6 | 7 | 5 | 12 | 10 | 9 | 7 | 9 | 10 | 6 | 7 | 5 | 7 | 8 | 7 | 12 | 6 | 6 | 7 | 8 | 8 | 3 | 4 | 9 | 5 | 5 | 8 | 18 | 9 | 9 | 6 | 3 | 5 | 6 | 8 | 5 | 6 | 9 | 2 | 8 | 6 | 7 |
Linux | 8 | 15 | 19 | 12 | 12 | 13 | 20 | 12 | 14 | 4 | 11 | 6 | 10 | 12 | 8 | 11 | 12 | 8 | 16 | 11 | 10 | 17 | 13 | 4 | 11 | 11 | 16 | 11 | 8 | 11 | 8 | 13 | 11 | 6 | 12 | 12 | 6 | 7 | 8 | 7 | 9 | 11 | 11 | 11 | 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!