pub struct AdminTheme {
pub accent: String,
pub bg: String,
pub surface: String,
pub text: String,
pub text_muted: String,
pub border: String,
}Expand description
Full admin chrome palette. Each field maps onto one of the
framework’s --rio-* design tokens defined in _base.html, so
overriding these values via Admin::theme(...) re-skins the
entire admin shell without touching CSS.
Defaults match the framework’s current chrome so a project that
doesn’t call .theme(...) renders unchanged.
Hex form (#rrggbb or rrggbb); leading # is auto-normalised
at render time. Malformed values fall back to framework defaults
rather than panic — the admin path never breaks over a config typo.
Fields§
§accent: String§bg: String§surface: String§text: String§text_muted: String§border: StringTrait Implementations§
Source§impl Clone for AdminTheme
impl Clone for AdminTheme
Source§fn clone(&self) -> AdminTheme
fn clone(&self) -> AdminTheme
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AdminTheme
impl Debug for AdminTheme
Source§impl Default for AdminTheme
impl Default for AdminTheme
Source§impl PartialEq for AdminTheme
impl PartialEq for AdminTheme
Source§fn eq(&self, other: &AdminTheme) -> bool
fn eq(&self, other: &AdminTheme) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for AdminTheme
impl StructuralPartialEq for AdminTheme
Auto Trait Implementations§
impl Freeze for AdminTheme
impl RefUnwindSafe for AdminTheme
impl Send for AdminTheme
impl Sync for AdminTheme
impl Unpin for AdminTheme
impl UnsafeUnpin for AdminTheme
impl UnwindSafe for AdminTheme
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more