Skip to content

Dark look for the launcher and the in-game menu - #147

Closed
RootChad wants to merge 2 commits into
mainfrom
launcher-themes
Closed

RootChad wants to merge 2 commits into
mainfrom
launcher-themes

Conversation

@RootChad

Copy link
Copy Markdown
Collaborator

Asked for on Discord: a dark mode for the launcher and the Insert/F1 menu.

Launcher

  • Options → Game → Launcher look: Light (as before) or Dark. Kept in launcher.ini (theme=), applied when the launcher opens (like the launcher language), so a change shows on the next opening. RELINK_THEME=light|dark forces it for one run (tests, pictures).
  • Theme.cs swaps App.xaml's brushes before the window is made; the theme keys are now DynamicResource, and the few hard-coded colours (cards, status card, hovers, field, ink on yellow) became resources.
  • Light stays as it was. Dark contrast (WCAG, on the label): words 13.4, choices 7.4, section titles 4.6, hints 9.3, links 4.5.

In-game menu (Insert/F1)

  • The cartridge colours are two palettes in vk_menu.cpp, picked before each paint.
  • New row Gameplay → More → Menu look (menu_look in relink_options.ini, also in recomplauncher.json); it switches live.
  • The launcher's look row sets menu_look too, so both follow one choice.

Tested

On a dev game (this branch merged with fsr4, only relink_vk.dll rebuilt): picking Dark writes theme=dark and menu_look=1; the launcher reopens dark; the menu opens dark on Graphics, Gameplay, Controls and the mapping page; its row switches light ↔ dark live. relink_vk.dll and the launcher also build on this branch alone (from main).

🤖 Generated with Claude Code

RootChad and others added 2 commits November 19, 2026 16:09
The Game page's new "Launcher look" row: Light (the cartridge as it is) or Dark (the same cartridge in dark plastic:
a dark grey shell, a near-black label, cream words, the controller's colours a little lighter and their tints deep).
Kept in launcher.ini (theme=); RELINK_THEME chooses for one run. Theme.cs gives App.xaml's colours before the window
is made, so a change shows the next time ReLink opens, as the launcher's language does.

Measured, WCAG contrast on the label (light -> dark): the words 11.9 -> 13.4, the choices 4.6 -> 7.4, the section
titles 3.0 -> 4.6, the hints 7.6 -> 9.3; red, green and blue as links 3.4-4.9 -> 4.5; white on a chosen pill
4.2-6.0 -> 3.7 (one colour for both: on this label no shade gives 4.5 to both); the label against the shell
1.66 -> 1.45.

The colours the pages wrote out (the Home cards, the language field, the hover shades, the status card) are named
resources now, and the theme's colours are DynamicResource (a StaticResource in App.xaml's styles had already taken
the light brush). The words on the yellow are OnYellow, dark in both themes. Light is unchanged: its snapshots match
the earlier ones pixel for pixel (ReLink.exe --snapshot, every view), but for the sun of the hour and the new row.

Not in this change: the in-game Insert / F1 menu (gpu/vk/vk_menu.cpp) keeps its own colours.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…er's look row too

- vk_menu.cpp: the cartridge's colours as two palettes (light: as before; dark: the launcher's dark theme), picked
  before each paint; the yellow "restart" tag and the listening key keep a readable ink in both
- A "Menu look" row (Gameplay > More), saved as menu_look in relink_options.ini; recomplauncher.json has it too
- Launcher: the Launcher look row also sets menu_look, so both follow the same choice

Tested on the dev game (fsr4 + this branch): the launcher's Dark pick writes theme=dark and menu_look=1, the launcher
reopens dark, the menu opens dark on every tab and the mapping page, and its row switches it live both ways.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@pixl27

pixl27 commented Nov 22, 2026

Copy link
Copy Markdown
Owner

Merged into 0.7.9.3 (https://github.com/pixl27/ProjectReLink/releases/tag/v0.7.9.3), through the hotfix branch rather than this pull request, with your authorship kept in the commit (Co-authored-by). Thank you, RootChad.

@pixl27 pixl27 closed this Nov 22, 2026
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.

2 participants