fix: window corner handling

This commit is contained in:
Vukašin Vojinović 2025-10-03 18:19:19 +02:00 committed by Ashley Wulber
parent 5cd7742413
commit ad1672b881
5 changed files with 36 additions and 32 deletions

View file

@ -148,7 +148,7 @@ impl iced_button::Catalog for Theme {
impl Button {
#[allow(clippy::trivially_copy_pass_by_ref)]
#[allow(clippy::match_same_arms)]
fn cosmic<'a>(&'a self, theme: &'a Theme) -> &CosmicComponent {
fn cosmic<'a>(&'a self, theme: &'a Theme) -> &'a CosmicComponent {
let cosmic = theme.cosmic();
match self {
Self::Primary => &cosmic.accent_button,