summaryrefslogtreecommitdiffstats
path: root/widget/src
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector@hecrj.dev>2024-02-07 20:38:47 +0100
committerLibravatar GitHub <noreply@github.com>2024-02-07 20:38:47 +0100
commit80081f0f1c00d9dc94d3ed24dd37ab5285cff0db (patch)
treea650daae1dcf5e470e96bdae4a4e5ce6ae4ebdfd /widget/src
parent80a29a277e2f15c0711efc37dc6c86c2ef98879e (diff)
parentcecfa1c467124f255fd86077bdb9e610690d4a32 (diff)
downloadiced-80081f0f1c00d9dc94d3ed24dd37ab5285cff0db.tar.gz
iced-80081f0f1c00d9dc94d3ed24dd37ab5285cff0db.tar.bz2
iced-80081f0f1c00d9dc94d3ed24dd37ab5285cff0db.zip
Merge pull request #2219 from GyulyVGC/toggler-border-width
Add border widths to `Toggler` `StyleSheet`
Diffstat (limited to '')
-rw-r--r--widget/src/toggler.rs8
1 files changed, 4 insertions, 4 deletions
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()
},