From 87d16a090b14fa206bb87041a32d66348bc294e4 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Tue, 5 Mar 2024 22:03:10 +0100 Subject: Reduce default size of `checkbox` to `15.0` --- widget/src/checkbox.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'widget/src/checkbox.rs') diff --git a/widget/src/checkbox.rs b/widget/src/checkbox.rs index 54513b7d..91838291 100644 --- a/widget/src/checkbox.rs +++ b/widget/src/checkbox.rs @@ -62,7 +62,7 @@ where Theme: Style, { /// The default size of a [`Checkbox`]. - const DEFAULT_SIZE: f32 = 20.0; + const DEFAULT_SIZE: f32 = 15.0; /// The default spacing of a [`Checkbox`]. const DEFAULT_SPACING: f32 = 10.0; @@ -91,7 +91,7 @@ where line_height: text::LineHeight::default(), shaping: text::Shaping::Basic, }, - style: Theme::default(), + style: Theme::style(), } } @@ -426,11 +426,11 @@ pub struct Appearance { /// A set of rules that dictate the style of a checkbox. pub trait Style { /// The supported style of the [`StyleSheet`]. - fn default() -> fn(&Self, Status) -> Appearance; + fn style() -> fn(&Self, Status) -> Appearance; } impl Style for Theme { - fn default() -> fn(&Self, Status) -> Appearance { + fn style() -> fn(&Self, Status) -> Appearance { primary } } -- cgit