summaryrefslogtreecommitdiffstats
path: root/examples/scrollable
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-03-05 22:13:36 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-03-05 22:13:55 +0100
commit5824ceb1fe8420b9337eee9a0e6db6cf7cb7f269 (patch)
treea0a4ae0022d48490cc3f2c579aa020cd13955f71 /examples/scrollable
parent87d16a090b14fa206bb87041a32d66348bc294e4 (diff)
downloadiced-5824ceb1fe8420b9337eee9a0e6db6cf7cb7f269.tar.gz
iced-5824ceb1fe8420b9337eee9a0e6db6cf7cb7f269.tar.bz2
iced-5824ceb1fe8420b9337eee9a0e6db6cf7cb7f269.zip
Simplify theming for `ProgressBar` widget
Diffstat (limited to 'examples/scrollable')
-rw-r--r--examples/scrollable/src/main.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/scrollable/src/main.rs b/examples/scrollable/src/main.rs
index bae23775..2ad7272b 100644
--- a/examples/scrollable/src/main.rs
+++ b/examples/scrollable/src/main.rs
@@ -5,7 +5,8 @@ use iced::widget::{
scrollable, slider, text, vertical_space, Scrollable,
};
use iced::{
- Alignment, Application, Color, Command, Element, Length, Settings, Theme,
+ Alignment, Application, Border, Color, Command, Element, Length, Settings,
+ Theme,
};
use once_cell::sync::Lazy;
@@ -348,6 +349,6 @@ fn progress_bar_custom_style(theme: &Theme) -> progress_bar::Appearance {
progress_bar::Appearance {
background: theme.extended_palette().background.strong.color.into(),
bar: Color::from_rgb8(250, 85, 134).into(),
- border_radius: 0.0.into(),
+ border: Border::default(),
}
}