esteinberg / plantuml4idea

Intellij IDEA plugin for PlantUML
Apache License 2.0
618 stars 111 forks source link

Transparent background #411

Open kevinpoulet opened 6 months ago

kevinpoulet commented 6 months ago

Hello.

I'm using CLion 2023.3.2 with the plugin up-to-date (7.3.0).

I am trying to have all the diagrams rendered with a transparent background. To that effect, I added the following in the PlantUML config configuration text box:

!theme spacelab
skinparam backgroundcolor transparent

The theme is picked up, however the background remains white. Unchecking SVG preview (which I guess switches to PNG) turns the background transparent.

Note that I tried to type random character to force regeneration. On that note, is there a way to clear the generated cache? The diagrams that were generated before the option was unchecked still have the white background.

Thanks in advance.

krasa commented 6 months ago

I think I somehow force the background to be white, this will need investigation.

No, just set the cache size to 0, I will make it reset on settings change...

kevinpoulet commented 6 months ago

Thanks for the answer, the cache size trick works in the meantime :)