From 6e72db0fb6ec7c9f8d18ff68a36e55157579d0a4 Mon Sep 17 00:00:00 2001 From: tye-exe Date: Tue, 17 Jun 2025 13:33:54 +0100 Subject: [PATCH] Added `fade_out_to_color` as deprecated. --- crates/egui/src/style.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/crates/egui/src/style.rs b/crates/egui/src/style.rs index d04ac512a..2d0e28cb6 100644 --- a/crates/egui/src/style.rs +++ b/crates/egui/src/style.rs @@ -1056,6 +1056,13 @@ impl Visuals { self.window_stroke } + /// When fading out things, we fade the colors towards this. + #[inline(always)] + #[deprecated = "Use disabled_alpha(). Fading is now handled by modifying the alpha channel."] + pub fn fade_out_to_color(&self) -> Color32 { + self.widgets.noninteractive.weak_bg_fill + } + /// Disabled widgets have their alpha modified by this. #[inline(always)] pub fn disabled_alpha(&self) -> f32 {