pub struct TabsStyle {
pub bar_bg: Color,
pub tab_bg: Color,
pub tab_bg_selected: Color,
pub tab_border: Color,
pub tab_border_selected: Color,
pub text_fg: Color,
pub text_muted: Color,
pub unread_dot: Color,
}Expand description
Colors used by draw_tabs_bar and draw_tabs_bar_with_options.
Geometry and typography are fixed by the drawing helper.
§Examples
use ailloli_ui_widgets::controls::tabs::TabsStyle;
let style = TabsStyle::default();
assert_ne!(style.tab_bg, style.tab_bg_selected);Fields§
§bar_bg: ColorWhole-bar background.
tab_bg: ColorUnselected tab background.
tab_bg_selected: ColorSelected tab background.
tab_border: ColorUnselected one-pixel tab border color.
tab_border_selected: ColorSelected one-pixel tab border color.
text_fg: ColorTab title and trailing action icon color.
text_muted: ColorDefault leading-icon tint and close-affordance color.
unread_dot: ColorShared unread-or-processing dot color.
Trait Implementations§
impl Copy for TabsStyle
Auto Trait Implementations§
impl Freeze for TabsStyle
impl RefUnwindSafe for TabsStyle
impl Send for TabsStyle
impl Sync for TabsStyle
impl Unpin for TabsStyle
impl UnwindSafe for TabsStyle
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.