#[repr(C)]pub struct ColorTheme {
pub primary_neon: [f32; 4],
pub shatter_neon: [f32; 4],
pub glass_base: [f32; 4],
pub glass_edge: [f32; 4],
pub rune_glow: [f32; 4],
pub ember_core: [f32; 4],
pub background_deep: [f32; 4],
pub mani_glow: [f32; 4],
pub glass_blur_strength: f32,
pub shatter_edge_width: f32,
pub neon_bloom_radius: f32,
pub rune_opacity: f32,
}Expand description
Fully themeable color palette for the Berserker pipeline.
Fields§
§primary_neon: [f32; 4]§shatter_neon: [f32; 4]§glass_base: [f32; 4]§glass_edge: [f32; 4]§rune_glow: [f32; 4]§ember_core: [f32; 4]§background_deep: [f32; 4]§mani_glow: [f32; 4]§glass_blur_strength: f32§shatter_edge_width: f32§neon_bloom_radius: f32§rune_opacity: f32Implementations§
Source§impl ColorTheme
impl ColorTheme
Sourcepub fn midgard() -> Self
pub fn midgard() -> Self
Midgard Mode: A clean, functional tactical HUD for standard operations.
pub fn cyberpunk_viking() -> Self
pub fn vibrant_glass() -> Self
Trait Implementations§
Source§impl Clone for ColorTheme
impl Clone for ColorTheme
Source§fn clone(&self) -> ColorTheme
fn clone(&self) -> ColorTheme
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 moreimpl Copy for ColorTheme
Source§impl Debug for ColorTheme
impl Debug for ColorTheme
Source§impl Default for ColorTheme
impl Default for ColorTheme
Source§impl<'de> Deserialize<'de> for ColorTheme
impl<'de> Deserialize<'de> for ColorTheme
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Pod for ColorTheme
Source§impl Serialize for ColorTheme
impl Serialize for ColorTheme
Auto Trait Implementations§
impl Freeze for ColorTheme
impl RefUnwindSafe for ColorTheme
impl Send for ColorTheme
impl Sync for ColorTheme
impl Unpin for ColorTheme
impl UnsafeUnpin for ColorTheme
impl UnwindSafe for ColorTheme
Blanket Implementations§
impl<T> AnyBitPattern for Twhere
T: Pod,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.