Skip to content

Commit

Permalink
Apply suggestions from emilk
Browse files Browse the repository at this point in the history
Co-authored-by: Emil Ernerfeldt <[email protected]>
  • Loading branch information
lucasmerlin and emilk authored Dec 30, 2024
1 parent 002c0da commit 3f71c16
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions crates/egui/src/widgets/image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -643,21 +643,13 @@ pub fn paint_texture_load_result(
job.append(
"⚠",
0.0,
TextFormat {
color: ui.visuals().error_fg_color,
font_id: font_id.clone(),
..Default::default()
},
TextFormat::simple(font_id.clone(), ui.visuals().error_fg_color)
);
if let Some(alt) = alt {
job.append(
alt,
ui.spacing().item_spacing.x,
TextFormat {
color: ui.visuals().text_color(),
font_id,
..Default::default()
},
TextFormat::simple(font_id, ui.visuals().text_color())
);
}
let galley = ui.painter().layout_job(job);
Expand Down

0 comments on commit 3f71c16

Please sign in to comment.