Skip to content

Commit

Permalink
fix(realization-view): Add styling for all individual layersX
Browse files Browse the repository at this point in the history
Co-authored-by: Ernst Würger <ewuerger@users.noreply.github.com>
  • Loading branch information
freshavocado7 and ewuerger committed Dec 22, 2023
1 parent fbd908b commit b137fd3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion capellambse_context_diagrams/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,13 @@ def register_realization_view() -> None:
(pa.PhysicalComponent, DiagramType.PAB),
(pa.PhysicalFunction, DiagramType.PDFB),
]
styles: dict[str, dict[str, capstyle.CSSdef]] = {}
for class_, dgcls in supported_classes:
common.set_accessor(
class_,
"realization_view",
context.RealizationViewContextAccessor(dgcls.value),
context.RealizationViewContextAccessor("Realization Diagram"),
)
styles |= capstyle.STYLES.get(dgcls.value, {})

capstyle.STYLES["Realization Diagram"] = styles

0 comments on commit b137fd3

Please sign in to comment.