summaryrefslogtreecommitdiffstats
path: root/widget/src/container.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2025-02-22 00:34:55 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2025-02-22 00:34:55 +0100
commit954f49d4d73d040ef9367800a662031cd92d9e09 (patch)
treed7a9429e73f79884dfaa3f2e56d8b9b3496be34b /widget/src/container.rs
parentf1ed99cb47997e1d194a41e7cdf2846f8eb5f8fa (diff)
downloadiced-954f49d4d73d040ef9367800a662031cd92d9e09.tar.gz
iced-954f49d4d73d040ef9367800a662031cd92d9e09.tar.bz2
iced-954f49d4d73d040ef9367800a662031cd92d9e09.zip
Add `weakest` and `strongest` to `Background` palette
... and tweak background shade generation logic.
Diffstat (limited to 'widget/src/container.rs')
-rw-r--r--widget/src/container.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/widget/src/container.rs b/widget/src/container.rs
index da5b436f..82774186 100644
--- a/widget/src/container.rs
+++ b/widget/src/container.rs
@@ -703,10 +703,10 @@ pub fn bordered_box(theme: &Theme) -> Style {
let palette = theme.extended_palette();
Style {
- background: Some(palette.background.weak.color.into()),
+ background: Some(palette.background.weakest.color.into()),
border: Border {
width: 1.0,
- radius: 0.0.into(),
+ radius: 5.0.into(),
color: palette.background.strong.color,
},
..Style::default()