Struct Theme
pub struct Theme {
pub accent: Option<String>,
pub ok: Option<String>,
pub warn: Option<String>,
pub alarm: Option<String>,
pub track: Option<String>,
}Expand description
A small set of theme tokens a profile can set on the dashboard.
Each token, when present, tints one of the page’s CSS custom properties, so a deployment can carry its own brand accent and status palette. Modest by design: it tints the existing console rather than restyling it. Colors are any CSS color.
Fields§
§accent: Option<String>The brand/interaction accent (links, focus glow, brand mark), such as "#3fb1c8".
ok: Option<String>The healthy/ok status color, which also tints an in-band gauge.
warn: Option<String>The warning status color.
alarm: Option<String>The alarm status color.
track: Option<String>The unfilled track/rail color behind gauges and progress bars.
Trait Implementations§
§impl<'de> Deserialize<'de> for Theme
impl<'de> Deserialize<'de> for Theme
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Theme, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Theme, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Theme
§impl Serialize for Theme
impl Serialize for Theme
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for Theme
Auto Trait Implementations§
impl Freeze for Theme
impl RefUnwindSafe for Theme
impl Send for Theme
impl Sync for Theme
impl Unpin for Theme
impl UnsafeUnpin for Theme
impl UnwindSafe for Theme
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more