pub struct TabTheme {
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 hover_text_color: Option<Rgba>,
pub hover_background: Option<Rgba>,
pub font: Option<FontSpec>,
pub border: Option<BorderSpec>,
}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.
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<BorderSpec>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.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TabTheme
impl<'de> Deserialize<'de> for TabTheme
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for TabTheme
Auto Trait Implementations§
impl Freeze for TabTheme
impl RefUnwindSafe for TabTheme
impl Send for TabTheme
impl Sync for TabTheme
impl Unpin for TabTheme
impl UnsafeUnpin for TabTheme
impl UnwindSafe for TabTheme
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