summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/settings.rs6
-rw-r--r--src/widget.rs2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/settings.rs b/src/settings.rs
index d31448fb..0eb3e62d 100644
--- a/src/settings.rs
+++ b/src/settings.rs
@@ -28,8 +28,8 @@ pub struct Settings<Flags> {
/// The text size that will be used by default.
///
- /// The default value is 20.
- pub default_text_size: u16,
+ /// The default value is `20.0`.
+ pub default_text_size: f32,
/// If enabled, spread text workload in multiple threads when multiple cores
/// are available.
@@ -97,7 +97,7 @@ where
window: Default::default(),
flags: Default::default(),
default_font: Default::default(),
- default_text_size: 20,
+ default_text_size: 20.0,
text_multithreading: false,
antialiasing: false,
exit_on_close_request: true,
diff --git a/src/widget.rs b/src/widget.rs
index 5bf7b6b4..7da5b82b 100644
--- a/src/widget.rs
+++ b/src/widget.rs
@@ -31,7 +31,7 @@ pub mod button {
pub mod checkbox {
//! Show toggle controls using checkboxes.
- pub use iced_native::widget::checkbox::{Appearance, StyleSheet};
+ pub use iced_native::widget::checkbox::{Appearance, Icon, StyleSheet};
/// A box that can be checked.
pub type Checkbox<'a, Message, Renderer = crate::Renderer> =