pub struct FileBreadcrumbStyle {
pub text: TextStyle,
pub active_text: TextStyle,
pub separator: TextStyle,
pub gap: f32,
}Expand description
Text and spacing styles for a FileBreadcrumb.
All sizes and gap are logical pixels. gap is forwarded without clamping,
including negative or non-finite values.
§Examples
use ailloli_ui_widgets::files::FileBreadcrumbStyle;
let style = FileBreadcrumbStyle::default();
assert_eq!(style.gap, 6.0);
assert_eq!(style.text.px_size, 12);Fields§
§text: TextStyleInactive segment text style.
active_text: TextStyleFinal active segment text style.
separator: TextStyle> separator text style.
gap: f32Space between every segment/separator child in logical pixels.
Trait Implementations§
Source§impl Clone for FileBreadcrumbStyle
impl Clone for FileBreadcrumbStyle
Source§fn clone(&self) -> FileBreadcrumbStyle
fn clone(&self) -> FileBreadcrumbStyle
Returns a copy of the value. Read more
1.0.0 · 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 FileBreadcrumbStyle
impl Debug for FileBreadcrumbStyle
Source§impl Default for FileBreadcrumbStyle
Uses 12-pixel UI text, default-theme colors, and a six-pixel gap.
impl Default for FileBreadcrumbStyle
Uses 12-pixel UI text, default-theme colors, and a six-pixel gap.
Source§impl PartialEq for FileBreadcrumbStyle
impl PartialEq for FileBreadcrumbStyle
impl StructuralPartialEq for FileBreadcrumbStyle
Auto Trait Implementations§
impl Freeze for FileBreadcrumbStyle
impl RefUnwindSafe for FileBreadcrumbStyle
impl Send for FileBreadcrumbStyle
impl Sync for FileBreadcrumbStyle
impl Unpin for FileBreadcrumbStyle
impl UnwindSafe for FileBreadcrumbStyle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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>
§impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
§fn into_click_action(self) -> ClickAction<A>
fn into_click_action(self) -> ClickAction<A>
Implements the into_click_action helper used by this module.