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: Color32The outline around the active tab name.
hline_color: Color32The line separating the tab name area from the tab content area
hline_below_active_tab_name: boolIf 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: boolImplementations§
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_colorSelf::tab_bar_background_colorSelf::tab_outline_colorSelf::hline_colorSelf::tab_background_colorSelf::tab_text_color_unfocusedSelf::tab_text_color_focusedSelf::tab_text_color_active_unfocusedSelf::tab_text_color_active_focusedSelf::separator_color_idleSelf::separator_color_hoveredSelf::separator_color_draggedSelf::border_colorSelf::close_tab_background_colorSelf::close_tab_colorSelf::close_tab_active_colorSelf::add_tab_background_colorSelf::add_tab_colorSelf::add_tab_active_color