Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 0.15 #256

Merged
merged 2 commits into from
Dec 28, 2024
Merged

Release 0.15 #256

merged 2 commits into from
Dec 28, 2024

Conversation

Adanos020
Copy link
Owner

0.15.0 - 28-12-2024

Changed

  • From (#237):
    • Each leaf can now be collapsed / closed individually. They are introduced as additional tab bar controls.
    • Undocked windows are now more compact. The original undocked window controls are now accessible as "secondary buttons" from the tab bar.
      • By default, the secondary buttons are activated from primary buttons either by holding the Shift key while clicking on them, or from a context menu by right-clicking them.
    • A number of tooltip hints are on by default as guides to the new behavior, but they can be disabled.
    • There has been an overhaul to the internal codebase to support the new features.

Added

  • From (#237):
    • DockArea::show_leaf_close_all_buttons – shows a close all button which closes all open tabs in a leaf.
    • DockArea::show_leaf_collapse_buttons – shows a collapsing button which collapses a leaf (no longer collapsing a window).
    • DockArea::show_secondary_button_hint – sets whether tooltip hints are shown for secondary buttons on tab bars.
    • DockArea::show_leaf_collapse_buttons – shows a collapsing button which collapses a leaf (no longer collapsing a window).
    • DockArea::secondary_button_on_modifier – sets whether the secondary buttons on tab bars are activated by the modifier key.
    • DockArea::secondary_button_context_menu – sets whether the secondary buttons on tab bars are activated from a context value by right-clicking primary buttons.
    • Added the following translations:
      • LeafTranslations::close_all_button
      • LeafTranslations::close_all_button_menu_hint
      • LeafTranslations::close_all_button_modifier_hint
      • LeafTranslations::close_all_button_modifier_menu_hint
      • LeafTranslations::close_all_button_disabled_tooltip
      • LeafTranslations::minimize_button
      • LeafTranslations::minimize_button_menu_hint
      • LeafTranslations::minimize_button_modifier_hint
      • LeafTranslations::minimize_button_modifier_menu_hint
    • Node::is_collapsed – returns whether the Node is collapsed.
    • Node::collapsed_leaf_count – returns the number of collapsed layers of leaf subnodes.
    • Node::set_collapsed – set the collapsing state of the Node.
    • Node::set_collapsed_leaf_count – sets the number of collapsed layers of leaf subnodes.
    • WindowState::minimized field – records whether a window is minimized.
    • WindowState::expanded_height field – records the height of the window before it was fully collapsed.
    • Added style configuration for the two buttons:
      • ButtonsStyle::{close_all_tabs, collapse_tabs, minimize_window}_color
      • ButtonsStyle::{close_all_tabs, collapse_tabs, minimize_window}_active_color
      • ButtonsStyle::{close_all_tabs, collapse_tabs, minimize_window}_bg_fill
      • ButtonsStyle::{close_all_tabs, collapse_tabs, minimize_window}_border_color
      • ButtonsStyle::close_all_tabs_disabled_color
      • Style::TAB_CLOSE_ALL_BUTTON_SIZE
      • Style::TAB_CLOSE_ALL_SIZE
      • Style::TAB_COLLAPSE_BUTTON_SIZE
      • Style::TAB_COLLAPSE_ARROW_SIZE
      • Style::TAB_EXPAND_BUTTON_SIZE
      • Style::TAB_EXPAND_ARROW_SIZE

Breaking changes

  • From (#237):
    • Renamed Translations::WindowTranslations to Translations::LeafTranslations.
    • Renamed WindowTranslations::close_button_tooltip to LeafTranslations::close_button_disabled_tooltip.
    • Translations::LeafTranslations now requires more fields to be constructed (see Added section).
  • Upgraded to egui 0.30.

micfong-z and others added 2 commits October 19, 2024 18:54
… on each tab bar (#237)

* Correct comment typos

* Add two buttons on tab bars

- Close all tabs: "×"
- Collapse all tabs: "▼"

* Add some utility for recursive node collapse checking

* Preliminary implementation of collapsing windows

* Handle tab collapsing layout

* Resize windows when subnodes collapsed

* Implements leaf close all button

* Update changelog

* Allow dragging to a collapsed leaf

* Fix collapsed state checking after dnd splits

* Update examples

* Update changelog

* Fix up changelog after rebase

* Fix failing test and rename `Translations::window` to `Translations::leaf`.

* Remove `Clone` bound on `map_tabs` and `filter_map_tabs` (#241)

* remove Clone bound on map_tabs and filter_map_tabs

* remove Clone bound from all functions with Clone + FnMut bounds

* Update changelog

* Add missing period in changelog

---------

Co-authored-by: Adanos020 <adanos020@gmail.com>

* Update crate version and add MSRV change to changelog

* Fix heading type in changelog

* Fix tab bar scroll bar width on window surfaces

* Add close window button in context menu

* Add minimize window button

* Update CHANGELOG.md

* Fix cargo test

* Add tooltips to right-clickable tab bar buttons

* Add minimization activation with modifiers

* Add close window with modifiers

* Correct tooltip display conditions

* Upgrade to egui 0.29

* Add secondary button feature toggle

* Cleanup code

* Update examples

* Fix cursor icon logic

* Update examples

* Update changelog

* Make Japanese translations in the example more consistent with each other

---------

Co-authored-by: Adanos020 <adanos020@gmail.com>
Co-authored-by: Ved_s <vedomir.samarin.03@gmail.com>
* Egui 0.30

* Upgrade to egui 0.30.

* Update changelog and readme

* Update the crate version in Cargo.toml

* Fix winit compile error

* Make Clippy happy

---------

Co-authored-by: Adanos020 <adanos020@gmail.com>
@Adanos020 Adanos020 merged commit dc841ce into main Dec 28, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants