Skip to content

#710: GTK VS Code parity: menu dropdown paints in the editor font, not the menu-bar UI font; command-centre row is one editor line tall - #711

Merged
JDonaghy merged 1 commit into
developfrom
issue-710-gtk-vs-code-parity-menu-dropdown-paints
Aug 31, 2026
Merged

#710: GTK VS Code parity: menu dropdown paints in the editor font, not the menu-bar UI font; command-centre row is one editor line tall#711
JDonaghy merged 1 commit into
developfrom
issue-710-gtk-vs-code-parity-menu-dropdown-paints

Conversation

@JDonaghy

Copy link
Copy Markdown
Owner

Closes #710

Automated merge from the coordinator for assignment d96230ecfffb on issue #710.

Worker branch: issue-710-gtk-vs-code-parity-menu-dropdown-paintsdevelop.

…e parity

Item 1 — bump the quadraui pin (Cargo.toml, Cargo.lock) to
227a8c42aca08a421c55b603f303a943a78edfe7, which lands quadraui#637:
GtkBackend::draw_context_menu and ::draw_command_center now save/set/
restore ui_font around their rasteriser calls, mirroring draw_menu_bar's
existing #624 fix. Before this, the open Edit-menu dropdown inherited
whatever font a previous paint call left on the frame's shared Pango
layout (the editor font) while the bar directly above it already painted
in the UI font, in the same click.

Item 2 — bump build_shell_config's with_title_bar multiplier from 1.0 to
1.7 (src/gtk/mod.rs). The title-bar/menu-row band is an editor-line-height
multiple with no fixed-px reservation API yet, so this is the only knob
available; 1.0 measured ~18px band / ~14px pill in the headless harness
(one editor text line), 1.7 measures ~31px / ~27px — much closer to VS
Code's 35px title bar / ~26px pill. The residual (still lh-coupled, not
fixed-px) is noted inline; a quadraui px-based reservation issue was not
filed as part of this PR — flagging for the reviewer to decide if it's
needed now or can wait alongside #699 Tier 1's similar asks.

Tests (src/gtk/testing.rs, GtkDriver): both new tests verified red against
the unfixed state (pre-#637 pin / with_title_bar(1.0)) before being
restored to pass.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@JDonaghy
JDonaghy merged commit 5f04712 into develop Aug 31, 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 VS Code parity: menu dropdown paints in the editor font, not the menu-bar UI font; command-centre row is one editor line tall

1 participant