better defaults, macros

This commit is contained in:
elvis
2025-10-22 22:17:59 +02:00
parent c3a8941baf
commit d2bf38a927
3 changed files with 250 additions and 689 deletions

View File

@ -161,3 +161,19 @@ where
job
}
pub fn reformat_generic_error(
e: impl Into<String>,
_ctx: &eframe::egui::Context,
) -> LayoutJob
{
let text_format = TextFormat {
font_id: Default::default(),
color: Color32::RED,
..Default::default()
};
LayoutJob::single_section(
e.into(),
text_format
)
}