pub struct StatusColors { /* private fields */ }Expand description
状态颜色表(错误/警告/信息/成功/提示)。
Implementations§
Source§impl StatusColors
impl StatusColors
Sourcepub fn error_background(&self, cx: &App) -> Hsla
pub fn error_background(&self, cx: &App) -> Hsla
返回错误背景色,未设置时由错误主色混合 20% 透明度生成。
Sourcepub fn error_border(&self, cx: &App) -> Hsla
pub fn error_border(&self, cx: &App) -> Hsla
返回错误边框色,未设置时回退到错误主色。
Sourcepub fn warning_background(&self, cx: &App) -> Hsla
pub fn warning_background(&self, cx: &App) -> Hsla
返回警告背景色,未设置时由警告主色混合 20% 透明度生成。
Sourcepub fn warning_border(&self, cx: &App) -> Hsla
pub fn warning_border(&self, cx: &App) -> Hsla
返回警告边框色,未设置时回退到警告主色。
Sourcepub fn info_background(&self, cx: &App) -> Hsla
pub fn info_background(&self, cx: &App) -> Hsla
返回信息背景色,未设置时由信息主色混合 20% 透明度生成。
Sourcepub fn info_border(&self, cx: &App) -> Hsla
pub fn info_border(&self, cx: &App) -> Hsla
返回信息边框色,未设置时回退到信息主色。
Sourcepub fn success_background(&self, cx: &App) -> Hsla
pub fn success_background(&self, cx: &App) -> Hsla
返回成功背景色,未设置时由成功主色混合 20% 透明度生成。
Sourcepub fn success_border(&self, cx: &App) -> Hsla
pub fn success_border(&self, cx: &App) -> Hsla
返回成功边框色,未设置时回退到成功主色。
Sourcepub fn hint_background(&self, cx: &App) -> Hsla
pub fn hint_background(&self, cx: &App) -> Hsla
返回提示背景色,未设置时由提示主色混合 20% 透明度生成。
Sourcepub fn hint_border(&self, cx: &App) -> Hsla
pub fn hint_border(&self, cx: &App) -> Hsla
返回提示边框色,未设置时回退到提示主色。
Trait Implementations§
Source§impl Clone for StatusColors
impl Clone for StatusColors
Source§impl Debug for StatusColors
impl Debug for StatusColors
Source§impl Default for StatusColors
impl Default for StatusColors
Source§impl<'de> Deserialize<'de> for StatusColors
impl<'de> Deserialize<'de> for StatusColors
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 StatusColors
Source§impl Hash for StatusColors
impl Hash for StatusColors
Source§impl JsonSchema for StatusColors
impl JsonSchema for StatusColors
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 moreSource§impl PartialEq for StatusColors
impl PartialEq for StatusColors
Source§impl Serialize for StatusColors
impl Serialize for StatusColors
impl StructuralPartialEq for StatusColors
Auto Trait Implementations§
impl Forget for StatusColors
impl Freeze for StatusColors
impl Move for StatusColors
impl RefUnwindSafe for StatusColors
impl Send for StatusColors
impl Sync for StatusColors
impl Unpin for StatusColors
impl UnsafeUnpin for StatusColors
impl UnwindSafe for StatusColors
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
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