Use f32 for Icon::size in checkbox

This commit is contained in:
Héctor Ramón Jiménez 2023-02-17 16:18:27 +01:00
parent 3320ac1126
commit fd3a141024
No known key found for this signature in database
GPG key ID: 140CC052C94F138E

View file

@ -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.