vsch / idea-multimarkdown

Markdown language support for IntelliJ IDEA.
https://plugins.jetbrains.com/plugin/7896-markdown-navigator
Apache License 2.0
815 stars 129 forks source link

Override SVG background #671

Open igorwojda opened 5 years ago

igorwojda commented 5 years ago

Now when Markdown Navigator supports SVG I realized that we may have a new problem - some SVGs may be hard to read in preview due to IDE dark background color (vs default Github light background color). Can we have an option to override SVG background color for all SVG previews? or maybe even better override it only when the background is transparent/non-existing?

image

vsch commented 5 years ago

@igorwojda, the rendering of the SVG is done by the JavaFX browser. I do not know if the background can be changed without modifying the SVG.

I'll mark it as an enhancement to be implemented after the next release, unless I figure out an easy way of doing it through CSS/HTML.

igorwojda commented 5 years ago

I am not sure what features and SVG version JavaFX browser supports, but I think may be helpful for you in the future https://stackoverflow.com/questions/11293026/default-background-color-of-svg-root-element