Skip to content

Commit 3863454

Browse files
ilaifMidnighter
andcommitted
refactor: add styles and tags
Co-authored-by: Midnighter <[email protected]>
1 parent 3c1e5c9 commit 3863454

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

examples/getting_started.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,13 @@
2424

2525
from structurizr import Workspace
2626
from structurizr.model import Tags
27-
from structurizr.view import ElementStyle
27+
from structurizr.view import ElementStyle, Shape
2828

2929

3030
def main() -> Workspace:
3131
"""Create the 'getting started' example."""
3232
workspace = Workspace(
33-
name="Getting Started",
34-
description="This is a model of my software system which can be found at "
35-
"https://structurizr.com/help/examples.",
33+
name="Getting Started", description="This is a model of my software system.",
3634
)
3735

3836
model = workspace.model
@@ -54,7 +52,11 @@ def main() -> Workspace:
5452
styles.add(
5553
ElementStyle(tag=Tags.SOFTWARE_SYSTEM, background="#1168bd", color="#ffffff")
5654
)
57-
styles.add(ElementStyle(tag=Tags.PERSON, background="#08427b", color="#ffffff"))
55+
styles.add(
56+
ElementStyle(
57+
tag=Tags.PERSON, background="#08427b", color="#ffffff", shape=Shape.Person,
58+
)
59+
)
5860
return workspace
5961

6062

0 commit comments

Comments
 (0)