ui: content background and stroke

This commit is contained in:
ardocrat 2024-06-24 12:07:23 +03:00
parent 5d0bd0e0c0
commit fefbe76f9c

View file

@ -77,6 +77,7 @@ impl<Platform: PlatformCallbacks> App<Platform> {
} else { } else {
egui::CentralPanel::default() egui::CentralPanel::default()
.frame(egui::Frame { .frame(egui::Frame {
fill: Colors::fill(),
stroke: Stroke::NONE, stroke: Stroke::NONE,
..Default::default() ..Default::default()
}) })
@ -105,11 +106,13 @@ impl<Platform: PlatformCallbacks> App<Platform> {
egui::Frame::default() egui::Frame::default()
} else { } else {
egui::Frame { egui::Frame {
fill: Colors::fill(),
stroke: Stroke { width: 1.0, color: egui::Color32::from_gray(220) },
shadow: Shadow { shadow: Shadow {
offset: Default::default(), offset: Default::default(),
blur: Root::WINDOW_FRAME_MARGIN, blur: Root::WINDOW_FRAME_MARGIN,
spread: 0.5, spread: 0.5,
color: egui::Color32::from_black_alpha(25), color: egui::Color32::from_black_alpha(35),
}, },
rounding: Rounding { rounding: Rounding {
nw: 8.0, nw: 8.0,