use zng_color::{
colors::{ACCENT_COLOR_VAR, BASE_COLOR_VAR},
COLOR_SCHEME_VAR,
};
use crate::prelude::*;
#[property(CONTEXT, default(COLOR_SCHEME_VAR))]
pub fn color_scheme(child: impl UiNode, pref: impl IntoVar<ColorScheme>) -> impl UiNode {
with_context_var(child, COLOR_SCHEME_VAR, pref)
}
#[property(CONTEXT, default(ACCENT_COLOR_VAR))]
pub fn accent_color(child: impl UiNode, color: impl IntoVar<LightDark>) -> impl UiNode {
with_context_var(child, ACCENT_COLOR_VAR, color)
}
#[property(CONTEXT, default(BASE_COLOR_VAR))]
pub fn base_color(child: impl UiNode, color: impl IntoVar<LightDark>) -> impl UiNode {
with_context_var(child, BASE_COLOR_VAR, color)
}