Refactor UI layout: move tabs to dedicated bar, add FAB menu#10
Merged
asystemoffields merged 1 commit intomainfrom Mar 26, 2026
Merged
Conversation
Restores prose_code.h, render.c, and wndproc.c to the version at commit f29ad5d, undoing the FAB-to-dropdown-menu conversion and subsequent titlebar/tabbar merging. https://claude.ai/code/session_012jkEhwey5QbTAnq7dCnaU7
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.
Summary
This PR restructures the editor's UI layout by separating tabs into a dedicated tab bar below the title bar, and replacing the inline dropdown menu with a floating action button (FAB) menu system on the left side of the title bar.
Key Changes
Tab bar separation: Moved tab rendering and interaction from the title bar to a new dedicated
render_tabbar()function. Tabs now occupy their own horizontal bar with consistent spacing and layout.FAB menu system: Replaced the single dropdown trigger button with a row of four FAB buttons (File, Edit, View, Settings) positioned on the left side of the title bar. Each FAB displays a Unicode icon and can be clicked to toggle its associated menu.
Menu dropdown simplification: Removed category headers and separators between menu groups. The dropdown now displays only items from the selected menu, reducing visual clutter and simplifying the menu structure.
Layout constants updated:
TITLEBAR_H: 36 → 40 pixelsTABBAR_H: 6 → 38 pixels (now a functional tab bar instead of spacing)MENUBAR_H: remains 0 (unused)State tracking refactored:
dropdown_hoveranddropdown_btn_xwithfab_hover(tracks which FAB is hovered)menu_hover_itemto use per-menu indexing instead of flat indexing across all menusmenu_bar_widths[]array for FAB width trackingClick and hover handling: Updated mouse event handlers to work with the new FAB positions and simplified menu structure. FAB hover now supports menu switching when a menu is already open.
Implementation Details
fab_start_x + i * (fab_size + fab_pad)https://claude.ai/code/session_012jkEhwey5QbTAnq7dCnaU7