Repository navigation
Ribbon: Excel layout parity on every tab — group captions, order and missing groups - #1767
Closed
alosslessdev wants to merge 2 commits into
Closed
alosslessdev wants to merge 2 commits into
alosslessdev wants to merge 2 commits into
Conversation
Contributor
Author
|
This was tested on a 1920x1080 display with maximized windows on both excel and gridcraft |
This was referenced Oct 17, 2026
Contributor
Author
|
Superseded by three independent PRs from main: #1795 (group captions + dialog launchers + content-sized groups), #1798 (missing and misplaced groups and controls), #1800 (Text drop-down). Launchers and blank-slot collapse are properties of the group container, so they are part of #1795; stacking separate PRs was not possible because GitHub cannot base a PR on a fork branch when the base repo is upstream. Closing this combined PR in favour of them. |
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.
Fixes #1764.
Every tab of the ribbon now lays out like Excel's: real groups with the group's caption under them, Excel's group order and control order inside each group, a separator between groups, and Excel's dialog launcher in a group's bottom-right corner wherever Excel has one and GridCraft has the dialog. A feature GridCraft lacks takes no space at all — the cluster is just narrower and everything after it moves left, so the blank area collects at the right end of the ribbon as in Excel.
Reference: side-by-side captures of every Excel and GridCraft tab, plus black-box observation of the installed Excel (per
AGENTS.md; nothing of Office's is in the commit).What changed
New ribbon primitive in
crates/ui-egui/src/ribbon.rs:group()wraps each cluster in a fixed-height group — controls packed top-left over a caption band, captions aligned along the ribbon bottom — plusinner_sep()for the dividers Excel draws inside a group (Font before Borders, Number before the decimals). The ribbon card grows 88 → 100 px for the caption band.Wired into the layout (all commands already existed in
main):home.addIns) after EditingpageLayout.scaleToFit); Arrange group (Bring Forward/Send Backward with their To Front/To Back menus, Selection Pane, Align ⌄, Group, Rotate ⌄)Deliberate omissions
Features the repo doesn't implement leave no hole (issue #1764's rule): Sensitivity, Forms, 3D Models, SmartArt, Screenshot, Timeline, WordArt, Equation, Maps, Data Types, From Web/Picture, Properties, Workbook Links, Sheet View, Side-by-side windows, Unshare Workbook, New Script (needs a name and commands that only the control channel and CLI pass), and the Help tab. Drop-downs whose contents are missing stay plain buttons (Link, PivotTable's From… menu).
Rotate ⌄carries only the flipsarrange.rotateimplements. The theme Effects menu is wired topageLayout.themeEffects, whose engine side is still a no-op. Arrange buttons act on the selected chart; other objects go through the Selection Pane (the grid has no single object selection yet).Two kept extras where GridCraft's control behaves like a drop-down even though the reference Excel shows none: Font keeps Strikethrough (the reference build keeps it in Format Cells only), and Symbol keeps its chevron because clicking it opens the symbol gallery.
Verification
cargo clippy -p gridcraft-ui-egui --all-targets -- -D warningscleancargo test -p gridcraft-ui-eguipasses (the keytip, layout-sensitive and system-theme suites included)cargo xtask cipassesui.ribbon,ui.screenshot) and compared with the Excel capturesdocs/ui-parity.mdupdated (timestamp, ribbon rows, revision history).contributors/people.tomlcarries my own entry, perAGENTS.md.