modal: shadow
This commit is contained in:
parent
db60717d1b
commit
14e69feae5
1 changed files with 7 additions and 1 deletions
|
@ -16,7 +16,7 @@ use std::sync::atomic::{AtomicBool, Ordering};
|
|||
use std::sync::{Arc, RwLock};
|
||||
|
||||
use egui::{Align2, Rect, RichText, Rounding, Stroke, Vec2};
|
||||
use egui::epaint::RectShape;
|
||||
use egui::epaint::{RectShape, Shadow};
|
||||
use lazy_static::lazy_static;
|
||||
|
||||
use crate::gui::Colors;
|
||||
|
@ -184,6 +184,12 @@ impl Modal {
|
|||
.default_width(width)
|
||||
.anchor(content_align, content_offset)
|
||||
.frame(egui::Frame {
|
||||
shadow: Shadow {
|
||||
offset: Default::default(),
|
||||
blur: 30.0,
|
||||
spread: 3.0,
|
||||
color: egui::Color32::from_black_alpha(32),
|
||||
},
|
||||
rounding: Rounding::same(8.0),
|
||||
fill: Colors::YELLOW,
|
||||
..Default::default()
|
||||
|
|
Loading…
Reference in a new issue