vsch / idea-multimarkdown

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

Mermaid Background on dark IDE themes #717

Open ghost opened 5 years ago

ghost commented 5 years ago

Hi,

i'm using GoLand 2018.3.5 with a dark theme (Material Theme UI Darker). In my markdown I have written some Mermaid, now there is a little problem:

I can't read the labels on my diagram, because they are also dark.

Maybe consider using a light font color on dark themes or adding a light background to mermaid diagrams?

vsch commented 5 years ago

@Sparki2002, you can switch the Preview to a light scheme, it will be more jarring with a white background but the plugin uses Mermaid JavaScript to render the charts. I have no control over how it renders the charts.

The scheme for preview can follow the application scheme if set to Application UI or use its own depending on the Stylesheet Scheme selection:

Screenshot_Stylesheet.png

If Mermaid has an API which will allow changing its defaults I will add it to the enhancement todo list.

If you find how to make mermaid change its defaults for dark scheme preview, please let me know.

First it will speed up the time to getting the feature into the plugin and I can see if a workaround can be found to allow customizing its output before it is added to the plugin.