pub trait ContextMenuTheme {
fn bg(&self) -> &str;
fn border(&self) -> &str;
fn shadow(&self) -> &str;
fn item_bg_normal(&self) -> &str;
fn item_bg_hover(&self) -> &str;
fn item_bg_danger_hover(&self) -> &str;
fn item_text(&self) -> &str;
fn item_text_hover(&self) -> &str;
fn item_text_disabled(&self) -> &str;
fn item_text_danger(&self) -> &str;
fn separator(&self) -> &str;
}
#[derive(Debug, Clone, Copy, Default)]
pub struct DefaultContextMenuTheme;
impl ContextMenuTheme for DefaultContextMenuTheme {
fn bg(&self) -> &str { "#1e222d" }
fn border(&self) -> &str { "#363a45" }
fn shadow(&self) -> &str { "rgba(0,0,0,0.3)" }
fn item_bg_normal(&self) -> &str { "#1e222d" }
fn item_bg_hover(&self) -> &str { "#2a2e39" }
fn item_bg_danger_hover(&self) -> &str { "rgba(242,54,69,0.15)" }
fn item_text(&self) -> &str { "#d1d4dc" }
fn item_text_hover(&self) -> &str { "#ffffff" }
fn item_text_disabled(&self) -> &str { "#6a6d78" }
fn item_text_danger(&self) -> &str { "#f23645" }
fn separator(&self) -> &str { "#363a45" }
}