Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic font color with gradient participant background creates UnsupportedOperationException #1389

Closed
jonasehrlich opened this issue Apr 10, 2023 · 1 comment
Labels
bug Something isn't working p:wip Work in progress. Be patient :-)

Comments

@jonasehrlich
Copy link

To Reproduce
Using skinparam ParticipantFontColor automatic while using any kind of gradient background for participants creates an UnsupportedOperationException.

Create the following diagram and compile it (plantuml-server)

@startuml
skinparam ParticipantFontColor automatic
participant bob #green|blue
@enduml

The output image contains a Java traceback caused by an UnsupportedOperationException.

Expected behavior

Proper selection of a correct automatic font color, or a failure during image generation.

Screenshots

gradient-automatic-font-color

Desktop:

  • OS: macOS 13.3.1
  • Browser: Chrome
  • Version: 112.0.5615.49
  • plantuml / graphviz version:
$ plantuml -version
PlantUML version 1.2023.3 (Thu Mar 09 18:30:18 CET 2023)
(GPL source distribution)
Java Runtime: OpenJDK Runtime Environment
JVM: OpenJDK 64-Bit Server VM
Default Encoding: UTF-8
Language: en
Country: US

PLANTUML_LIMIT_SIZE: 4096

Dot version: dot - graphviz version 7.1.0 (20230121.1956)
Installation seems OK. File generation OK
@arnaudroques arnaudroques added bug Something isn't working p:wip Work in progress. Be patient :-) and removed triage labels Apr 11, 2023
@arnaudroques
Copy link
Contributor

Many thanks for the report.
This should be fixed now.

arnaudroques added a commit that referenced this issue Apr 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working p:wip Work in progress. Be patient :-)
Projects
None yet
Development

No branches or pull requests

2 participants