use gpui::{App, Hsla};
use theme::ActiveTheme;
pub fn background(cx: &App) -> Hsla {
cx.theme().colors().background
}
pub fn surface(cx: &App) -> Hsla {
cx.theme().colors().surface_background
}
pub fn elevated_surface(cx: &App) -> Hsla {
cx.theme().colors().elevated_surface_background
}
pub fn border(cx: &App) -> Hsla {
cx.theme().colors().border
}
pub fn border_muted(cx: &App) -> Hsla {
cx.theme().colors().border_variant
}
pub fn border_focused(cx: &App) -> Hsla {
cx.theme().colors().border_focused
}
pub fn text(cx: &App) -> Hsla {
cx.theme().colors().text
}
pub fn text_muted(cx: &App) -> Hsla {
cx.theme().colors().text_muted
}
pub fn text_placeholder(cx: &App) -> Hsla {
cx.theme().colors().text_placeholder
}
pub fn hover_bg(cx: &App) -> Hsla {
cx.theme().colors().element_hover
}
pub fn active_bg(cx: &App) -> Hsla {
cx.theme().colors().element_active
}
pub fn icon(cx: &App) -> Hsla {
cx.theme().colors().icon
}
pub fn icon_muted(cx: &App) -> Hsla {
cx.theme().colors().icon_muted
}
pub fn secondary_bg(cx: &App) -> Hsla {
cx.theme().colors().element_background
}
pub fn secondary_fg(cx: &App) -> Hsla {
cx.theme().colors().text
}
pub fn muted_bg(cx: &App) -> Hsla {
cx.theme().colors().ghost_element_hover
}
pub fn accent_bg(cx: &App) -> Hsla {
cx.theme().colors().element_selected
}
pub fn accent_fg(cx: &App) -> Hsla {
cx.theme().colors().text_accent
}
pub fn card(cx: &App) -> Hsla {
surface(cx)
}
pub fn popover(cx: &App) -> Hsla {
elevated_surface(cx)
}
pub fn ring(cx: &App) -> Hsla {
border_focused(cx)
}
pub fn input_border(cx: &App) -> Hsla {
border(cx)
}