diff --git a/liana-ui/src/component/notification.rs b/liana-ui/src/component/notification.rs index eebe6679..887da43d 100644 --- a/liana-ui/src/component/notification.rs +++ b/liana-ui/src/component/notification.rs @@ -53,7 +53,7 @@ pub fn warning<'a, T: 'a + Clone>(message: String, error: String) -> Container<' move || Element::<'a, T>::from(text::p2_regular(error.to_owned())), ))) .padding(15) - .style(theme::card::warning) + .style(theme::banner::warning) .width(Length::Fill) } diff --git a/liana-ui/src/theme/banner.rs b/liana-ui/src/theme/banner.rs index f2798b58..65dbd619 100644 --- a/liana-ui/src/theme/banner.rs +++ b/liana-ui/src/theme/banner.rs @@ -26,3 +26,7 @@ fn banner(palette: &ContainerPalette) -> Style { pub fn network(theme: &Theme) -> Style { banner(&theme.colors.banners.network) } + +pub fn warning(theme: &Theme) -> Style { + banner(&theme.colors.banners.warning) +}