pub struct IndicatorDialogConfig {
pub width: f32,
pub height: f32,
pub text_color: Color32,
pub muted_color: Color32,
pub hover_color: Color32,
pub favorite_color: Color32,
}Expand description
Configuration for the indicator dialog
Each colour left Color32::TRANSPARENT, as in the default, follows the theme passed to
IndicatorDialog::show.
Fields§
§width: f32Outer width of the dialog
height: f32Minimum outer height of the dialog, clamped to the window
text_color: Color32Indicator names
muted_color: Color32Indicator descriptions, badges and notes
hover_color: Color32Fill of the row under the pointer
favorite_color: Color32Star of a favourite indicator
Implementations§
Source§impl IndicatorDialogConfig
impl IndicatorDialogConfig
Sourcepub fn from_theme(theme: &Theme) -> Self
pub fn from_theme(theme: &Theme) -> Self
Create config from theme
Sets every colour from theme, so they no longer follow a theme change; start from
default() to follow the theme.
Trait Implementations§
Source§impl Clone for IndicatorDialogConfig
impl Clone for IndicatorDialogConfig
Source§fn clone(&self) -> IndicatorDialogConfig
fn clone(&self) -> IndicatorDialogConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IndicatorDialogConfig
impl Debug for IndicatorDialogConfig
Auto Trait Implementations§
impl Freeze for IndicatorDialogConfig
impl RefUnwindSafe for IndicatorDialogConfig
impl Send for IndicatorDialogConfig
impl Sync for IndicatorDialogConfig
impl Unpin for IndicatorDialogConfig
impl UnsafeUnpin for IndicatorDialogConfig
impl UnwindSafe for IndicatorDialogConfig
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
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> 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