Home Download Buy Blog Forum Support

Can I set color of gutter icon from hex value?

Can I set color of gutter icon from hex value?

Postby brandon.fryslie on Sat Mar 01, 2014 6:19 am

I'm writing a plugin to display colored icons in the gutter next to hex values, such as in a CSS file.

I see that the add_regions command, which is used to add icons to the gutter, takes a scope parameter to determine the icon color. I would like to display the color represented by arbitrary hex values so I cannot use my current theme to get the color.

Is there a way to add a scope - color mapping to the theme on the fly from a plugin? Or is there some other workaround that I can use?

Thanks
brandon.fryslie
 
Posts: 1
Joined: Sat Mar 01, 2014 5:47 am

Return to Plugin Development

Who is online

Users browsing this forum: No registered users and 8 guests