mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #262] [MERGED] bugfix: extend light-mode support to RP, mobile toolbar, and dialogue #4532
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#4532
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/262
Author: @LukaTheHero
Created: 4/27/2026
Status: ✅ Merged
Merged: 4/27/2026
Merged by: @LukaTheHero
Base:
main← Head:fix/light-mode-rp-coverage📝 Commits (3)
be9523bbugfix: Remove hardcoded darkmode9acc060Merge branch 'main' into main03b59bebugfix: extend light-mode support to RP, mobile toolbar, and dialogue📊 Changes
16 files changed (+323 additions, -289 deletions)
View changed files
📝
packages/client/src/components/chat/ChatInput.tsx(+3 -3)📝
packages/client/src/components/chat/ChatMessage.tsx(+15 -5)📝
packages/client/src/components/chat/ChatRoleplaySurface.tsx(+14 -9)📝
packages/client/src/components/chat/ConversationInput.tsx(+3 -3)📝
packages/client/src/components/chat/ConversationMessage.tsx(+4 -4)📝
packages/client/src/components/chat/ConversationView.tsx(+24 -28)📝
packages/client/src/components/chat/CyoaChoices.tsx(+10 -10)📝
packages/client/src/components/chat/EncounterModal.tsx(+58 -58)📝
packages/client/src/components/chat/HomeFaq.tsx(+17 -17)📝
packages/client/src/components/chat/RoleplayHUD.tsx(+24 -24)📝
packages/client/src/components/chat/RoleplayHUDPanels.tsx(+72 -70)📝
packages/client/src/components/game/GameInput.tsx(+14 -14)📝
packages/client/src/components/game/GameNarration.tsx(+29 -24)📝
packages/client/src/components/game/GameSetupWizard.tsx(+3 -3)📝
packages/client/src/components/game/GameSurface.tsx(+16 -14)📝
packages/client/src/styles/globals.css(+17 -3)📄 Description
Why this change
Builds on @Javedz678's work in #217. The original PR scoped the roleplay surface as "always dark" and intentionally kept hardcoded white/black overrides in that area. That worked for conversation mode but left light mode unusable inside RP: message text was invisible, dialogue rendered as ghost-outlined letters (white fill + dark text-stroke on a light bg), the mobile toolbar collapsed into a column of black circles, the message action icons (trash / branch / flag / refresh / pencil / translate / copy) disappeared, and the conversation surface had no visible contrast against the page bg.
This PR keeps Javedz's commits and stacks the additional theme-aware conversions on top.
What changed
CSS
.rpg-chat-areanow usesvar(--background)instead of#0a0a0f..rpg-chat-area .mari-message-content { color: #d4d4d4 }override so message body text follows--foregroundin both themes.[data-theme=\"light\"]variants for.rpg-overlayand.rpg-vignette(warm-white gradient + faint purple radial instead of forcing dark).ChatMessage
text-white— nowtext-black dark:text-whiteso quoted text reads correctly in light mode (Tailwind v4dark:is wired todata-theme=\"dark\"via the@custom-variantinglobals.css).ActionBtn"dark" variant wastext-white/40 hover:bg-white/10 hover:text-white/70— swapped fortext-foreground/40 hover:bg-foreground/10 hover:text-foreground/70. This is what restores the row of message-action icons in light-mode RP.Component white→foreground swaps
ChatRoleplaySurface.tsx,RoleplayHUD.tsx,EncounterModal.tsx,ChatInput.tsx: ~120 instances ofbg-white/X,text-white/X,border-white/Xswapped to theforeground/Xequivalents so they invert with the theme.ChatInput:bg-black/40input bar andbg-black/80slash-completion popup →bg-[var(--card)].Mobile
ChatRoleplaySurfaceToolbarMenu: mobile trigger button and the collapsed popover panel werebg-black/40andbg-black/80— swapped forbg-[var(--card)]so the column of collapsed toolbar buttons is visible in mobile light mode.Load Morebutton got the same treatment.Conversation tint
ConversationView: when the user has the default dark gradient and theme is light, the surface now usesvar(--secondary)(a tinted lavender) instead of falling through to--background. This gives the chat surface the same subtle contrast-vs-page bg that RP has.Validation
pnpm checkpassesdark:variants and theme-keyed CSS overrides only kick in for[data-theme=\"light\"]).Credit
Original light-mode support work is @Javedz678's in #217 — those commits are preserved on this branch with their authorship intact. This PR extends the same approach into the areas that were intentionally left as "always dark."
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.