[pr-feature] A more attractive redesign of the F1 menu #91

Open
starrockanonigtavi wants to merge 1 commit from starrockanonigtavi/Darner:menu-look into main
First-time contributor

Contributor role (optional)

  • Fluxer ID: 1576513486756786176

What it changes

The F1 menu keeps everything it does today: the same ITEMS, pages, presets, values, settings file, keys, pad, mouse and AUTO-DETECT list. Only how it is drawn and laid out changes.

  • Pages as tabs under the title, one per page of the PAGE row, in its order. Q and E turn the page, and so do Left and Right on the tabs, or a click on a tab.

  • The page's settings in a list of nine rows, with a scroll bar when a page has more. The row picked gets the menu's pink-to-cyan gradient and a pink mark at its left.

  • On/off settings are drawn as switches: the ones whose two values are ON/OFF or SHOWN/HIDDEN. A click turns them over. The other settings show their place among the values (3/6) and < > arrows. A click on the left arrow steps back; anywhere else on the row steps on.

  • The actions are buttons under the list. A button shows its name without the part in brackets. When it is picked, the panel beside the list gives the whole text.

  • A panel beside the list describes the row picked:

    • its name;
    • what it does (the existing help text);
    • whether it applies at once or at the next start;
    • its value now.
  • Text is Bahnschrift in ordinary letters instead of all capitals. Some words stay in capitals:

    • names in a short list (DLSS, FPS, GPU, RT, LB, …);
    • sizes and keys (1920x1080, 4K, F1, 64 KB);
    • file names.

    Only the drawing changes the case. The catalogue texts are unchanged, and text that is not ASCII is drawn as given.

  • Up and down follow the order drawn: the tabs, PRESETS, the page's settings, then the buttons.

  • The box keeps its size per scale: 1180x700 at 1080 lines, with ui_scale as before. Clicks are mapped from the rectangles the last draw made, cached with the view they were drawn for.

Localisation:

  • Every text goes through the catalogue. The new texts are the tab names, the page hint, and "applies at once / at the next start / now". They are keys in locales/en.json and locales/zh-CN.json.
  • The Chinese for those 13 keys was written for this PR; a native speaker should check it. The tab names reuse the words of the existing menu.page.* translations.
  • Chinese text is measured in the face it is drawn in. text_size now uses Face::for_text, as text_width already does.
  • The panel wraps Chinese between characters, because there are no spaces to wrap at.
  • Buttons also cut a name at a full-width bracket.

font.rs gains a horizontal gradient fill, an anti-aliased rounded rectangle (filled or outlined), text measuring and vertically centred text. The Segoe UI heading face, which nothing uses now, is removed.

There are no new settings, no new DARNER_* switches and no change to play defaults.

How it was tested

  • Tested revision: 380a066
  • Commands and results, on 380a066:
    • cargo clippy --workspace --all-targets --locked -- -D warnings: passed
    • cargo clippy --workspace --all-targets --all-features --locked -- -D warnings: passed
    • cargo test --workspace --locked: everything passed except two darner-shader tests, emit::waterfall_tests::sampled_marks_restore_early_depth_only_when_safe_in_pixel_shaders and emit::wave64_tests::lds_shared_atomic_add_producer_executes_wave32_on_hardware. This PR does not touch darner-shader; both also failed, the same way, on the older main 28ef3dd without this change. I did not rerun them on the current main. In an earlier full run on the same tree, four darner-gpu watch tests (watch_pipe and watch) failed. Rerun alone, a different one or none failed each time, so they look timing-dependent; they are not in the menu.
    • cargo test -p darner-gpu --lib host::menu: 49 passed, 2 ignored (the picture tests).
    • cargo xtask policy: passed (553 files)
    • The menu pictures were checked by eye in English and in Simplified Chinese (DARNER_MENU_LANGUAGE=zh-CN), on the PICTURE, DISPLAY and TOOLS pages at 1080 lines. Checked: tabs, switches, buttons, the panel's wrapping, and values beside their n/m count. The command was DARNER_MENU_SHOT=<dir> cargo test -p darner-gpu --lib menu::tests::menu_pictures -- --ignored.
  • The tests that depended on the old character grid are rewritten against the rectangles the picture is drawn with:
    • clicks on rows, back arrows, tabs, Q/E and buttons at every scale, including a picture smaller than the box;
    • every value of every setting fitting its row at every scale;
    • the buttons fitting two lines;
    • the up/down order;
    • the text casing.
  • Gameplay: RTX 5080, Series X and Series S profiles. The same menu, before localisation, was used in game for several sessions with the keyboard and mouse, on the v2026.12.02.02 release.
  • Coverage gaps:
    • This commit was not run in game. It was rebased onto the localised menu; the conflicts were in the drawing, which now takes its texts from the catalogue.
    • Pad navigation was not tried in game.
    • Chinese was only seen in the test pictures, not in game.
    • "AUTO-DETECT: RUN AGAIN" stays in English: it has no key in ACTIONS on main.

