pub struct NeutralRamp {Show 19 fields
pub window: Color,
pub subtle: Color,
pub panel: Color,
pub overlay: Color,
pub control: Color,
pub control_hover: Color,
pub control_active: Color,
pub button: Color,
pub button_hover: Color,
pub button_active: Color,
pub field: Color,
pub border_subtle: Color,
pub border: Color,
pub border_strong: Color,
pub border_control: Color,
pub text: Color,
pub text_secondary: Color,
pub text_tertiary: Color,
pub text_disabled: Color,
}Expand description
Every structural tier of a theme: surfaces, neutral fills, borders, and ink. Built-in themes author these directly so each preset can choose pure or subtly tinted neutrals; widgets never derive structure from the brand color.
Fields§
§window: ColorApplication background behind panels.
subtle: ColorRecessed chrome: sidebars, title bars, table headers.
panel: ColorCards, panes, and other content surfaces.
overlay: ColorFloating chrome that lifts off the panel, such as tooltips. Menus, popovers, and dialogs paint the panel tier with a border and shadow.
control: ColorRecessed neutral fill for tracks, tab strips, chips, and nested areas.
control_hover: Color§control_active: ColorFace of neutral buttons, select triggers, and raised segment thumbs.
field: ColorText input well.
border_subtle: ColorHairlines inside components.
border: ColorDefault separators and container outlines.
border_strong: ColorOutlines of interactive controls such as buttons and fields.
border_control: ColorOutline of unselected checkboxes, radios, and switch tracks; at least 3:1 against the panel so the control boundary stays perceivable.
text: Color§text_secondary: Color§text_tertiary: ColorPlaceholder and tertiary metadata; at least 4.5:1 on the panel.
text_disabled: ColorImplementations§
Source§impl NeutralRamp
impl NeutralRamp
Sourcepub fn light() -> NeutralRamp
pub fn light() -> NeutralRamp
Pure achromatic light ramp shared by the SUI and neutral light presets.
Sourcepub fn dark() -> NeutralRamp
pub fn dark() -> NeutralRamp
SUI dark ramp: a constant, faint blue tint (OKLCH hue 258, chroma ~0.016) over evenly spaced lightness steps.
Sourcepub fn neutral_dark() -> NeutralRamp
pub fn neutral_dark() -> NeutralRamp
Achromatic twin of Self::dark with identical lightness steps.
Sourcepub fn void() -> NeutralRamp
pub fn void() -> NeutralRamp
True-black OLED ramp: window, chrome, and panels stay black and are
separated by borders; only interactive fills lift off black, carrying
the same faint tint as Self::dark. Text is dimmed below pure white.
Trait Implementations§
Source§impl Clone for NeutralRamp
impl Clone for NeutralRamp
Source§fn clone(&self) -> NeutralRamp
fn clone(&self) -> NeutralRamp
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for NeutralRamp
Source§impl Debug for NeutralRamp
impl Debug for NeutralRamp
Source§impl PartialEq for NeutralRamp
impl PartialEq for NeutralRamp
impl StructuralPartialEq for NeutralRamp
Auto Trait Implementations§
impl Forget for NeutralRamp
impl Freeze for NeutralRamp
impl Move for NeutralRamp
impl RefUnwindSafe for NeutralRamp
impl Send for NeutralRamp
impl Sync for NeutralRamp
impl Unpin for NeutralRamp
impl UnsafeUnpin for NeutralRamp
impl UnwindSafe for NeutralRamp
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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)
&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)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.