Merge branch 'main' into icon-button-square

This commit is contained in:
Danilo Leal 2025-08-13 14:26:43 -03:00 committed by GitHub
commit 7a51c95dac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
98 changed files with 3546 additions and 1701 deletions

View file

@ -133,7 +133,7 @@ impl Clickable for IconButton {
}
impl FixedWidth for IconButton {
fn width(mut self, width: DefiniteLength) -> Self {
fn width(mut self, width: impl Into<DefiniteLength>) -> Self {
self.base = self.base.width(width);
self
}
@ -194,7 +194,7 @@ impl RenderOnce for IconButton {
.map(|this| match self.shape {
IconButtonShape::Square => {
let size = self.icon_size.square(window, cx);
this.width(size.into()).height(size.into())
this.width(size).height(size.into())
}
IconButtonShape::Wide => this,
})