Skip to content

Latest commit

 

History

History
56 lines (41 loc) · 2.5 KB

CHANGELOG.md

File metadata and controls

56 lines (41 loc) · 2.5 KB

egui_dock changelog

Unreleased

0.2.1 - 2022-09-09

Added

  • Added opt-in serde feature to enable serialization of Tree.
  • You can now change the tab text color with Style::tab_text_color_unfocused and Style::tab_text_color_focused.

Fixed

  • Tree::push_to_first_leaf no longer panics when used on an empty Tree.
  • The tab text color will now follow the egui text color.

0.2.0 - 2022-09-04

Added

  • 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 the Style.
  • New fields in Style: separator_color, border_color, and border_width (last two for the cases when used Margin).
  • TabBuilder for the BuiltTab.
  • 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.

Changed

  • 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.

Breaking changes

  • Ui code of the dock has been moved into DockArea and is displayed with DockArea::show or DockArea::show_inside.
  • Renamed Style::border_size to Style::border_width.
  • Renamed Style::separator_size to Style::separator_width.
  • Removed Style::tab_text_color as you can now set the tab text color of a tab by passing RichText for its title.
  • Removed the requirement of creating your own Context type.
  • Renamed Tree::set_focused to Tree::set_focused_node.
  • Renamed Node::None to Node::Empty.

Fixed

  • 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.