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 --- style/src/toggler.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'style/src/toggler.rs') diff --git a/style/src/toggler.rs b/style/src/toggler.rs index abc73f2a..731e87ce 100644 --- a/style/src/toggler.rs +++ b/style/src/toggler.rs @@ -6,12 +6,16 @@ use iced_core::Color; pub struct Appearance { /// The background [`Color`] of the toggler. pub background: Color, + /// The width of the background border of the toggler. + pub background_border_width: f32, /// The [`Color`] of the background border of the toggler. - pub background_border: Option, + pub background_border_color: Color, /// The foreground [`Color`] of the toggler. pub foreground: Color, + /// The width of the foreground border of the toggler. + pub foreground_border_width: f32, /// The [`Color`] of the foreground border of the toggler. - pub foreground_border: Option, + pub foreground_border_color: Color, } /// A set of rules that dictate the style of a toggler. -- cgit