mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 05:40:03 -04:00
Add Visuals::error_fg_color and Visuals::warn_fg_color
This commit is contained in:
@@ -95,7 +95,7 @@ impl eframe::App for HttpApp {
|
||||
Err(error) => {
|
||||
// This should only happen if the fetch API isn't available or something similar.
|
||||
ui.colored_label(
|
||||
egui::Color32::RED,
|
||||
ui.visuals().error_fg_color,
|
||||
if error.is_empty() { "Error" } else { error },
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user