61 Commits

Author SHA1 Message Date
Adam Gąsior 780892ad4f Fix clear_background (#110)
- Set `CentralPanel`'s fill colour to transparent
2023-03-17 13:21:12 +00:00
Adam Gąsior 38ae157972 Release 0.4.1 (#109)
* Update changelog

* Bump crate version to 0.4.1

* Update crate documentation
2023-03-14 13:22:08 +00:00
Luc (Echow) Varoqui 7a648674f8 Add #![warn(missing_docs)] flag to lib and small doc tweaks (#106)
* Add #![warn(missing_docs)]

* docs: small improvements
2023-02-19 13:22:30 +00:00
Luc (Echow) Varoqui d9bf906b6d fix splitter drag behavior (#103) 2023-02-10 20:16:55 +00:00
Luc (Echow) Varoqui 528b892459 Use CentralPanel in DockArea show (#98) 2023-02-10 19:17:15 +00:00
Luc (Echow) Varoqui 9e07a4b7a9 Use available_rect_before_wrap() in DockArea::show_inside (#102) 2023-02-10 15:47:59 +00:00
Emil Ernerfeldt 66d9dd5773 Update to egui 0.21.0 (#93)
* WIP: update to latest egui

* Update egui git hash

* Update examples

* Example style editor: make color pickers into popups

* Nicer style editor

* Simplify the tab painting, and make it look better

* simplify code

* Add hline_color

* Add ability to control text color of active tabs

* Document Node::Lead

* Derive clone

* Code cleanup

* Bug fix: show grab cursor preview when hovering a tab

* Add TabViewer::on_tab_button to let users listen for clicks etc

* use same resize colors as egui

* Update to egui 0.21.0

* Don't force default_fonts onto users of egui_dock

* Update changelog
2023-02-09 10:27:41 +00:00
Emil Ernerfeldt 37ebb29442 More customaizable tabs (#94)
* Example style editor: make color pickers into popups

* Simplify the tab painting, and make it look better

* simplify code

* Add hline_color

* Add ability to control text color of active tabs

* By default, connect the tab name and the tab contents

* Fix doclink

* Code cleanup

* Bug fix: show grab cursor preview when hovering a tab

* Make response mut
2023-02-04 20:06:47 +00:00
Luc (Echow) Varoqui 9310dd24c9 Improve GitHub Actions workflows (#97) 2023-02-04 20:04:58 +00:00
Luc (Echow) Varoqui 17ace82c6f fix: allow tabs to be clicked when tabs-are-draggable is false (#96) 2023-02-04 13:40:16 +00:00
Adam Gąsior 857195d43a Delete dynamic_tab (#87)
* Delete dynamic_tab

* Update CHANGELOG.md
2022-12-21 17:15:32 +00:00
George Burton 645bb45999 Impl std::fmt::Debug for all exported types (#84)
* Impl `std::fmt::Debug` for all exported types

* Add pull request number to CHANGELOG

* cargo fmt
2022-12-21 12:34:38 +00:00
Jakob Hellermann 8a42e5fb85 manual default impl for Tree (#83) 2022-12-19 17:47:16 +00:00
An Tran 02f549c476 Style option to change tab bar height (#62)
* Added option to change tab bar height

* Make add button consistent size

* Add `tab_bar_height` and `show_add_buttons` to Style Editor

* Resize add button click area

* Fix changelog

Co-authored-by: Adanos020 <adanos020@gmail.com>
2022-12-11 19:35:36 +00:00
Emil Ernerfeldt 6cf39a633c Update to egui 0.20 (#77) 2022-12-09 17:23:47 +00:00
Andrew J Westlake 5073eb4bf5 Added ability to remove tab (using logic from render) (#70)
* Added ability to remove tab (using logic from render)

* Simplify `Tree::remove_Tab`

* Updated changelog, added view menu to 'hello' example to demonstrate tabs that can be toggled with remove_tab/push_to_focused_leaf

* Documented remove_tab function, fixed clippy issues

Co-authored-by: Andrew J Westlake <awestlake87@yahoo.com>
Co-authored-by: Adanos020 <adanos020@gmail.com>
2022-11-28 10:42:02 +00:00
George d5c994c5f1 Small changes: #[inline] and simplifying code. (#71)
Adding `#[inline]` and removing `#[inline(always)]` where it makes sense.
2022-11-25 11:18:07 +00:00
Emil Ernerfeldt 5f6a431841 Change separator color on hover and drag (#68)
* Change separator color on hover and drag

* Document what Style::from_egui does

* Update changelog

* Replace glob `use` statements with specific imports
2022-11-16 11:08:34 +00:00
Mikhail Sheldyakov 041e5f362c inner_margin in Style (#67) 2022-11-09 20:54:55 +00:00
Mikhail Sheldyakov f1a630d3da Don`t show "grab" cursor icon with Style.tabs_are_draggable = false (#66) 2022-11-09 14:45:33 +00:00
Past9 c8a2aceab7 Implement add popups (#63)
* Implement add popups

* Fix clippy errors
2022-11-08 12:49:43 +00:00
Adam Greig 32de0e0871 Fix combining 'expand tabs' and 'show add tab button' (#65) 2022-11-08 12:24:44 +00:00
An Tran 645c621ec0 Tab Add button (#43)
* Reset to upstream/main

* Fix alignment options

* Apply requested changes

* Add simple example

* Remove unnecessary import in example

* Formatting

Co-authored-by: Adanos020 <adanos020@gmail.com>
2022-11-02 21:35:53 +00:00
knoellle f88edb59f7 Make TabIndex publicly accessible (#60) 2022-10-31 09:43:17 +00:00
knoellle 10ade79285 Use pointing hand cursor for close button (#59) 2022-10-28 16:32:44 +01:00