mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8926] feat(ui): UI Editor, pick anything on screen and change how it looks #8885
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#8885
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/8926
Author: @Promansis
Created: 11/7/2026
Status: 🔄 Open
Base:
staging← Head:feature(ui)/ui-element-style-editor📝 Commits (10+)
2c51bd7feat(ui): pick an interface element to restyle it (#8874)3c70511fix(ui): make every UI style region visibly restyle4666553feat(ui): add Home, editor, game, menu, toast and text field style regions618254dfeat(ui): edit a picked region in a floating card, with interface presets84ae94ffeat(ui): restyle Engine blocks by their mari-* class from the picker4e7640cfeat(ui): pick colours from a saturation square and hue strip0628d49feat(ui): opacity strip and Custom/Palette tabs in the colour picker850abbdfeat(ui): shared opacity bar under both colour picker tabsd79042bfeat(ui): border width, background blur and shadow in the style editorb3df83dfeat(ui): put UI Element Styles inside App Style📊 Changes
21 files changed (+2998 additions, -372 deletions)
View changed files
📝
docs/appearance/appearance-settings.md(+10 -3)📝
e2e/core-flows.e2e.ts(+8 -8)📝
e2e/home-setup-cancel-loading.e2e.ts(+1 -1)📝
packages/client/src/App.tsx(+12 -1)📝
packages/client/src/components/chat/ConversationMessageLine.tsx(+1 -1)📝
packages/client/src/components/chat/HomeBrowserHub.tsx(+1 -1)📝
packages/client/src/components/game/GameWidgetSetupEditor.tsx(+1 -0)➕
packages/client/src/components/layout/UiStyleEditorCard.tsx(+662 -0)➕
packages/client/src/components/layout/UiStyleOverridesInjector.tsx(+298 -0)📝
packages/client/src/components/panels/SettingsPanel.tsx(+4 -27)➕
packages/client/src/components/panels/settings/UiStyleSettings.tsx(+296 -0)📝
packages/client/src/components/ui/ColorPicker.tsx(+501 -314)📝
packages/client/src/components/ui/ContextMenu.tsx(+2 -2)📝
packages/client/src/hooks/use-settings-sync.ts(+21 -0)📝
packages/client/src/lib/css-colors.ts(+79 -0)📝
packages/client/src/lib/settings-registry.ts(+19 -7)📝
packages/client/src/lib/ui-persistence.ts(+1 -1)➕
packages/client/src/lib/ui-style-overrides.ts(+538 -0)📝
packages/client/src/localization/locales/en.json(+94 -3)📝
packages/client/src/stores/ui.store.ts(+85 -3)...and 1 more files
📄 Description
TL;DR: Adds UI Editor to App Style. Pick anything on screen, or choose it from a list, and change its colours, border, corners, opacity, text size, blur and shadow, with a live preview and Save/Revert. Whole app replaces the old Background Color setting.
Linked issue
Closes #8925
Why this change
Today the only options are a full CSS theme or the tracker Card Colors editor. Restyling one part of the app means writing CSS against selectors that aren't documented and can change between releases. The UI Editor lets anyone point at a part and change it, and saved styles keep working because they only target named regions and the Engine's own
mari-*classes.What changed
UiStyleSettings.tsx), searchable as "UI Editor", "edit ui", "customize ui" and "pick on screen". It has Pick on screen, a Choose what to change… list, a What you've changed list with reset per part, presets, and Copy a look from….UiStyleOverridesInjector.tsx): hover highlights and a click or tap picks. Wheel and touch scrolling still work while picking, Escape or Cancel leaves, and phones get their own hint text.UiStyleEditorCard.tsx):lib/ui-style-overrides.ts:mari-*classes and hostile colour strings are dropped, and numbers are clamped.:root-prefixed!important), maps a pick to its region and blocks, and stores presets.:where(:not([data-ui-style-editor] …))guard.url(...)or over-long strings, stay inappBackgroundColor, and App.tsx still paints them.mari-*markers added where blocks lacked one:ContextMenu(both the popover and the bottom sheet),ConversationMessageLine,HomeBrowserHubandGameWidgetSetupEditor.uiStyleOverridesanduiStylePresetsare persisted and synced, normalised on both persistmergeand settings sync, and cleared by Reset appearance.docs/appearance/appearance-settings.mdnow describes the app background through Whole app. New English strings are inen.json. The e2e specs that used the removed Background Color setter are updated.scripts/regressions/ui-style-overrides.regression.tscovers:Known compatibility note: a client from before this change still shows the old Background Color field. Edits made there while a new client is also in use are lost.
Validation
pnpm checkpasses locallyCONTRIBUTING.mdAutomated results (agent-run, on
a12458953d):pnpm check: exit 0.pnpm localization:check: exit 0.node scripts/run-regressions.mjs --filter scripts/regressions/ui-style-overrides.regression.ts: passed.pnpm smoke:ui, container build.Manual verification notes
Known open phone issues (not fixed in this PR):
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)docs/appearance/appearance-settings.mdchanged. Follow-up: #8927.UI evidence (if applicable)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.