diff --git a/src/progress/progress.css b/src/progress/progress.css
index 7cd637b..f14a8f1 100644
--- a/src/progress/progress.css
+++ b/src/progress/progress.css
@@ -9,19 +9,21 @@
flex: 1;
position: relative;
height: 8px;
- background: #f2f2f2;
+ line-height: 8px;
+ background: var(--thaw-background-color);
border-radius: 4px;
}
.thaw-progress__progress--indicator-inside {
height: 16px;
+ line-height: 16px;
font-size: 12px;
border-radius: 8px;
}
.thaw-progress__progress-inner {
position: absolute;
- background: var(--thaw-background-color);
+ background: var(--thaw-inner-background-color);
height: 100%;
border-radius: inherit;
transition: width 0.1s;
diff --git a/src/progress/theme.rs b/src/progress/theme.rs
new file mode 100644
index 0000000..4c78aa1
--- /dev/null
+++ b/src/progress/theme.rs
@@ -0,0 +1,20 @@
+use crate::theme::ThemeMethod;
+
+#[derive(Clone)]
+pub struct ProgressTheme {
+ pub background_color: String,
+}
+
+impl ThemeMethod for ProgressTheme {
+ fn light() -> Self {
+ Self {
+ background_color: "#ebebeb".into(),
+ }
+ }
+
+ fn dark() -> Self {
+ Self {
+ background_color: "#ffffff1f".into(),
+ }
+ }
+}
diff --git a/src/theme/mod.rs b/src/theme/mod.rs
index 8efbbe9..5fdf504 100644
--- a/src/theme/mod.rs
+++ b/src/theme/mod.rs
@@ -4,8 +4,8 @@ use self::common::CommonTheme;
use crate::{
mobile::{NavBarTheme, TabbarTheme},
AlertTheme, AutoCompleteTheme, AvatarTheme, BreadcrumbTheme, ButtonTheme, ColorPickerTheme,
- InputTheme, MenuTheme, MessageTheme, SelectTheme, SkeletionTheme, SliderTheme, SwitchTheme,
- TableTheme, TagTheme, UploadTheme,
+ InputTheme, MenuTheme, MessageTheme, ProgressTheme, SelectTheme, SkeletionTheme, SliderTheme,
+ SwitchTheme, TableTheme, TagTheme, UploadTheme,
};
use leptos::*;
@@ -36,6 +36,7 @@ pub struct Theme {
pub auto_complete: AutoCompleteTheme,
pub color_picker: ColorPickerTheme,
pub breadcrumb: BreadcrumbTheme,
+ pub progress: ProgressTheme,
}
impl Theme {
@@ -61,6 +62,7 @@ impl Theme {
auto_complete: AutoCompleteTheme::light(),
color_picker: ColorPickerTheme::light(),
breadcrumb: BreadcrumbTheme::light(),
+ progress: ProgressTheme::light(),
}
}
pub fn dark() -> Self {
@@ -85,6 +87,7 @@ impl Theme {
auto_complete: AutoCompleteTheme::dark(),
color_picker: ColorPickerTheme::dark(),
breadcrumb: BreadcrumbTheme::dark(),
+ progress: ProgressTheme::dark(),
}
}
}