kisstkondoros / gutter-preview

Other
158 stars 37 forks source link

Support for `currentColor` setting #59

Closed DimitarNestorov closed 5 years ago

DimitarNestorov commented 5 years ago

Would be awesome to be able to set currentColor to be anything but black in settings so that there's more contrast between dark themes and SVGs that use currentColor. Depending on my viewing angle the following preview can be invisible. image

kisstkondoros commented 5 years ago

Hacked into v0.20.0, should be available in the market in a couple of minutes :smile: You can configure the currentColor css property by the new configuration property gutterpreview.currentColorForSVG. It's default is white as the default vscode theme is a dark one.

I hope you'll find it useful!

Please give feedback if something feels or works odd, as this is a huge hack (IMO)!

DimitarNestorov commented 5 years ago

image Much better! Thanks!