feat(dock): add bg_color() trait method for per-panel tile backgrounds - #10
Open
0xIonRod wants to merge 4 commits into
Open
feat(dock): add bg_color() trait method for per-panel tile backgrounds#100xIonRod wants to merge 4 commits into
0xIonRod wants to merge 4 commits into
Conversation
Add WorkbenchPanel::bg_color() method allowing each panel to specify its own tile background color. Return None for transparent tiles (e.g., center spacer for 3D scene), or Some(Color32) for opaque panels. Changes: - dock.rs: add bg_color() trait method with default opaque background - dock/ui.rs: draw tile background from panel.bg_color() in pane_ui() - dock/ui.rs: make CentralPanel transparent with Frame::NONE to let 3D scene show through behind the dock layout Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
Add WorkbenchPanel::hide_tab() method. When true, the panel is inserted as a plain pane tile without a tab header — ideal for viewport-style panels like 3D scene viewports. Changes: - dock.rs: add hide_tab() trait method with default false - dock.rs: add make_tile() to separate hidden-tab from tabbed panels - dock.rs: update build_default_tree to use make_tile() for left/center/right slots, so hidden-tab panels render without tab bars Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
…ports Set all_panes_must_have_tabs: false so egui_tiles doesn't wrap every pane in a tab container. This allows hide_tab() panels (like 3D scene viewports) to render without any tab bar. Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
Add EguiContextSettings with capture_pointer_input: false to the PrimaryEguiContext so that transform-gizmo-bevy can receive pointer events in areas not covered by interactive egui widgets. Also increase center panel layout share from 4.0 to 10.0 for more 3D viewport space. Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Now I can draw UI on top of the 3D world.
Add WorkbenchPanel::bg_color() method allowing each panel to specify its own tile background color. Return None for transparent tiles (e.g., center spacer for 3D scene), or Some(Color32) for opaque panels.
Changes:
PR Type