pub enum Theme {
Show 14 variants
SlateOcean,
NebulaViolet,
TerminalGreen,
EmberForge,
SolarAmber,
ArticCyan,
CrimsonSignal,
MidnightIndigo,
CopperRose,
LimeCircuit,
CoralReef,
GraphiteMono,
PlumStatic,
SandstoneTrail,
}Expand description
A built-in, named color palette, in both a light and a dark variant.
Resolve it to actual colors with Theme::colors. Install one on a
Map as its active MapTheme with
Map::set_theme – Theme implements
MapTheme directly, so any variant can be passed straight in.
Variants§
SlateOcean
Muted blues over slate grays.
NebulaViolet
Violet and teal on a soft neutral backdrop. The default theme.
TerminalGreen
Greens and blues reminiscent of a terminal color scheme.
EmberForge
Warm oranges and pinks over charcoal/cream.
SolarAmber
Amber and teal on a warm neutral backdrop.
ArticCyan
Cyan and gold over deep blue-gray.
CrimsonSignal
Signal red and steel blue over near-black.
MidnightIndigo
Indigo and teal on deep midnight blue.
CopperRose
Copper and teal over warm taupe.
LimeCircuit
Lime green and violet over dark olive.
CoralReef
Coral and ocean blue over sea-glass teal.
GraphiteMono
Grayscale with a cool blue accent.
PlumStatic
Plum and jade over muted mauve.
SandstoneTrail
Sand and clay over warm khaki.
Implementations§
Source§impl Theme
impl Theme
Sourcepub const fn colors(self, mode: ColorMode) -> ThemeColors
pub const fn colors(self, mode: ColorMode) -> ThemeColors
Resolves this theme to its actual ThemeColors for the given
ColorMode.
Trait Implementations§
impl Copy for Theme
impl Eq for Theme
impl StructuralPartialEq for Theme
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
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<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> ⓘ
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> ⓘ
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