diff options
author | 2024-03-08 00:25:42 +0100 | |
---|---|---|
committer | 2024-03-08 00:25:42 +0100 | |
commit | c99e5996478ee74e5328ef5aaa1d350fcc06933b (patch) | |
tree | e02aff60599e68cd45e5f66e711c832bd8d15003 /widget | |
parent | 1b96868e4836b0532ad5c2c0bdb85d1d6fd0698f (diff) | |
download | iced-c99e5996478ee74e5328ef5aaa1d350fcc06933b.tar.gz iced-c99e5996478ee74e5328ef5aaa1d350fcc06933b.tar.bz2 iced-c99e5996478ee74e5328ef5aaa1d350fcc06933b.zip |
Make `Checkbox`, `Radio`, and `Toggler` default sizes consistent
Diffstat (limited to '')
-rw-r--r-- | widget/src/checkbox.rs | 4 | ||||
-rw-r--r-- | widget/src/radio.rs | 4 | ||||
-rw-r--r-- | widget/src/toggler.rs | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/widget/src/checkbox.rs b/widget/src/checkbox.rs index c837ab3f..f0c7357b 100644 --- a/widget/src/checkbox.rs +++ b/widget/src/checkbox.rs @@ -59,10 +59,10 @@ where Renderer: text::Renderer, { /// The default size of a [`Checkbox`]. - const DEFAULT_SIZE: f32 = 15.0; + const DEFAULT_SIZE: f32 = 16.0; /// The default spacing of a [`Checkbox`]. - const DEFAULT_SPACING: f32 = 10.0; + const DEFAULT_SPACING: f32 = 8.0; /// Creates a new [`Checkbox`]. /// diff --git a/widget/src/radio.rs b/widget/src/radio.rs index 34c3b3a0..5e4a3c1f 100644 --- a/widget/src/radio.rs +++ b/widget/src/radio.rs @@ -90,10 +90,10 @@ where Renderer: text::Renderer, { /// The default size of a [`Radio`] button. - pub const DEFAULT_SIZE: f32 = 15.0; + pub const DEFAULT_SIZE: f32 = 16.0; /// The default spacing of a [`Radio`] button. - pub const DEFAULT_SPACING: f32 = 10.0; + pub const DEFAULT_SPACING: f32 = 8.0; /// Creates a new [`Radio`] button. /// diff --git a/widget/src/toggler.rs b/widget/src/toggler.rs index 6b540f1c..9e81ba33 100644 --- a/widget/src/toggler.rs +++ b/widget/src/toggler.rs @@ -56,7 +56,7 @@ where Renderer: text::Renderer, { /// The default size of a [`Toggler`]. - pub const DEFAULT_SIZE: f32 = 20.0; + pub const DEFAULT_SIZE: f32 = 16.0; /// Creates a new [`Toggler`]. /// |