Home Download Buy Blog Forum Support

small bug on bookmark theming

small bug on bookmark theming

Postby thyresias on Sun Oct 07, 2012 7:01 pm

I'm tweaking a bit the default theme, that I copied to a new theme, where I modified some elements. It works fine, except when I want to change the bookmark indicator (file bookmark.png): updating the image does not change anything. I noticed this file is not referenced in the .sublime-theme file, so I copied the modified file into Packages/Theme - Default, overwriting the default one, exited ST, removed all .cache files, restarted ST, and it works, except for the color of the indicator, that remains black. Any idea how to control the color? It might just be an entry missing in the .sublime-theme, but I have no idea how to specify it...
-- Thierry
thyresias
 
Posts: 15
Joined: Tue Oct 02, 2012 5:54 pm

Re: small bug on bookmark theming

Postby agibsonsw on Sun Oct 07, 2012 7:13 pm

When using add_regions() the iconscope argument determines the colour of the icon; for example, the scope of "comment" might display as green. But this may not relate to your use of Bookmarks - presumably there is a similar setting in a theme which you haven't yet discovered.
"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
agibsonsw
 
Posts: 901
Joined: Fri Jan 27, 2012 9:11 pm

Re: small bug on bookmark theming

Postby thyresias on Sun Oct 07, 2012 9:19 pm

Thank you for pointing me to this. It works for instance for the mark.py plug-in: it defines marks with scope "mark", and if you define a color for that scope in the syntax highlighting file, you get that color for the dot in the gutter. But the bookmark is set by toggle_bookmark, which is not a plug-in, so I can't find what scope it uses (it is not "bookmark", I tried this one). Any idea on how to find this out?
thyresias
 
Posts: 15
Joined: Tue Oct 02, 2012 5:54 pm

Re: small bug on bookmark theming

Postby agibsonsw on Sun Oct 07, 2012 9:40 pm

I don't know myself but I'm sure someone else does :). It might be gutterForeground? Until someone else comes along you could try looking in different theme files (likely to be towards the top or bottom of these files).

Added: Actually, the bookmark colour might just be determined by the default foreground colour. Try changing the foreground temporarily.
"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
agibsonsw
 
Posts: 901
Joined: Fri Jan 27, 2012 9:11 pm

Re: small bug on bookmark theming

Postby thyresias on Mon Oct 08, 2012 9:14 am

agibsonsw wrote:Actually, the bookmark colour might just be determined by the default foreground colour. Try changing the foreground temporarily.

Yes, but the point is precisely to only change the bookmark color.

Anyway, a bug remains: changes to bookmarg.png are only "seen" in "Theme - Default", even if you use another theme.
thyresias
 
Posts: 15
Joined: Tue Oct 02, 2012 5:54 pm


Return to Technical Support

Who is online

Users browsing this forum: JeriX and 22 guests