Checklist

  • This PR contains one change based on main.
  • The diff follows docs/asset-policy.md.
  • I recorded this PR's dependencies below.
    • Depends on: none

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches.
  • Related PRs:
    • #75 (mine, the ULTRAWIDE row) adds one row to menu.rs and keys to locales/en.json. Whichever lands second needs a small rebase.
    • #9, #12, #16, #47 and #48 also change menu.rs, mostly by adding ITEMS rows. They need no change for this layout, only a rebase.
    • None of them changes how the menu is drawn.

🤖 Generated with Claude Code

## Contributor role (optional) - Fluxer ID: 1576513486756786176 ## What it changes The F1 menu keeps everything it does today: the same `ITEMS`, pages, presets, values, settings file, keys, pad, mouse and AUTO-DETECT list. Only how it is drawn and laid out changes. - **Pages as tabs** under the title, one per page of the PAGE row, in its order. Q and E turn the page, and so do Left and Right on the tabs, or a click on a tab. - **The page's settings in a list of nine rows**, with a scroll bar when a page has more. The row picked gets the menu's pink-to-cyan gradient and a pink mark at its left. - **On/off settings are drawn as switches**: the ones whose two values are ON/OFF or SHOWN/HIDDEN. A click turns them over. The other settings show their place among the values (`3/6`) and `<` `>` arrows. A click on the left arrow steps back; anywhere else on the row steps on. - **The actions are buttons under the list.** A button shows its name without the part in brackets. When it is picked, the panel beside the list gives the whole text. - **A panel beside the list describes the row picked:** - its name; - what it does (the existing help text); - whether it applies at once or at the next start; - its value now. - **Text is Bahnschrift in ordinary letters** instead of all capitals. Some words stay in capitals: - names in a short list (DLSS, FPS, GPU, RT, LB, …); - sizes and keys (1920x1080, 4K, F1, 64 KB); - file names. Only the drawing changes the case. The catalogue texts are unchanged, and text that is not ASCII is drawn as given. - **Up and down follow the order drawn:** the tabs, PRESETS, the page's settings, then the buttons. - **The box keeps its size per scale:** 1180x700 at 1080 lines, with `ui_scale` as before. Clicks are mapped from the rectangles the last draw made, cached with the view they were drawn for. Localisation: - Every text goes through the catalogue. The new texts are the tab names, the page hint, and "applies at once / at the next start / now". They are keys in `locales/en.json` and `locales/zh-CN.json`. - The Chinese for those 13 keys was written for this PR; a native speaker should check it. The tab names reuse the words of the existing `menu.page.*` translations. - Chinese text is measured in the face it is drawn in. `text_size` now uses `Face::for_text`, as `text_width` already does. - The panel wraps Chinese between characters, because there are no spaces to wrap at. - Buttons also cut a name at a full-width bracket. `font.rs` gains a horizontal gradient fill, an anti-aliased rounded rectangle (filled or outlined), text measuring and vertically centred text. The Segoe UI heading face, which nothing uses now, is removed. There are no new settings, no new `DARNER_*` switches and no change to play defaults. ## How it was tested - Tested revision: 380a066 - Commands and results, on 380a066: - `cargo clippy --workspace --all-targets --locked -- -D warnings`: passed - `cargo clippy --workspace --all-targets --all-features --locked -- -D warnings`: passed - `cargo test --workspace --locked`: everything passed except two `darner-shader` tests, `emit::waterfall_tests::sampled_marks_restore_early_depth_only_when_safe_in_pixel_shaders` and `emit::wave64_tests::lds_shared_atomic_add_producer_executes_wave32_on_hardware`. This PR does not touch `darner-shader`; both also failed, the same way, on the older `main` 28ef3dd without this change. I did not rerun them on the current `main`. In an earlier full run on the same tree, four `darner-gpu` watch tests (`watch_pipe` and `watch`) failed. Rerun alone, a different one or none failed each time, so they look timing-dependent; they are not in the menu. - `cargo test -p darner-gpu --lib host::menu`: 49 passed, 2 ignored (the picture tests). - `cargo xtask policy`: passed (553 files) - The menu pictures were checked by eye in English and in Simplified Chinese (`DARNER_MENU_LANGUAGE=zh-CN`), on the PICTURE, DISPLAY and TOOLS pages at 1080 lines. Checked: tabs, switches, buttons, the panel's wrapping, and values beside their `n/m` count. The command was `DARNER_MENU_SHOT=<dir> cargo test -p darner-gpu --lib menu::tests::menu_pictures -- --ignored`. - The tests that depended on the old character grid are rewritten against the rectangles the picture is drawn with: - clicks on rows, back arrows, tabs, Q/E and buttons at every scale, including a picture smaller than the box; - every value of every setting fitting its row at every scale; - the buttons fitting two lines; - the up/down order; - the text casing. - Gameplay: RTX 5080, Series X and Series S profiles. The same menu, before localisation, was used in game for several sessions with the keyboard and mouse, on the v2026.12.02.02 release. - Coverage gaps: - This commit was not run in game. It was rebased onto the localised menu; the conflicts were in the drawing, which now takes its texts from the catalogue. - Pad navigation was not tried in game. - Chinese was only seen in the test pictures, not in game. - "AUTO-DETECT: RUN AGAIN" stays in English: it has no key in `ACTIONS` on `main`. ## Checklist - [x] This PR contains one change based on `main`. - [x] The diff follows `docs/asset-policy.md`. - [x] I recorded this PR's dependencies below. - Depends on: none ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. - Related PRs: - #75 (mine, the ULTRAWIDE row) adds one row to `menu.rs` and keys to `locales/en.json`. Whichever lands second needs a small rebase. - #9, #12, #16, #47 and #48 also change `menu.rs`, mostly by adding `ITEMS` rows. They need no change for this layout, only a rebase. - None of them changes how the menu is drawn. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
The same rows, values, keys, pad and mouse; only the drawing and the layout change.
Every text goes through the catalogue: the tab names, the page hint and the panel's
"applies at once / at the next start / now" are new keys (English and Simplified
Chinese). Chinese text is measured in the face it is drawn in, the panel wraps it
between characters, and a button's name is cut at a full-width bracket too.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
starrockanonigtavi changed title from [pr-feature] F1 menu: tabs for the pages, a panel that says what the row picked does, switches and buttons to [pr-feature] A more attractive redesign of the F1 menu 2026-12-03 20:01:43 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u 'menu-look:starrockanonigtavi-menu-look'
git switch 'starrockanonigtavi-menu-look'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'starrockanonigtavi-menu-look'
git switch 'starrockanonigtavi-menu-look'
git rebase 'main'
git switch 'main'
git merge --ff-only 'starrockanonigtavi-menu-look'
git switch 'starrockanonigtavi-menu-look'
git rebase 'main'
git switch 'main'
git merge --no-ff 'starrockanonigtavi-menu-look'
git switch 'main'
git merge --squash 'starrockanonigtavi-menu-look'
git switch 'main'
git merge --ff-only 'starrockanonigtavi-menu-look'
git switch 'main'
git merge 'starrockanonigtavi-menu-look'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
TrustNo1/Darner!91
No description provided.