Skip to content

Replace bespoke menu bar nav arrows + search box with quadraui::CommandCenter #310

Description

@JDonaghy

Context

#301 (PR #309) migrated the menu bar labels to quadraui::MenuBar. The nav arrows (◀ ▶) and centered search/title box remained as ~242 lines of bespoke per-backend code because the quadraui primitive didn't exist yet.

JDonaghy/quadraui#51 shipped the CommandCenter primitive with TUI + GTK rasterisers and paint↔click round-trip harnesses.

Scope

  • Build render::build_command_center_view() adapter from engine state (tab_nav_can_go_back, tab_nav_can_go_forward, title)
  • Replace TUI bespoke nav arrows + search box paint in render_menu_bar() (~65 lines) with quadraui::tui::draw_command_center()
  • Replace GTK bespoke nav arrows + search box paint in draw_menu_bar() (~119 lines) with quadraui::gtk::draw_command_center()
  • Replace TUI bespoke click geometry in mouse.rs (~39 lines) with CommandCenterLayout::hit_test()
  • Replace GTK cached nav rects click handling (~19 lines) with CommandCenterLayout::hit_test()
  • Cache CommandCenterLayout on engine for click dispatch (same pattern as MenuBarLayout)
  • Remove nav_arrow_rects_cell from GTK (superseded by the layout cache)

Where to look

  • src/tui_main/render_impl.rsrender_menu_bar() lines after draw_menu_bar() call
  • src/gtk/draw.rsdraw_menu_bar() lines after quadraui::gtk::draw_menu_bar() call
  • src/tui_main/mouse.rs — nav arrow + search box click handling after MenuBarLayout::hit_test
  • src/gtk/mod.rsnav_rects_click usage in click gesture + nav_arrow_rects_cell declaration

Out of scope

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestinfrastructureBuild, CI, distributionuiUI/rendering

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions