mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7610] [MERGED] fix(game): keep Game section colors readable and steady under preset colors #7833
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#7833
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/7610
Author: @SpicyMarinara
Created: 10/14/2026
Status: ✅ Merged
Merged: 10/14/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/game-hud-widget-style-followup📝 Commits (4)
5848944fix(game): keep Game section colors readable and steady under preset colorsa185ac3Merge branch 'staging' into fix/game-hud-widget-style-followupa2afdceMerge branch 'staging' into fix/game-hud-widget-style-followupb8172c3Merge branch 'staging' into fix/game-hud-widget-style-followup📊 Changes
8 files changed (+251 additions, -15 deletions)
View changed files
📝
e2e/game-widget-style.e2e.ts(+117 -0)📝
packages/client/src/components/game/CombatWeatherSummary.tsx(+7 -1)📝
packages/client/src/components/game/GameJournal.tsx(+1 -0)📝
packages/client/src/components/game/GameSurface.tsx(+24 -3)📝
packages/client/src/components/game/GameWidgetPanel.tsx(+1 -0)📝
packages/client/src/components/game/StoryboardBackgroundControls.tsx(+3 -0)📝
packages/client/src/lib/chat-widget-colors.ts(+1 -1)📝
packages/client/src/styles/themes/chat-widget-surfaces.css(+97 -10)📄 Description
Linked issue
No linked issue: follow-up to #7604 (maintainer report of 2026-10-14), fixing what the review of #7604 found after it merged. @SpicyMarinara
This branch starts with the one-line build fix from #7608, because
stagingdoes not build without it. Once #7608 merges, only the second commit is new here.Why this change
The review of #7604 found these problems with Apply preset colors on:
What changed
With Apply preset colors on (and for Game content inside a window, such as the Journal, whenever a style is chosen):
chatStyle: true), like Roleplay's chat dialogs.scene-alert), the "Image generation failed" and "Scene analysis failed" retry banners (scene-retry) and the combat weather strip (combat-weather) are Game sections. The storyboard toolbar in the Game controls window follows that window's colors (storyboard-controls).stagingapart from the QTE timer digits.Technical summary:
chat-widget-surfaces.css:--mari-game-accentresolves--mari-chat-control-color→--mari-window-control-color→ custom border →--mari-widget-accent→--marinara-app-accent-static, for both sections and window content. The section remap adds--color-<hue>-{50…400}: color-mix(in oklab, var(--color-<hue>-600) 15–55%, var(--mari-game-text)). Aponytail:note says a new hue needs its rows.--color-blackmoves to the section's children; for window content it stays on the element itself, since that has no shadow over the scene.svg[class*=" text-amber-"]inside a section reverts to its own class color, which is the steady accent. New outline defaults covercombat-weather,scene-alertandscene-retry.CombatWeatherSummary.tsx,GameSurface.tsx(three banners, two confirm dialogs, the party card choice),GameJournal.tsx,GameWidgetPanel.tsx,StoryboardBackgroundControls.tsx: the shared classes anddata-game-sectionnames, orchatStyle: true.e2e/game-widget-style.e2e.ts: the fixture now carries an Inventory item. Under Apply preset colors the test checks content inside the Inventory: the quantity badge's white text equals the widget text color, the amber item letter equals the control color, black inside follows the background, and the section's own black stays black. With Default and Apply preset colors, the amber letter must be the steady app accent. The classic and tactical combat tests switch to Prof. Mari light and require every pale party, enemy or element text in the combat sections to reach 3:1 against its composited background. Classic combat must check at least one.Not changed:
{bounce:Victory!}keep their hard-coded colors (.anim-text-*inglobals.css, with!important). On a light style, the yellow "Victory!" in the classic action bar is hard to read; the same happens in the dialogue box since #7136. These effects are shared with Roleplay, so they need their own change.Decision for Mari
Game sections outside windows follow the style only with the Apply preset font / shape / colors switches on, like the dialogue box, HUD widgets and character sheets (#7136) and Roleplay's chat surfaces. With only Dottore or Prof. Mari picked and the switches off, the logs, Inventory and combat panels look as they did before; only Game content inside windows (the Journal) changes. If you want the sections to follow the style without the switches, that is a small CSS change.
Validation
pnpm checkpasses locallyCONTRIBUTING.mdCommands run by the agent (results):
pnpm check: passed (one existing lint warning inHomeProfessorMariChat.tsx, unrelated). Without the #7608 commit,stagingfails it with 7 ×TS2304.pnpm localization:check(part ofpnpm check): passed; no new strings.pnpm smoke:ui: 7 passed. The first run lost its dev server after one test (ECONNREFUSEDon every later test); the rerun passed.e2e/game-widget-style.e2e.tson desktop-chromium, mobile-chromium and mobile-webkit: 12 passed.chat-widget-surfaces.csseach make the desktop spec fail on the matching check:combat-actions "H" is readable(1.33).combat-actions "H" is readable(1.33).e2e/game-combat-director.e2e.tsande2e/game-hybrid-terrain.e2e.ts, which render the weather strip: 10 passed.node scripts/run-regressions.mjs --filter …for the 14 regressions that read the changed files: all passed.Manual verification notes
Manual verification still to do:
Agent checks (screenshots kept locally, not uploaded): desktop Game sections under Default, Default with switches and Accent Pulse, Prof. Mari light with switches, and Dottore with switches. Default matched
stagingpixel for pixel apart from the QTE timer digits and a one-pixel anti-aliasing edge in the tactical grid. Also checked: the Start combat and End session dialogs, the forced "Local scene helper failed" banner, and the tactical weather strip in rain. Probed values: Prof. Mari light chips 1.32 → 4.1–4.3, active hero initial 1.33 → 5.5; Default with Accent Pulse, the amber probe was steady at#ec4b97with full alpha, where before it changed on each of 6 samples at alpha 0.64.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)No docs changes: the guides from #7604 already describe the covered areas and the
data-game-sectionhook.UI evidence (if applicable)
Before and after screenshots exist locally and are not uploaded.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.