Sublime Forum

[Weird issue] Override theme icons

#1

Hi everyone,

I want to have a nice set of icon files (this one) for an existing theme (this one). Like I usually do, I just put a new folder named like the theme I use, put the overriding files in it, create an empty theme file, and voilà. But this time, i’m having a strange issue.

Step 1 : ST is opened, before the folder where i’ve put the icons is correctly named :

Step 2 : Then I rename correctly the folder, and the icons are (almost) correctly set in ST :

Step 3 : And when i’m rebooting ST :

I just don’t get it. I’m used to this procedure, and it actually work well with other themes on the same pc. Does anybody have an idea about what’s going on ? I’m going to submit this problem to the theme and the icons authors.

Thanks in advance !

0 Likes

#2

You’re being very vague. Where are the icons? How can an empty file change anything?

Also, look at whats written in the console. What’s the error?

0 Likes

#3

Thanks for your reply.

Sorry, I didn’t think that was vague as this is (I guess?) a common procedure in ST; but here’s the thing: if you want to override the schemes / other stuff of a theme, you create a folder named exactly like the theme in Package/User, put the files you wish to add or overwrite in it, and here you go. This is the same basic stuff with pretty much everything in ST.

This is exactly what is required to do in the readme of the icon set (first link). And it work with other themes, but not the one I want to use. And why create an empty file, well I don’t know. This is what i’m being told to do, and as i don’t wanna check the whole ST theme api, seeing it work is enough for me.

Checking the console lead me to this :

top level value must be an array

This is the only unusual message i get ; but it’s here even while i’m using the theme (itg.flat), not only when I try to override it. So i guess this is a problem from this precise theme. Searching about this error message, this is usually a trailing character in a config file of the theme, but i triple-checked everything, even with jshint, and found nothing.

Still searching. Thanks !

0 Likes

#4

Ok I see.

I tried to replicate your issue before and I wasn’t sure if I did your steps exactly.
First, I downloaded the latest release from both Github repo and yeah, the itg theme from there does have a typo.

But then I thought that maybe you installed it via package control, and from there, the theme file doesn’t make ST throw a parse error.
I couldn’t make it to show the icons tho, but I checked the theme file, and it hides the sidebar icons by default.

So you have two problems.
You will have to fix the typo and then overwrite some default settings related to file_type_icon.
I suggest you unzip the theme package and have some fun with it.

SublimeText should also tell you the line and column of the error, no?
Also, trying to install it again via pkgctrl at home, I can’t even find the package. :^/

0 Likes