pub struct Theme {Show 17 fields
pub bg: Color,
pub text: Color,
pub dim: Color,
pub accent: Color,
pub on_accent: Color,
pub success: Color,
pub warning: Color,
pub error: Color,
pub info: Color,
pub progress_dim: Color,
pub task_track: Color,
pub panel: Color,
pub panel_border: Color,
pub select_bg: Color,
pub select_fg: Color,
pub active_bg: Color,
pub active_fg: Color,
}Fields§
§bg: Color§text: Color§dim: Color§accent: Color§on_accent: Color§success: Color§warning: Color§error: Color§info: Color§progress_dim: Color§task_track: Color§panel: Color§panel_border: Color§select_bg: Color§select_fg: Color§active_bg: Color§active_fg: ColorImplementations§
Source§impl Theme
impl Theme
pub fn from_tokens(tokens: ThemeTokens) -> Self
pub fn into_tokens(self) -> ThemeTokens
pub fn dark() -> Self
pub fn light() -> Self
pub fn polaris() -> Self
pub fn matrix() -> Self
pub fn scene_style(&self, mode: Color) -> SceneStyle
Trait Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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