mirror of https://codeberg.org/topola/topola.git
feat(topola-egui): Highlight node index of the obstacling primitive
This commit is contained in:
parent
d75c73b540
commit
3078d9d546
|
|
@ -570,11 +570,22 @@ impl<'a> Displayer<'a> {
|
|||
.shape()
|
||||
.center();
|
||||
|
||||
let color = if let Some(activity) = &mut self.workspace.interactor.maybe_activity()
|
||||
{
|
||||
if activity.obstacles().contains(&primitive) {
|
||||
egui::Color32::from_rgb(255, 255, 255)
|
||||
} else {
|
||||
egui::Color32::from_rgb(150, 150, 150)
|
||||
}
|
||||
} else {
|
||||
egui::Color32::from_rgb(255, 255, 255)
|
||||
};
|
||||
|
||||
self.painter.paint_text(
|
||||
pos,
|
||||
egui::Align2::CENTER_CENTER,
|
||||
&format!("{}", primitive.index()),
|
||||
egui::Color32::from_rgb(200, 200, 200),
|
||||
color,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -56,8 +56,9 @@ tr-menu-route-options-presort-by-pairwise-detours = Pairwise Detours
|
|||
|
||||
tr-menu-route-options-permutate = Permutate
|
||||
|
||||
## Continuously applied, so use imperfective aspect if possible, e.g. in Polish
|
||||
## it should be "przeciskaj pod taśmami" instead of "przeciśnij pod taśmami".
|
||||
## Continuously applied, so use frequentative or imperfective aspect
|
||||
## if possible, e.g. in Polish it should be "przeciskaj pod taśmami"
|
||||
## (frequentative) instead of "przeciśnij pod taśmami".
|
||||
|
||||
tr-menu-route-options-squeeze-through-under-bends = Squeeze through under Bends
|
||||
tr-menu-route-options-wrap-around-bands = Wrap around Bands
|
||||
|
|
|
|||
Loading…
Reference in New Issue