pub struct TimeframeToolbarConfig {
pub background_color: Color32,
pub border_color: Color32,
pub text_color: Color32,
pub hover_text_color: Color32,
pub active_text_color: Color32,
pub separator_color: Color32,
pub hover_bg: Color32,
pub active_bg: Color32,
pub font_size: f32,
pub panel_height: f32,
pub btn_padding_h: f32,
pub btn_padding_v: f32,
}Expand description
Configuration for the bottom panel appearance
Fields§
§background_color: Color32Background color
border_color: Color32Border color (top border)
text_color: Color32Text color (inactive)
hover_text_color: Color32Text color (hover)
active_text_color: Color32Text color (active/selected)
separator_color: Color32Separator color
hover_bg: Color32Button hover background
active_bg: Color32Button active background
font_size: f32Font size
panel_height: f32Panel height
btn_padding_h: f32Button padding horizontal
btn_padding_v: f32Button padding vertical
Implementations§
Source§impl TimeframeToolbarConfig
impl TimeframeToolbarConfig
Sourcepub fn from_theme(theme: &Theme) -> Self
pub fn from_theme(theme: &Theme) -> Self
Create config from theme
Trait Implementations§
Source§impl Clone for TimeframeToolbarConfig
impl Clone for TimeframeToolbarConfig
Source§fn clone(&self) -> TimeframeToolbarConfig
fn clone(&self) -> TimeframeToolbarConfig
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 TimeframeToolbarConfig
impl Debug for TimeframeToolbarConfig
Auto Trait Implementations§
impl Freeze for TimeframeToolbarConfig
impl RefUnwindSafe for TimeframeToolbarConfig
impl Send for TimeframeToolbarConfig
impl Sync for TimeframeToolbarConfig
impl Unpin for TimeframeToolbarConfig
impl UnsafeUnpin for TimeframeToolbarConfig
impl UnwindSafe for TimeframeToolbarConfig
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