mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 06:40:06 -04:00
Added fade_out_to_color as deprecated.
This commit is contained in:
@@ -1056,6 +1056,13 @@ impl Visuals {
|
|||||||
self.window_stroke
|
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.
|
/// Disabled widgets have their alpha modified by this.
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
pub fn disabled_alpha(&self) -> f32 {
|
pub fn disabled_alpha(&self) -> f32 {
|
||||||
|
|||||||
Reference in New Issue
Block a user