mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #8874] [Feature]: Pick an element to restyle it (Settings → Appearance) #8535
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#8535
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?
Originally created by @Promansis on GitHub (Nov 5, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8874
Originally assigned to: @Promansis on GitHub.
What problem does this solve?
Users can restyle the app with full CSS themes, or recolor tracker cards with a live-preview editor. There is nothing in between: someone who wants the top bar darker or their own message bubbles rounder has to write CSS against undocumented selectors.
Proposed solution
A Pick an element button in Settings → Appearance. It opens a full-screen pick overlay that highlights named parts of the interface under the pointer (top bar, sidebar, message bubbles, composer, modals and about ten more). Clicking one selects it and opens a small editor for its background, text color, border color, corner radius, opacity and font size. Changes preview live; the user then saves or reverts, the same way the tracker Card Colors editor works. A dropdown selects the same regions without the overlay (the mobile path). Saved styles sync across devices like other appearance settings, and "Reset appearance" clears them.
Alternatives considered
Additional context
Interaction model follows the tracker panel's "edit UI" mode: enter a mode, click the thing on screen, edit it, leave the mode.
Template check
Minimal fix
Client-only. New:
packages/client/src/lib/ui-style-overrides.ts(region registry, normalization as the trust boundary for the synced blob, CSS generation with a:rootprefix, pick resolver),packages/client/src/components/layout/UiStyleOverridesInjector.tsx(style tag + pick overlay, mounted next to<CustomThemeInjector />inApp.tsx),packages/client/src/components/panels/settings/UiStyleSettings.tsx(draft editor mirroringTrackerCardColorSettings.tsx),scripts/regressions/ui-style-overrides.regression.ts. Touched:stores/ui.store.ts(persisted+synceduiStyleOverrides, transient pick/selection/preview fields, reset wiring, normalize in persistmerge),hooks/use-settings-sync.ts(normalize inomitLocalOnlySettings),SettingsPanel.tsx(render after App Style),packages/shared/src/constants/settings-registry.ts(ui-element-stylessection),localization/locales/en.json.Regression: exact CSS output for a top-bar override; injected color (
red;} body{display:none) dropped, unknown keys and region ids dropped,fontSizeclamped; serialization key-order independent; resolver returnsuser-messagefor a bubble → user row → center chain andnullfor an unmatched chain.