pub struct RightPanelTabsConfig {
pub tab_bar_width: f32,
pub tab_button_size: f32,
pub bg_color: Color32,
pub tab_bar_bg: Color32,
pub active_tab_bg: Color32,
pub hover_bg: Color32,
pub pressed_bg: Color32,
pub icon_color: Color32,
pub active_icon_color: Color32,
pub border_color: Color32,
}Expand description
Configuration for the right panel tabs
Fields§
§tab_bar_width: f32Tab bar width, in egui logical points.
Tab button size, in egui logical points.
bg_color: Color32Background color.
tab_bar_bg: Color32Tab bar background.
active_tab_bg: Color32Active tab background.
hover_bg: Color32Hover background.
pressed_bg: Color32Pressed background.
icon_color: Color32Icon color.
active_icon_color: Color32Active icon color.
border_color: Color32Border color.
Implementations§
Source§impl RightPanelTabsConfig
impl RightPanelTabsConfig
Sourcepub fn from_theme(theme: &Theme) -> Self
pub fn from_theme(theme: &Theme) -> Self
Create config from theme
Trait Implementations§
Source§impl Clone for RightPanelTabsConfig
impl Clone for RightPanelTabsConfig
Source§fn clone(&self) -> RightPanelTabsConfig
fn clone(&self) -> RightPanelTabsConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RightPanelTabsConfig
impl Debug for RightPanelTabsConfig
Auto Trait Implementations§
impl Freeze for RightPanelTabsConfig
impl RefUnwindSafe for RightPanelTabsConfig
impl Send for RightPanelTabsConfig
impl Sync for RightPanelTabsConfig
impl Unpin for RightPanelTabsConfig
impl UnsafeUnpin for RightPanelTabsConfig
impl UnwindSafe for RightPanelTabsConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more