From bfc71514a828ff5c5b188f19e9e3c33c0a696adf Mon Sep 17 00:00:00 2001 From: Michael Aaron Murphy Date: Fri, 27 Jan 2023 03:59:11 +0100 Subject: [PATCH] fix(widget/icon): default content_fit to fill --- src/widget/icon.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widget/icon.rs b/src/widget/icon.rs index e0e8407e..814acd9f 100644 --- a/src/widget/icon.rs +++ b/src/widget/icon.rs @@ -180,7 +180,7 @@ pub struct Icon<'a> { #[must_use] pub fn icon<'a>(source: impl Into>, size: u16) -> Icon<'a> { Icon { - content_fit: ContentFit::ScaleDown, + content_fit: ContentFit::Fill, height: None, source: source.into(), size,