use iced::{
Border, Color, Shadow, Theme,
widget::{button, container},
};
pub fn menu_button_style(theme: &Theme, status: button::Status) -> button::Style {
let ep = theme.extended_palette();
let text_color = match status {
button::Status::Hovered => ep.primary.strong.color,
button::Status::Pressed => ep.primary.base.color,
_ => ep.primary.weak.color,
};
button::Style {
background: None,
text_color,
border: Border::default(),
shadow: Shadow::default(),
snap: true,
}
}
pub fn chrome_container_style(theme: &Theme) -> container::Style {
let ep = theme.extended_palette();
container::Style {
text_color: Some(ep.background.base.text),
background: None,
border: Border {
radius: 0.0.into(),
width: 1.0,
color: ep.background.weak.color,
},
shadow: Shadow::default(),
snap: true,
}
}
pub fn sidebar_active_color(theme: &Theme) -> Color {
theme.extended_palette().primary.weak.color
}