[pr-feature] A more attractive redesign of the F1 menu #91
Loading…
Reference in a new issue
No description provided.
Delete branch "starrockanonigtavi/Darner:menu-look"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Contributor role (optional)
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:
Text is Bahnschrift in ordinary letters instead of all capitals. Some words stay in capitals:
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_scaleas before. Clicks are mapped from the rectangles the last draw made, cached with the view they were drawn for.Localisation:
locales/en.jsonandlocales/zh-CN.json.menu.page.*translations.text_sizenow usesFace::for_text, astext_widthalready does.font.rsgains 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
380a066380a066:cargo clippy --workspace --all-targets --locked -- -D warnings: passedcargo clippy --workspace --all-targets --all-features --locked -- -D warnings: passedcargo test --workspace --locked: everything passed except twodarner-shadertests,emit::waterfall_tests::sampled_marks_restore_early_depth_only_when_safe_in_pixel_shadersandemit::wave64_tests::lds_shared_atomic_add_producer_executes_wave32_on_hardware. This PR does not touchdarner-shader; both also failed, the same way, on the oldermain28ef3ddwithout this change. I did not rerun them on the currentmain. In an earlier full run on the same tree, fourdarner-gpuwatch tests (watch_pipeandwatch) 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)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 theirn/mcount. The command wasDARNER_MENU_SHOT=<dir> cargo test -p darner-gpu --lib menu::tests::menu_pictures -- --ignored.ACTIONSonmain.Checklist
main.docs/asset-policy.md.Checked for overlap
menu.rsand keys tolocales/en.json. Whichever lands second needs a small rebase.menu.rs, mostly by addingITEMSrows. They need no change for this layout, only a rebase.🤖 Generated with Claude Code
[pr-feature] F1 menu: tabs for the pages, a panel that says what the row picked does, switches and buttonsto [pr-feature] A more attractive redesign of the F1 menuView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.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.