pub struct Style {Show 36 fields
pub dock_area_padding: Option<Margin>,
pub default_inner_margin: Margin,
pub border_color: Color32,
pub border_width: f32,
pub selection_color: Color32,
pub separator_width: f32,
pub separator_extra: f32,
pub separator_color_idle: Color32,
pub separator_color_hovered: Color32,
pub separator_color_dragged: Color32,
pub tab_bar_background_color: Color32,
pub tab_bar_height: f32,
pub tab_outline_color: Color32,
pub hline_color: Color32,
pub hline_below_active_tab_name: bool,
pub tab_rounding: Rounding,
pub tab_background_color: Color32,
pub tab_text_color_unfocused: Color32,
pub tab_text_color_focused: Color32,
pub tab_text_color_active_unfocused: Color32,
pub tab_text_color_active_focused: Color32,
pub tabs_are_draggable: bool,
pub expand_tabs: bool,
pub close_tab_color: Color32,
pub close_tab_active_color: Color32,
pub close_tab_background_color: Color32,
pub show_close_buttons: bool,
pub add_tab_align: TabAddAlign,
pub add_tab_color: Color32,
pub add_tab_active_color: Color32,
pub add_tab_background_color: Color32,
pub show_add_buttons: bool,
pub show_add_popup: bool,
pub show_context_menu: bool,
pub tab_include_scrollarea: bool,
pub tab_hover_name: bool,
}
Expand description
Specifies the look and feel of egui_dock.
See StyleBuilder
for fields details.
Fields§
§dock_area_padding: Option<Margin>
§default_inner_margin: Margin
§border_color: Color32
§border_width: f32
§selection_color: Color32
§separator_width: f32
§separator_extra: f32
§separator_color_idle: Color32
§separator_color_hovered: Color32
§separator_color_dragged: Color32
§tab_bar_background_color: Color32
§tab_bar_height: f32
§tab_outline_color: Color32
The outline around the active tab name.
hline_color: Color32
The line separating the tab name area from the tab content area
hline_below_active_tab_name: bool
If true
, show the hline below the active tabs name.
If false
, show the active tab as merged with the tab ui area.
Default: false
.
tab_rounding: Rounding
§tab_background_color: Color32
§tab_text_color_unfocused: Color32
§tab_text_color_focused: Color32
§tab_text_color_active_unfocused: Color32
§tab_text_color_active_focused: Color32
§tabs_are_draggable: bool
§expand_tabs: bool
§close_tab_color: Color32
§close_tab_active_color: Color32
§close_tab_background_color: Color32
§add_tab_align: TabAddAlign
§add_tab_color: Color32
§add_tab_active_color: Color32
§add_tab_background_color: Color32
§show_add_popup: bool
§tab_include_scrollarea: bool
§tab_hover_name: bool
Implementations§
source§impl Style
impl Style
sourcepub fn from_egui(style: &Style) -> Self
pub fn from_egui(style: &Style) -> Self
Derives relevant fields from egui::Style
and sets the remaining fields to their default values.
Fields overwritten by egui::Style
are:
Self::selection_color
Self::tab_bar_background_color
Self::tab_outline_color
Self::hline_color
Self::tab_background_color
Self::tab_text_color_unfocused
Self::tab_text_color_focused
Self::tab_text_color_active_unfocused
Self::tab_text_color_active_focused
Self::separator_color_idle
Self::separator_color_hovered
Self::separator_color_dragged
Self::border_color
Self::close_tab_background_color
Self::close_tab_color
Self::close_tab_active_color
Self::add_tab_background_color
Self::add_tab_color
Self::add_tab_active_color