@Equinusocio:
Sorry for the late reply.
Rethinking my second suggestion from above… not sure it’s gonna work or makes sense.
It only makes sense when injecting substrings dynamically into completions and snippets. Because you’re targeting TextMate meta files (*.tmPreferences
), I believe changing them via Python directly is the easiest way to go.
Step 1:
The way it works for your theme right now is that you have a list of files in ./icons/
named like file_type_ext.png
where ext
is the extension.
Step 2:
Sublime Text searches in a ./icons/
subfolder relative to your themes. If you wouldn’t want the default strict naming scheme forced by Sublime Text for the file names in that subfolder, you could remap using a *.tmPreferences
file. There you could either redundantly target the same default file name in the ./icons/
subfolder or use another name.
Compare github.com/Briles/gruvbox and the ./icons/
and ./prefs/
subfolders there. Also notice that by default you apply file type icons to files with certain extensions, you can further specify the scope in the *.tmPreferences
files here to fine-tune the desired behaviour…
Btw, you had removed this in e493311
…
Step 3:
You can add a .no-sublime-package
file to the top level directory of your package and then change the file name targets in the *.tmPreferences
dynamically via a Python file and search-and-replace the values of the plist variable icon
.
You’ll need:
- icons pack colored
- icons pack b/w
- one set (!!!) of tmPreferences files for the icons
- a python file to change the contents in the tmPreferences files
-
.no-sublime-package
file in the root
Related issue:
What about wbond/package_control_channel#5852? It seems you are trying too many approaches simultaneously here.
Maybe you and @oivva change the icons there to have a white foreground with transparent background only, so you can tint them within the themes separately? You could keep the current default colors with a default tint for each of the icons…