pub struct TabTheme {
pub background: Option<Rgba>,
pub foreground: Option<Rgba>,
pub active_background: Option<Rgba>,
pub active_foreground: Option<Rgba>,
pub bar_background: Option<Rgba>,
pub min_width: Option<f32>,
pub min_height: Option<f32>,
pub padding_horizontal: Option<f32>,
pub padding_vertical: Option<f32>,
}Expand description
Tab bar colors and sizing.
Fields§
§background: Option<Rgba>Inactive tab background.
foreground: Option<Rgba>Inactive tab text color.
active_background: Option<Rgba>Active (selected) tab background.
active_foreground: 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.
padding_horizontal: Option<f32>Horizontal padding inside each tab.
padding_vertical: Option<f32>Vertical padding inside each tab.
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