Simplify theming for ProgressBar widget

This commit is contained in:
Héctor Ramón Jiménez 2024-03-05 22:13:36 +01:00
parent 87d16a090b
commit 5824ceb1fe
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
6 changed files with 89 additions and 106 deletions

View file

@ -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(),
}
}