Skip to content

Toolbar: keep Ribbon Tabs Only overlay open while using a split-button dropdown - #25619

Open
ancientastronauttheorist wants to merge 2 commits into
tangency-labs:mainfrom
ancientastronauttheorist:fix-25585
Open

ancientastronauttheorist wants to merge 2 commits into
tangency-labs:mainfrom
ancientastronauttheorist:fix-25585

Conversation

@ancientastronauttheorist

@ancientastronauttheorist ancientastronauttheorist commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #25585

Changes a default: no

Summary

  • Updated open_ribbon in crates/ui-egui/src/toolbar.rs so busy also includes ui_kit::Menu::any_open(&ctx), ctx.any_popup_open(), and app.plugin_menu.open (matching the pop-out ribbon check in view_windows.rs).
  • Moving the pointer below the expanded Ribbon Tabs Only toolbar into a split-button variant dropdown (such as Sketch's Rectangle dropdown), an overflow menu, or a ribbon plugin menu now keeps both the ribbon overlay and the dropdown open so options below the ribbon outline can be chosen.
  • Choosing a variant starts the tool and closes both the dropdown and the ribbon overlay; clicking outside or switching tabs and leaving still closes the overlay cleanly.
  • Added regression test ribbon_tabs_only_keeps_split_button_dropdown_open_below_ribbon in crates/ui-egui/src/toolbar.rs covering both compact and floating layouts.

Verification

  • cargo fmt --all -- --check
  • cargo test --profile ci -p solidcraft-ui-egui --lib ribbon_tabs_only (3 passed)
  • cargo clippy --profile ci -p solidcraft-ui-egui --tests -- -D warnings
  • cargo xtask ui-containers, layers, app-geometry, mesh-decisions, lists, skills

Co-authored with Gemini 4 Neon.

@coderabbitai

coderabbitai Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Note

CodeRabbit ASCII loading animation

Currently processing new changes in this PR. This may take a few minutes, please wait...

Review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between fcad807 and 819a9a1.

Files selected for processing: 1

  • crates/ui-egui/src/toolbar.rs

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

…down is open

In Ribbon Tabs Only mode, `open_ribbon` checked only `sc_panel_open`,
viewport context menus, and ribbon button drags when deciding whether the
pointer leaving the ribbon bounds should collapse the overlay. Moving the
pointer down into a split-button's variant menu (such as Sketch's
Rectangle dropdown), an overflow menu, or a ribbon plugin menu therefore
collapsed the ribbon and hid the menu as soon as the pointer crossed the
bottom edge of the ribbon.

Include `ui_kit::Menu::any_open`, `ctx.any_popup_open()`, and
`app.plugin_menu.open` in the `busy` check, matching the pop-out ribbon
in `view_windows.rs`. Add a regression test covering compact and floating
layouts for choosing a Rectangle variant below the ribbon, dismissing
with an outside click, and switching tabs.

Fixes tangency-labs#25585.

Co-Authored-By: Gemini 4 Neon <noreply@google.com>
@ancientastronauttheorist ancientastronauttheorist changed the title Toolbar: keep Ribbon Tabs Only flyout open while choosing from a split-button dropdown (#25585) Toolbar: keep Ribbon Tabs Only overlay open while using a split-button dropdown Dec 2, 2026
@ancientastronauttheorist
ancientastronauttheorist marked this pull request as ready for review December 2, 2026 20:11

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sketching with "Ribbon Tabs Only" mode UI issue

1 participant