Sublime Forum

[Question] Use variables in sublime-theme file

#1

1. Briefly

I can not use variables in my sublime-theme file.

2. Detail

Now I have critical bug in my theme. If users install my theme, they not see GUI elements in my theme, because package was named SashaS, but repository was named SashaSublime. Will be differences in path if users install theme manually and via Package Control.

For example, I have line:

"layer0.texture": "SashaSublime/icons/scrollbar/horizontal_white_scrollbar.png",

3. Did not help

  1. I try change SashaSublime, for example, to {{project}}, {{project_path}}, {project} and {project_path}, but I had no success.
  2. I see most popular themes — Flatland, Cobalt, Soda and Boxy, but in sublime-theme file of these themes not use variables.

Thanks.

1 Like

#2

interesting, I didn’t know relative paths were not supported in themes (I checked to confirm).

probably the easiest thing to do for now would be to update your manual installation instructions to include renaming the folder after doing a git clone.

0 Likes