Bug in some themes color scheme

0 votes
asked May 3, 2023 in Bug by boshka (3,940 points)
edited May 3, 2023 by boshka
Some themes fail to correctly display the following pattern:

@startuml
!theme cerulean
:action text}
@enduml

The "action text" is invisible. Please, see: http://www.plantuml.com/plantuml/umla/SoWkIImgAStDuL8ioKZDJLL8JYqgpKbDpEEoIamkoSpFKoX9hIYfvN98pKi1gW80

Could this be fixed in all failing themes?
commented May 4, 2023 by The-Lu (63,920 points)

Hi B., and all,

  • Is there no other exception?

Because it is the texts that are directly on the background that are concerned and should be changed in black or white depending the background color (light or dark).

Ref.:

Regards.

commented May 4, 2023 by boshka (3,940 points)
hi The-Lu,

I haven't noticed any other exceptions.

Thanks!
commented May 5, 2023 by The-Lu (63,920 points)

Hi all,

In fact, there are a lot of other elements impacted:
- map element
- json element
- some Gantt task
- EBNF diagram
- Timing diagram

[FYI bschwarz]

See:

Another question/wanted feature will be:

  • It will be perhaps also necessary to manage dark and light mode?
Regards.

2 Answers

0 votes
answered May 7, 2023 by anonymous

So for this particular problem, and I suspect it is the same for the other problems, is that the styling for that particular syntax uses the same styling as other actions. For example, the below snippet has "First" and "Second". I believe both of these use the same styling. If I am incorrect, then please let me know how to differentiate.

I think the only way around this is to use inline coloring as shown for Second below. I tried to use custom styling, but I was getting an error when used with !theme cerulean

@startuml
!theme cerulean

  :First;

:<color:black>Second}
@enduml

See here for example: http://www.plantuml.com/plantuml/umla/SoWkIImgAStDuL8ioKZDJLL8JYqgpKbDpEFYKb2mSiiiAYwnvkAoiadEpyaliahAIKpEjWjEJSxFIwdbSaZDIm7g1000

0 votes
answered May 9, 2023 by The-Lu (63,920 points)
...