window: Fix round corners on maximize

This commit is contained in:
Victoria Brekenfeld 2024-08-02 20:40:59 +02:00
parent c299748997
commit 5aaac707f8
2 changed files with 13 additions and 45 deletions

View file

@ -110,7 +110,7 @@ pub trait Program {
}
fn view(&self) -> cosmic::Element<'_, Self::Message>;
fn background_color(&self) -> Color {
fn background_color(&self, _theme: &cosmic::Theme) -> Color {
Color::TRANSPARENT
}
@ -892,7 +892,7 @@ where
.expect("Failed to create pixel map");
renderer.with_primitives(|backend, primitives| {
let background_color = state_ref.program().0.background_color();
let background_color = state_ref.program().0.background_color(theme);
let bounds = IcedSize::new(size.w as u32, size.h as u32);
let viewport = Viewport::with_physical_size(bounds, scale.x);