This commit is contained in:
Ashley Wulber 2026-05-20 15:40:01 -04:00 committed by Ashley Wulber
parent 76954a6524
commit 033dfe6c57

View file

@ -1540,7 +1540,6 @@ impl<App: Application> Cosmic<App> {
) -> Task<crate::Action<App::Message>> { ) -> Task<crate::Action<App::Message>> {
use iced_winit::commands::corner_radius; use iced_winit::commands::corner_radius;
use iced_winit::commands::layer_surface::set_padding; use iced_winit::commands::layer_surface::set_padding;
dbg!(id_wrapper, live_settings);
let id = id_wrapper.inner(); let id = id_wrapper.inner();
let mut cmds = Vec::with_capacity(2); let mut cmds = Vec::with_capacity(2);
@ -1557,10 +1556,8 @@ impl<App: Application> Cosmic<App> {
cmds.push(iced::window::enable_blur(id)); cmds.push(iced::window::enable_blur(id));
} }
if let Some(corners) = live_settings.corners { if let Some(corners) = live_settings.corners {
dbg!(corners);
cmds.push(corner_radius::corner_radius(id, Some(corners)).discard()); cmds.push(corner_radius::corner_radius(id, Some(corners)).discard());
} else { } else {
dbg!("app corners");
let rounded = !self.app.core().window.sharp_corners let rounded = !self.app.core().window.sharp_corners
&& self.app.core().sync_window_border_radii_to_theme(); && self.app.core().sync_window_border_radii_to_theme();
if let Some(cur_rad) = if let Some(cur_rad) =