pub struct Colors {
pub background: Color,
pub surface: Color,
pub raised: Color,
pub highlight: Color,
pub foreground: Color,
pub muted: Color,
pub accent: Color,
pub on_accent: Color,
pub danger: Color,
pub success: Color,
pub border: Color,
pub shadow: Color,
}Expand description
Color roles. The defaults are “Obsidian”: a black island that blends into the bezel, graphite layers on it, and one accent used sparingly.
Fields§
§background: ColorThe island and the control center panel.
surface: ColorCards and tiles on the background.
raised: ColorControls, tracks and dividers: one step above surface.
highlight: ColorHovered or pressed controls: one step above raised.
foreground: Color§muted: ColorSecondary text and icons.
accent: ColorActive, selected or important things, and nothing else.
on_accent: ColorText and icons on accent.
danger: ColorDestructive actions, like a shut down waiting for its second click.
success: Color§border: ColorThe hairline around the island and the bubbles.
shadow: ColorThe shadow under them. Transparent turns it off.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Colors
impl<'de> Deserialize<'de> for Colors
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 Eq for Colors
Source§impl JsonSchema for Colors
impl JsonSchema for Colors
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for Colors
Auto Trait Implementations§
impl Freeze for Colors
impl RefUnwindSafe for Colors
impl Send for Colors
impl Sync for Colors
impl Unpin for Colors
impl UnsafeUnpin for Colors
impl UnwindSafe for Colors
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