From ae3f5ba1a33f47692bc39080a0d2e12b8106499f Mon Sep 17 00:00:00 2001 From: Giuliano Bellini s294739 Date: Sat, 27 Jan 2024 21:56:28 +0100 Subject: add border widths to toggler stylesheet --- widget/src/toggler.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'widget/src/toggler.rs') diff --git a/widget/src/toggler.rs b/widget/src/toggler.rs index 1d313df3..4e3925ba 100644 --- a/widget/src/toggler.rs +++ b/widget/src/toggler.rs @@ -315,8 +315,8 @@ where bounds: toggler_background_bounds, border: Border { radius: border_radius.into(), - width: 1.0, - color: style.background_border.unwrap_or(style.background), + width: style.background_border_width, + color: style.background_border_color, }, ..renderer::Quad::default() }, @@ -340,8 +340,8 @@ where bounds: toggler_foreground_bounds, border: Border { radius: border_radius.into(), - width: 1.0, - color: style.foreground_border.unwrap_or(style.foreground), + width: style.foreground_border_width, + color: style.foreground_border_color, }, ..renderer::Quad::default() }, -- cgit