1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-31 13:50:04 -04:00

Make WidgetText smaller and faster (#6903)

* In preparation of #5830, this should reduce the performance impact of
that PR

---------

Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
This commit is contained in:
Lucas Meurer
2025-05-06 17:35:56 +02:00
committed by GitHub
parent ba70106399
commit 71e0b0859c
4 changed files with 150 additions and 83 deletions

View File

@@ -134,7 +134,7 @@ impl std::fmt::Display for Anchor {
impl From<Anchor> for egui::WidgetText {
fn from(value: Anchor) -> Self {
Self::RichText(egui::RichText::new(value.to_string()))
Self::from(value.to_string())
}
}