Generics does not respect "monochrome reverse"

0 votes
asked Oct 27, 2020 in Bug by jhu (120 points)

Hello.

It seems to me that the generics type shown in class does not work with "monochrome reverse":

  skinparam monochrome reverse
  skinparam backgroundcolor transparent
  hide circle
  class Collection<T>
  {
  Collection<>()
  void addItem(T item)
  boolean hasNext()
  T getNext()
  void resetNext()
  boolean isEmpty()
  }

1 Answer

0 votes
answered Oct 27, 2020 by The-Lu (36,200 points)

Hello J.,

From:


[See on PlantUML server]

A possible workaround is to use style for the background:

<style>
document {
  backgroundcolor transparent
}
</style>

Then the expected result is observed:


[See on PlantUML server]

If that can help,
Regards,
Th.

commented Oct 28, 2020 by jhu (120 points)
Hi there.

I run with what comes in Fedora 32, plantuml version 1.2019.01 , and even with

skinparam useBetaStyle true

CSS styles do not seem to be working. Documentation of useBetaStyle indirectly refers to version 1.2019.9, so perhaps the feature was introduced then.

Still, thanks.
commented Oct 28, 2020 by The-Lu (36,200 points)

Hello all,

In fact the main issue in on 'backgroundcolor transparent'; because with 'monochrome reverse' the background is not really transparent, but white [the reverse of #00000000 is #ffffffff !wink].

Then a possible workaround, is to put a grey color on background, as:

skinparam backgroundcolor DimGrey

Then a possible expected result is observed, without to have got all in black:


[See on PlantUML server]

Contrary to without any background:


[See on PlantUML server]

If that can help,
Regards,
Th.

commented Oct 29, 2020 by plantuml (262,900 points)
Thanks for the report.

We've made some changes in last beta http://beta.plantuml.net/plantuml.jar and on the online server.

Tell us if it's better.
...