Use Pixels for size methods
This commit is contained in:
parent
67e3da5669
commit
0872d078e2
3 changed files with 7 additions and 7 deletions
|
|
@ -101,8 +101,8 @@ where
|
|||
}
|
||||
|
||||
/// Sets the size of the [`Radio`] button.
|
||||
pub fn size(mut self, size: f32) -> Self {
|
||||
self.size = size;
|
||||
pub fn size(mut self, size: impl Into<Pixels>) -> Self {
|
||||
self.size = size.into().0;
|
||||
self
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue