plantuml-stdlib / C4-PlantUML

C4-PlantUML combines the benefits of PlantUML and the C4 model for providing a simple way of describing and communicate software architectures
MIT License
6.41k stars 1.1k forks source link

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

Closed kirchsth closed 6 months ago

kirchsth commented 6 months ago

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