Custom window title #8

Merged
ardocrat merged 29 commits from custom_window_title into master 2024-07-03 13:44:26 +03:00
Showing only changes of commit fefbe76f9c - Show all commits

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,