Use f32 for Icon::size in checkbox
This commit is contained in:
parent
3320ac1126
commit
fd3a141024
1 changed files with 2 additions and 2 deletions
|
|
@ -15,14 +15,14 @@ use crate::{
|
||||||
pub use iced_style::checkbox::{Appearance, StyleSheet};
|
pub use iced_style::checkbox::{Appearance, StyleSheet};
|
||||||
|
|
||||||
/// The icon in a [`Checkbox`].
|
/// The icon in a [`Checkbox`].
|
||||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
#[derive(Debug, Clone, PartialEq)]
|
||||||
pub struct Icon<Font> {
|
pub struct Icon<Font> {
|
||||||
/// Font that will be used to display the `code_point`,
|
/// Font that will be used to display the `code_point`,
|
||||||
pub font: Font,
|
pub font: Font,
|
||||||
/// The unicode code point that will be used as the icon.
|
/// The unicode code point that will be used as the icon.
|
||||||
pub code_point: char,
|
pub code_point: char,
|
||||||
/// Font size of the content.
|
/// Font size of the content.
|
||||||
pub size: Option<u16>,
|
pub size: Option<f32>,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A box that can be checked.
|
/// A box that can be checked.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue