mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #323] [MERGED] Per scheme convocolors #4559
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#4559
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/323
Author: @jake9000
Created: 4/30/2026
Status: ✅ Merged
Merged: 5/3/2026
Merged by: @SpicyMarinara
Base:
main← Head:per-scheme-convocolors📝 Commits (7)
bdd11d6feat: save conversation theme per color-scheme68213d5fix: use primary accent color for conversation theme scheme tabs237ebdeMerge branch 'Pasta-Devs:main' into per-scheme-convocolors72fbe0ffix: restore theme override of default conversation gradient0451cb8Merge branch 'main' into per-scheme-convocolors8a76d5bAdded ConvoGradientTo04403a2Merge branch 'main' into per-scheme-convocolors📊 Changes
4 files changed (+125 additions, -49 deletions)
View changed files
📝
packages/client/src/components/chat/ConversationView.tsx(+12 -10)📝
packages/client/src/components/panels/SettingsPanel.tsx(+68 -25)📝
packages/client/src/hooks/use-settings-sync.ts(+12 -0)📝
packages/client/src/stores/ui.store.ts(+33 -14)📄 Description
Linked issue
Closes #322
Summary
Stores the Conversation Theme background gradient separately for dark and light color schemes, so switching OS/browser theme automatically loads the correct gradient.
Why this change
Previously, the gradient was a single global setting. Users who customized it for dark mode would get a near-black background when switching to light mode — unreadable against dark text — and had to manually reconfigure each time. The code had a
workaround that detected the uncustomized default, but it broke as soon as anyone touched the color picker.
What changed
ui.store.ts): flatconvoGradientFrom/convoGradientTo→ nestedconvoGradient: { dark: { from, to }, light: { from, to } }. Store version bumped 10→11 with migration.SettingsPanel.tsx): dark/light tab toggle added above the gradient controls. Preview and color pickers follow the active tab. Reset button is scheme-aware.ConversationView.tsx): simplified toconvoGradient[theme]— no more default-detection hack.use-settings-sync.ts): runtime migration for incoming cross-device settings that may still use the old flat format.Known limitations
convoGradientFrom/convoGradientTovalues into the dark bucket and gives light a fresh default (#f2eff7/#eae6f0). This is correct for nearly all users (the old defaults were dark-mode colors), but if someone hadcustomized the gradient specifically while in light mode, they'll need to re-set it once.
Validation
Stood up a fresh distrobox with fedora:latest and ran a clean install of ME using the per-scheme-convocolors branch.
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Docs and release impact
UI evidence (if applicable)
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.