pub struct Theme {
pub name: &'static str,
pub bg: Color32,
pub node_fill: Color32,
pub node_stroke: Color32,
pub edge: Color32,
pub text: Color32,
pub text_dim: Color32,
pub accent: Color32,
pub point: Color32,
pub panel_bg: Color32,
pub panel_stroke: Color32,
pub glow: Color32,
}Expand description
The facett palette. All custom-painted colours come from here.
glow is the colour the effects module blooms with
(layered alpha strokes). It defaults to accent for the legacy palettes via
the constructors below, but a striking theme may pick a distinct glow.
Fields§
§name: &'static str§bg: Color32§node_fill: Color32§node_stroke: Color32§edge: Color32§text: Color32§text_dim: Color32§accent: Color32§point: Color32§panel_bg: Color32§panel_stroke: Color32§glow: Color32The colour effects blooms/shimmers with.
Implementations§
Source§impl Theme
impl Theme
Sourcepub const ALL: &'static [fn() -> Theme]
pub const ALL: &'static [fn() -> Theme]
Every named theme, in picker order. Drives a UI/CLI palette switcher.
Sourcepub fn names() -> Vec<&'static str>
pub fn names() -> Vec<&'static str>
The names of every theme in Theme::ALL — handy for a CLI --theme
flag or a dropdown without constructing each palette.
Sourcepub fn by_name(name: &str) -> Option<Theme>
pub fn by_name(name: &str) -> Option<Theme>
Look a theme up by its name (case-insensitive; -/_/spaces are
interchangeable, so "nordic aurora", "nordic-aurora", "Nordic_Aurora"
all match). None if unknown.
Sourcepub fn sci_fi() -> Self
pub fn sci_fi() -> Self
Neon-on-near-black — a sci-fi HUD look (cyan/magenta on deep blue-black).
Sourcepub fn nordic_aurora() -> Self
pub fn nordic_aurora() -> Self
Nordic aurora — deep fjord-night blue with green/teal aurora ribbons and a cold violet accent. Calm but luminous; the glow is aurora-green.
Sourcepub fn cyberpunk_neon() -> Self
pub fn cyberpunk_neon() -> Self
Cyberpunk neon — hot magenta + electric cyan on bruised purple-black. Maximum night-city pop; the glow is magenta.
Sourcepub fn amber_crt() -> Self
pub fn amber_crt() -> Self
Amber CRT — a warm phosphor terminal: amber-on-black with a dim scan-line brown. Cosy retro; the glow is amber.
Sourcepub fn deep_space() -> Self
pub fn deep_space() -> Self
Deep space — near-black indigo void, starlight-white text, and a nebula magenta/blue accent. Vast and quiet; the glow is nebula-violet.
Sourcepub fn hugin_noir() -> Self
pub fn hugin_noir() -> Self
Hugin noir — the raven’s own palette: raven-black ground, bone-white text, a single blood-red accent. Stark and editorial; the glow is blood.