pub struct ReplayColors {
pub play_color: Color32,
pub pause_color: Color32,
pub stop_color: Color32,
pub progress_bg: Color32,
pub progress_fill: Color32,
pub progress_cursor: Color32,
pub marker_color: Color32,
pub speed_color: Color32,
pub active_indicator: Color32,
pub disabled_color: Color32,
}Expand description
Colors for replay UI elements
Fields§
§play_color: Color32Play button color
pause_color: Color32Pause button color
stop_color: Color32Stop button color
progress_bg: Color32Progress bar background
progress_fill: Color32Progress bar filled portion
progress_cursor: Color32Progress bar cursor/handle
marker_color: Color32Marker default color
speed_color: Color32Speed indicator color
active_indicator: Color32Replay active indicator
disabled_color: Color32Disabled button color
Implementations§
Source§impl ReplayColors
impl ReplayColors
Sourcepub fn from_theme(theme: &Theme) -> Self
pub fn from_theme(theme: &Theme) -> Self
Colours from a theme’s UI palette.
The replay widgets paint with the active theme’s colours while the configured colours
equal ReplayColors::default; set any other colours with ReplayConfig::with_colors.
Trait Implementations§
Source§impl Clone for ReplayColors
impl Clone for ReplayColors
Source§fn clone(&self) -> ReplayColors
fn clone(&self) -> ReplayColors
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 ReplayColors
impl Debug for ReplayColors
Source§impl Default for ReplayColors
impl Default for ReplayColors
Source§impl PartialEq for ReplayColors
impl PartialEq for ReplayColors
impl StructuralPartialEq for ReplayColors
Auto Trait Implementations§
impl Freeze for ReplayColors
impl RefUnwindSafe for ReplayColors
impl Send for ReplayColors
impl Sync for ReplayColors
impl Unpin for ReplayColors
impl UnsafeUnpin for ReplayColors
impl UnwindSafe for ReplayColors
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