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

$baseShape="label" does not use the correct color (size, ...?) in combination with themes #349

Closed
kirchsth opened this issue Apr 28, 2024 · 0 comments
Assignees
Milestone

Comments

@kirchsth
Copy link
Contributor

In the current version the labels are not written with the correct font color ("background") if e.g. themes are active.
In following image the label is invisible (but it should be orange).

Based on how-to-skinparam-label, it should be possible to change the label font color,... via style (skinparam is not working).

@startuml
!ENABLE_ALL_PLANT_ELEMENTS = 1
!theme C4_united from <C4/themes>
!include <C4/C4_Component>


<style>
' componentDiagram {
  label {
    Fontcolor $COMPONENT_BG_COLOR
    ' ...
  }
' }
</style>


System(file, "A File", $baseShape="file")
Component(label, "A Label", $baseShape="label")

SHOW_LEGEND()
@enduml

BR Helmut

@kirchsth kirchsth added this to the v2.10.0 milestone Apr 28, 2024
@kirchsth kirchsth self-assigned this May 1, 2024
kirchsth added a commit to kirchsth/C4-PlantUML that referenced this issue May 4, 2024
kirchsth added a commit that referenced this issue May 4, 2024
#349 $baseShape="label" uses correct color
@kirchsth kirchsth closed this as completed May 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant