forked from 1b-agent/opencadstudio-upstream
Draw the Equal glyph symbol in green
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
1 parent
3492ae32eb
commit
4e2fc8c9de
1 file changed
+7
-1
+7
-1
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user