Skip to content

#676: GTK: the VS Code-style Command Center (nav arrows + search box) was dropped by the #540 Relm4→ShellApp cutover and never re-wired - #689

Merged
JDonaghy merged 1 commit into
developfrom
issue-676-gtk-the-vs-code-style-command-center-nav
Aug 28, 2026
Merged

#676: GTK: the VS Code-style Command Center (nav arrows + search box) was dropped by the #540 Relm4→ShellApp cutover and never re-wired#689
JDonaghy merged 1 commit into
developfrom
issue-676-gtk-the-vs-code-style-command-center-nav

Conversation

@JDonaghy

Copy link
Copy Markdown
Owner

Closes #676

Automated PR opened by coordinator for review of issue #676.

The #540 Relm4->ShellApp cutover deleted the titlebar draw closure that
called quadraui::gtk::draw_command_center and its click handler, but the
replacement ShellApp::render_content/handle never ported either half.
The inline window-control buttons (min/max/close) were handed the entire
menu_end..right-edge band and background-filled it end-to-end, silently
claiming the space the Command Center used to live in.

- render_content: narrow the window-controls rect to the buttons' actual
  measured width (via Backend::status_bar_layout), paint
  render::build_command_center_view/Backend::draw_command_center in the
  freed gap after menu_system.render() (load-bearing order, matches the
  #552 window-controls hazard), and cache the result into
  engine.command_center_layout, clearing it when the menu bar is hidden.
- handle(): hit-test command_center_layout on MouseDown, before the
  window-controls check and the CSD drag-to-move fallback, dispatching
  the dormant (never-called-since-#540) Msg::MruNavBack /
  Msg::MruNavForward / Msg::OpenCommandCenter.
- Delete the dead menu_bar_da field (never assigned Some since the
  cutover) and its four dead reads.
- Add a black-box GTK test module asserting painted pixels (not text) for
  the arrows/search box, no overlap with the window controls, and that
  clicks route to tab-nav / the picker.

PROJECT_STATE.md:92 already lists the Command Center as done on both
backends; no further doc edit needed there.
@JDonaghy
JDonaghy merged commit 76a7dcf into develop Aug 28, 2026
2 checks passed
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.

GTK: the VS Code-style Command Center (nav arrows + search box) was dropped by the #540 Relm4→ShellApp cutover and never re-wired

1 participant