diff options
author | 2023-02-17 16:18:27 +0100 | |
---|---|---|
committer | 2023-02-17 16:18:27 +0100 | |
commit | fd3a141024a11e17bba0c568f0df7ff34b79315b (patch) | |
tree | 2f53f6b4eddf8af54a8b76bd7e9978c15812ef17 /native | |
parent | 3320ac1126750ed1c462d4f1ff81a59c74d1e9fb (diff) | |
download | iced-fd3a141024a11e17bba0c568f0df7ff34b79315b.tar.gz iced-fd3a141024a11e17bba0c568f0df7ff34b79315b.tar.bz2 iced-fd3a141024a11e17bba0c568f0df7ff34b79315b.zip |
Use `f32` for `Icon::size` in `checkbox`
Diffstat (limited to 'native')
-rw-r--r-- | native/src/widget/checkbox.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/native/src/widget/checkbox.rs b/native/src/widget/checkbox.rs index 835a0651..dc00052d 100644 --- a/native/src/widget/checkbox.rs +++ b/native/src/widget/checkbox.rs @@ -15,14 +15,14 @@ use crate::{ pub use iced_style::checkbox::{Appearance, StyleSheet}; /// The icon in a [`Checkbox`]. -#[derive(Debug, Clone, PartialEq, Eq)] +#[derive(Debug, Clone, PartialEq)] pub struct Icon<Font> { /// Font that will be used to display the `code_point`, pub font: Font, /// The unicode code point that will be used as the icon. pub code_point: char, /// Font size of the content. - pub size: Option<u16>, + pub size: Option<f32>, } /// A box that can be checked. |