better defaults, macros
This commit is contained in:
@ -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
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user