Struct oxytail_base::themes::DefaultThemeProps
source · pub struct DefaultThemeProps {
pub get_variant_colors: fn(_: OxyVariant) -> Color,
pub get_hover_variant_colors: fn(_: OxyVariant) -> Color,
pub get_active_variant_colors: fn(_: OxyVariant) -> Color,
pub light_text_color: Color,
pub dark_text_color: Color,
pub __default_accent: Color,
}Fields§
§get_variant_colors: fn(_: OxyVariant) -> ColorLeading colors for variants.
get_hover_variant_colors: fn(_: OxyVariant) -> ColorHover colors for variants.
get_active_variant_colors: fn(_: OxyVariant) -> ColorActive colors for variants.
light_text_color: ColorText color to be used in dark contexts(i.e. light text color on dark background)
dark_text_color: ColorText color to be used in light contexts(i.e. dark text color on light background)
__default_accent: ColorDefault variant is a little bit “special”. For any other variant usually the background is the same for every widget(ex. button’s color is the same as checkbox’s background color).
But for OxyVariant::Default, checkbox’s background for example, does not share the same background color as button. Same thing for input outline and bunch of other things.
This prop controls the Color of those.
It’s marked with double floor __ to indicate that this controls an edge-case behavior.
Auto Trait Implementations§
impl RefUnwindSafe for DefaultThemeProps
impl Send for DefaultThemeProps
impl Sync for DefaultThemeProps
impl Unpin for DefaultThemeProps
impl UnwindSafe for DefaultThemeProps
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<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
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.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.