pub struct TabTheme {Show 15 fields
pub background_color: Option<Rgba>,
pub active_background: Option<Rgba>,
pub active_text_color: Option<Rgba>,
pub bar_background: Option<Rgba>,
pub min_width: Option<f32>,
pub min_height: Option<f32>,
pub item_gap: Option<f32>,
pub active_indicator_color: Option<Rgba>,
pub active_indicator_width: Option<f32>,
pub active_indicator_side: Option<TabIndicatorSide>,
pub active_outward_corner_radius: Option<f32>,
pub hover_text_color: Option<Rgba>,
pub hover_background: Option<Rgba>,
pub font: Option<FontSpec>,
pub border: Option<WidgetBorderSpec>,
}Expand description
Tab bar colors and sizing.
Fields§
§background_color: Option<Rgba>Inactive tab background.
active_background: Option<Rgba>Active (selected) tab background.
active_text_color: Option<Rgba>Active (selected) tab text color.
bar_background: Option<Rgba>Tab bar strip background.
min_width: Option<f32>Minimum tab width in logical pixels.
min_height: Option<f32>Minimum tab height in logical pixels.
item_gap: Option<f32>Space between adjacent tabs in logical pixels. None where the
platform states none: AppKit publishes no tab spacing
(docs/platform-facts.md §2.11).
active_indicator_color: Option<Rgba>Color of the line that marks the active tab: Breeze’s Highlight
strip, libadwaita’s accent, Material’s primary indicator. None
where the platform marks the active tab without one, by its fill and
border (docs/platform-facts.md §2.11); a connector draws the line only
where the theme states its color, width and side.
active_indicator_width: Option<f32>Thickness of the active tab’s indicator line in logical pixels: KDE 3, GNOME 4, Material 3 (docs/platform-facts.md §2.11).
active_indicator_side: Option<TabIndicatorSide>Which edge of the active tab its indicator line lies along, for tabs above their pages: KDE top, GNOME and Material bottom (docs/platform-facts.md §2.11).
active_outward_corner_radius: Option<f32>Radius of the outward curves at the selected tab’s two bottom corners,
which spread its fill into the bar’s bottom edge, as WinUI 3’s TabView
draws its selected tab (4, against 8 on its top corners). Where it is
stated, the selected tab’s outline (border) has no bottom edge and
runs on down the curves. None where the platform’s selected tab does
not curve out at its feet: all but Windows; macOS publishes no shape
(docs/platform-facts.md §2.11).
hover_text_color: Option<Rgba>Tab text color on hover.
hover_background: Option<Rgba>Tab background on hover.
font: Option<FontSpec>Tab font specification.
border: Option<WidgetBorderSpec>Tab border specification.
Implementations§
Source§impl TabTheme
impl TabTheme
Sourcepub const FIELD_NAMES: &[&str]
pub const FIELD_NAMES: &[&str]
All serialized field names for this widget theme, for TOML linting.