Draw the Equal glyph symbol in green

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
ramox81andClaude Fable 5.1 committed 2026-09-18 23:45:01 +03:00
1 parent 3492ae32eb
commit 4e2fc8c9de
1 file changed
+7 -1
+7 -1
View File
@@ -2147,10 +2147,16 @@ impl canvas::Program<Message> for SelectionCanvas {
label == crate::scene::parametric_constraints::VERTICAL_POINTS_GLYPH,
);
} else {
// The Equal symbol reads green on its badge, as asked.
let color = if label == "=" {
Color::from_rgb8(72, 199, 116)
} else {
fg
};
frame.fill_text(canvas::Text {
content: label.clone(),
position: glyph_center,
color: fg,
color,
size: iced::Pixels(CONSTRAINT_GLYPH_SIZE),
align_x: iced::alignment::Horizontal::Center.into(),
align_y: iced::alignment::Vertical::Center,