mirror of
https://github.com/emilk/egui.git
synced 2026-08-30 21:30:03 -04:00
[style] Fade out windows on close
This commit is contained in:
@@ -1,11 +1,15 @@
|
||||
use super::*;
|
||||
|
||||
/// A rectangular shadow with a soft penumbra.
|
||||
/// The color and fuzziness of a fuzzy shape.
|
||||
/// Can be used for a rectangular shadow with a soft penumbra.
|
||||
#[derive(Clone, Copy, Debug, Default, PartialEq)]
|
||||
#[cfg_attr(feature = "persistence", derive(serde::Deserialize, serde::Serialize))]
|
||||
pub struct Shadow {
|
||||
// The shadow extends this much outside the rect.
|
||||
/// The shadow extends this much outside the rect.
|
||||
/// The size of the fuzzy penumbra.
|
||||
pub extrusion: f32,
|
||||
|
||||
/// Color of the opaque center of the shadow.
|
||||
pub color: Color32,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user