pub struct TimelineTokens {Show 27 fields
pub background: Color32,
pub ruler_fill: Color32,
pub ruler_border: Color32,
pub ruler_tick: Color32,
pub ruler_text: Color32,
pub grid: Color32,
pub range_fill: Color32,
pub range_edge: Color32,
pub range_edge_idle: Color32,
pub playhead: Color32,
pub marker: Color32,
pub marker_text: Color32,
pub marker_selected: Color32,
pub track_border: Color32,
pub track_text: Color32,
pub clip_fill: Color32,
pub clip_border: Color32,
pub clip_text: Color32,
pub clip_selected: Color32,
pub focus: Color32,
pub badge_fill: Color32,
pub badge_text: Color32,
pub ruler_height: f32,
pub lane_height: f32,
pub track_height: f32,
pub font_size: f32,
pub radius: f32,
}Expand description
A timeline’s colours and sizes, from the theme installed.
Fields§
§background: Color32Behind the lanes (timeline.background, else surface.sunken).
ruler_fill: Color32Behind the ruler (timeline.ruler.fill, else surface.raised).
ruler_border: Color32The line under the ruler (timeline.ruler.border, else border.default).
ruler_tick: Color32Its ticks (timeline.ruler.tick, else text.muted).
ruler_text: Color32Its labels (timeline.ruler.text, else text.muted).
grid: Color32The lines down the lanes at the labelled ticks (timeline.grid, else
border.default).
range_fill: Color32The selected range’s fill (timeline.range.fill, else accent.subtle).
range_edge: Color32Its band on the ruler and its edges while it loops
(timeline.range.edge, else accent.default).
range_edge_idle: Color32The same while it does not (timeline.range.idle, else text.muted).
playhead: Color32The playhead (timeline.playhead, else accent.default).
marker: Color32A marker without a colour of its own (timeline.marker, else
info, apart from the playhead’s accent).
marker_text: Color32A marker’s label (timeline.marker.text, else text.default).
marker_selected: Color32Around the marker the keys act on (timeline.marker.selected, else
focus.ring).
track_border: Color32The line between two tracks (timeline.track.border, else
border.default).
track_text: Color32A track’s name (timeline.track.text, else text.muted).
clip_fill: Color32A clip without a colour of its own (timeline.clip.fill, else
surface.raised).
clip_border: Color32A clip’s outline (timeline.clip.border, else border.strong).
clip_text: Color32A clip’s label (timeline.clip.text, else text.default).
clip_selected: Color32A selected clip’s outline and a trimming handle
(timeline.clip.selected, else accent.default).
focus: Color32The outline while the timeline has the keyboard focus (focus.ring).
badge_fill: Color32The speed badge’s fill and text (surface.raised, text.strong).
badge_text: Color32§ruler_height: f32The ruler’s height (size.control.height).
lane_height: f32The markers’ lane (size.control.height, four fifths of it).
track_height: f32A track’s height unless it or the timeline says
(size.control.height, twice).
font_size: f32The labels’ size (font.scale.xs).
radius: f32Corners (radius.widget).
Implementations§
Source§impl TimelineTokens
impl TimelineTokens
Sourcepub fn of(ctx: &Context) -> TimelineTokens
pub fn of(ctx: &Context) -> TimelineTokens
The tokens of the theme installed in ctx.
Trait Implementations§
Source§impl Clone for TimelineTokens
impl Clone for TimelineTokens
Source§fn clone(&self) -> TimelineTokens
fn clone(&self) -> TimelineTokens
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TimelineTokens
impl Debug for TimelineTokens
Source§impl PartialEq for TimelineTokens
impl PartialEq for TimelineTokens
impl StructuralPartialEq for TimelineTokens
Auto Trait Implementations§
impl Freeze for TimelineTokens
impl RefUnwindSafe for TimelineTokens
impl Send for TimelineTokens
impl Sync for TimelineTokens
impl Unpin for TimelineTokens
impl UnsafeUnpin for TimelineTokens
impl UnwindSafe for TimelineTokens
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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>
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>
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)
&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)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
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