Expand description
Theme: every human-visible string, glyph, and color the library emits lives here, so nothing is hardcoded in the machinery. The default theme is neutral — no personal voice — and any field can be overridden wholesale or piecemeal.
ⓘ
use cornerstone::prelude::*;
let theme = Theme::default()
.success_glyph("»")
.error_label("fatal:");
App::new("tool").theme(theme) /* ... */ ;The active theme is process-global (set once at startup by the app) so that
free functions in crate::out can reach it without threading it through
every call.
Structs§
- Theme
- All customizable presentation. Construct with
Theme::defaultand override fields with the builder methods.
Functions§
- active
- Access the active theme, falling back to the default if none is installed. Returns an owned clone so callers don’t hold the lock.
- set_
active - Install the active theme (called once by the app at startup).