- Added opt-in
serde
feature to enable serialization ofTree
. - You can now change the tab text color with
Style::tab_text_color_unfocused
andStyle::tab_text_color_focused
.
Tree::push_to_first_leaf
no longer panics when used on an emptyTree
.- The tab text color will now follow the egui text color.
- It is now possible to close tabs with a close button that can be shown/hidden through
Style
. - When dragging tabs onto the tab bar if the tab will be inserted a highlighted region will show where the tab will end up if dropped.
- The dock will keep track of the currently focused leaf.
- Using
Tree::push_to_focused_leaf
will push the given tab to the currently active leaf. StyleBuilder
for theStyle
.- New fields in
Style:
separator_color
,border_color
, andborder_width
(last two for the cases when usedMargin
). TabBuilder
for theBuiltTab
.- Support for all implementations of
Into<WidgetText>
in tab titles. - Style editor in the
hello
example. - Added
Tree::find_tab
,TabViewer
,DynamicTabViewer
,DynamicTree
. - Added a
text_editor
example.
- If a tab is dropped onto the tab bar it will be inserted into the index that it is dropped onto.
- Now when you drag a tab it has an outline along the entire length of the edges of it.
- Bumped MSRV to
1.62
. Tree
is now generic over how you want to represent a tab.
- Ui code of the dock has been moved into
DockArea
and is displayed withDockArea::show
orDockArea::show_inside
. - Renamed
Style::border_size
toStyle::border_width
. - Renamed
Style::separator_size
toStyle::separator_width
. - Removed
Style::tab_text_color
as you can now set the tab text color of a tab by passingRichText
for its title. - Removed the requirement of creating your own Context type.
- Renamed
Tree::set_focused
toTree::set_focused_node
. - Renamed
Node::None
toNode::Empty
.
- Now selection color of the placing area for the tab isn't showing if the tab is targeted on its own node when the tab is the only member of this node.
- Dock vertical and horizontal separators are now displayed properly.
- Prevent Id clashes from multiple tabs being displayed at once.
- Tab content is now displayed inside a
egui::ScrollArea
, so it's now accessible in its entirety even if the tab is too small to fit all of it. - Fixed an issue where some tabs couldn't be resized.