Use essential canvas boundaries and outline selected state rows
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user