From 0fbe1e06838fa113fd3804d72a8b605586208aa3 Mon Sep 17 00:00:00 2001 From: LordBaryhobal Date: Wed, 19 Jun 2024 22:16:51 +0200 Subject: [PATCH] changed destruction color + default arrow style --- src/consts.typ | 4 +++- src/renderer.typ | 4 ++-- src/sequence.typ | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/consts.typ b/src/consts.typ index 6211f13..6ef5240 100644 --- a/src/consts.typ +++ b/src/consts.typ @@ -13,4 +13,6 @@ #let COLLECTIONS-PAD = (5pt, 3pt) #let COLLECTIONS-DX = 3 #let COLLECTIONS-DY = 3 -#let QUEUE-PAD = (5pt, 3pt) \ No newline at end of file +#let QUEUE-PAD = (5pt, 3pt) + +#let COL-DESTRUCTION = rgb("#A80238") \ No newline at end of file diff --git a/src/renderer.typ b/src/renderer.typ index d92c63e..184f926 100644 --- a/src/renderer.typ +++ b/src/renderer.typ @@ -262,8 +262,8 @@ // Draw lifeline destructions for dest in destructions { let (cx, cy) = dest - draw.line((cx - 8, cy - 8), (cx + 8, cy + 8), stroke: red + 2pt) - draw.line((cx - 8, cy + 8), (cx + 8, cy - 8), stroke: red + 2pt) + draw.line((cx - 8, cy - 8), (cx + 8, cy + 8), stroke: COL-DESTRUCTION + 2pt) + draw.line((cx - 8, cy + 8), (cx + 8, cy - 8), stroke: COL-DESTRUCTION + 2pt) } // Draw participants (end) diff --git a/src/sequence.typ b/src/sequence.typ index aa79c1c..f8cd8ff 100644 --- a/src/sequence.typ +++ b/src/sequence.typ @@ -117,7 +117,7 @@ } let style = ( - mark: (end: "straight"), + mark: (end: ">", fill: elmt.color), stroke: ( dash: if elmt.dashed {"dashed"} else {"solid"}, paint: elmt.color