Use essential canvas boundaries and outline selected state rows

This commit is contained in:
2026-09-12 17:21:13 -07:00
parent 8c3e7acd14
commit bbd3b0e843
4 changed files with 29 additions and 9 deletions
+6 -2
View File
@@ -1173,7 +1173,7 @@ impl canvas::Program<Message> for DiagramCanvas<'_> {
} else if edge.trace {
Color::from_rgb8(134, 107, 168)
} else {
Color::from_rgb8(144, 158, 173)
style::BOUNDARY
};
let capability_label = relationship_stereotype(project, edge.id);
let mut stroke =
@@ -1596,7 +1596,11 @@ fn paint_node(f: &mut Frame, p: &Project, n: &ProjectedNode, selected: Id, conta
};
f.fill(&path, if container { tint } else { Color::WHITE });
let mut stroke = Stroke::default()
.with_color(if e.id == selected { color } else { style::LINE })
.with_color(if e.id == selected {
color
} else {
style::BOUNDARY
})
.with_width(if e.id == selected { 2.6 } else { 1.2 });
if n.allocation_summary {
stroke.line_dash = canvas::LineDash {