diff --git a/src/avatar/mod.rs b/src/avatar/mod.rs index 7712672..0982e76 100644 --- a/src/avatar/mod.rs +++ b/src/avatar/mod.rs @@ -7,7 +7,7 @@ pub use theme::AvatarTheme; #[component] pub fn Avatar( #[prop(optional, into)] src: MaybeSignal, - #[prop(optional, into)] circle: MaybeSignal, + #[prop(optional, into)] round: MaybeSignal, #[prop(default = MaybeSignal::Static(30), into)] size: MaybeSignal, ) -> impl IntoView { let theme = use_theme(Theme::light); @@ -16,7 +16,7 @@ pub fn Avatar( css_vars.push_str(&format!("--thaw-size: {}px;", size.get())); css_vars.push_str(&format!( "--thaw-border-radius: {};", - if circle.get() { "50%" } else { "3px" } + if round.get() { "50%" } else { "3px" } )); theme.with(|theme| { css_vars.push_str(&format!( diff --git a/src/button/mod.rs b/src/button/mod.rs index a2c955b..c7179b0 100644 --- a/src/button/mod.rs +++ b/src/button/mod.rs @@ -28,7 +28,7 @@ pub enum ButtonColor { } impl ButtonColor { - pub fn theme_color(&self, theme: &Theme) -> String { + fn theme_color(&self, theme: &Theme) -> String { match self { ButtonColor::Primary => theme.common.color_primary.clone(), ButtonColor::Success => theme.common.color_success.clone(), @@ -36,7 +36,7 @@ impl ButtonColor { ButtonColor::Error => theme.common.color_error.clone(), } } - pub fn theme_color_hover(&self, theme: &Theme) -> String { + fn theme_color_hover(&self, theme: &Theme) -> String { match self { ButtonColor::Primary => theme.common.color_primary_hover.clone(), ButtonColor::Success => theme.common.color_success_hover.clone(), @@ -45,7 +45,7 @@ impl ButtonColor { } } - pub fn theme_color_active(&self, theme: &Theme) -> String { + fn theme_color_active(&self, theme: &Theme) -> String { match self { ButtonColor::Primary => theme.common.color_primary_active.clone(), ButtonColor::Success => theme.common.color_success_active.clone(), @@ -65,7 +65,7 @@ pub fn Button( #[prop(optional, into)] loading: MaybeSignal, #[prop(optional, into)] disabled: MaybeSignal, #[prop(optional, into)] on_click: Option>, - #[prop(optional)] children: Option, + #[prop(optional)] children: Option, ) -> impl IntoView { let theme = use_theme(Theme::light); let css_vars = create_memo(move |_| {