From 3ec170cc1e2309345df04b5e2a083b3b452c012f Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Thu, 6 Oct 2022 11:49:12 +0200 Subject: [PATCH] Tweak warning color in bright mode --- crates/egui/src/style.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/egui/src/style.rs b/crates/egui/src/style.rs index b83c0acb..84de7403 100644 --- a/crates/egui/src/style.rs +++ b/crates/egui/src/style.rs @@ -699,8 +699,8 @@ impl Visuals { faint_bg_color: Color32::from_gray(242), extreme_bg_color: Color32::from_gray(255), // e.g. TextEdit background code_bg_color: Color32::from_gray(230), - warn_fg_color: Color32::from_rgb(255, 0, 0), // red also, beecause orange doesn't look great because of https://github.com/emilk/egui/issues/1455 - error_fg_color: Color32::from_rgb(255, 0, 0), // red + warn_fg_color: Color32::from_rgb(255, 100, 0), // slightly orange red. it's difficult to find a warning color that pops on bright background. + error_fg_color: Color32::from_rgb(255, 0, 0), // red window_shadow: Shadow::big_light(), popup_shadow: Shadow::small_light(), ..Self::dark()