mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7168] [MERGED] Keep character dialogue colors when a chat style applies its colors #7606
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#7606
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/7168
Author: @SpicyMarinara
Created: 10/6/2026
Status: ✅ Merged
Merged: 10/6/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/preset-colors-dialogue📝 Commits (4)
b7f0071fix(chat): keep character dialogue colors under Apply preset colors (#7167)47d70a0fix(game): keep own speaker name colors under Apply preset colors (#7167)57a3e0bMerge remote-tracking branch 'origin/staging' into fix/preset-colors-dialogue54874faMerge branch 'staging' into fix/preset-colors-dialogue📊 Changes
10 files changed (+427 additions, -18 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
docs/appearance/appearance-settings.md(+2 -2)📝
docs/appearance/custom-css-themes.md(+1 -1)📝
docs/chats/chat-settings.md(+1 -1)➕
e2e/chat-widget-dialogue-colors.e2e.ts(+339 -0)📝
packages/client/src/components/chat/ChatMessage.tsx(+34 -9)📝
packages/client/src/components/game/GameNarration.tsx(+19 -3)📝
packages/client/src/components/game/GameNarrationVisuals.tsx(+11 -1)📝
packages/client/src/lib/chat-widget-colors.ts(+4 -0)📝
packages/client/src/styles/themes/chat-widget-surfaces.css(+15 -1)📄 Description
Linked issue
Closes #7167
Why this change
With a chat widget style that applies its own colors (for example Mari with Apply preset colors on), quoted dialogue lost each character's dialogue color and was painted in the preset's text color. Chat surfaces set an inherited
-webkit-text-fill-color, which beats a dialogue span's inlinecolorwhen text is painted, and a custom-text rule repainted text leaves directly. Game Mode speaker names had the same problem.What changed
mari-character-color(CHARACTER_COLOR_CLASSinlib/chat-widget-colors.ts), in every render path: Roleplay plain and HTML messages, group speaker colors, Game narration dialogue, and Game speaker names.-webkit-text-fill-color: currentColor), and the preset's gradient-text rule skips it and its children, so italics inside a quote keep the color too.e2e/chat-widget-dialogue-colors.e2e.tscovers Roleplay, persona and Game dialogue plus Game names on Default, Mari and Dottore, in light and dark mode, with and without gradient text.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation) — follow-up: #7172Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.