mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7175] [MERGED] fix(settings): give every Settings button one consistent style #7611
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#7611
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/7175
Author: @SpicyMarinara
Created: 10/6/2026
Status: ✅ Merged
Merged: 10/6/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/save-timeouts-button-7174📝 Commits (6)
abf5694fix(settings): match the Save timeouts button to Advanced Settings (#7174)4e1df82fix(settings): give every Settings button one consistent style (#7174)ec218c4fix(settings): keep maintainer sizes, inline chips, clear selection and steady delete colour (#7174)a5b330aMerge branch 'staging' into fix/save-timeouts-button-717414616b9Merge remote-tracking branch 'origin/staging' into fix/save-timeouts-button-71741c3b95bMerge remote-tracking branch 'origin/staging' into fix/save-timeouts-button-7174📊 Changes
18 files changed (+518 additions, -581 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
docs/appearance/chat-backgrounds.md(+6 -4)📝
docs/roleplay/hud-and-trackers.md(+1 -1)📝
packages/client/src/components/panels/SettingsPanel.tsx(+235 -314)📝
packages/client/src/components/panels/settings/BackgroundPicker.tsx(+92 -127)📝
packages/client/src/components/panels/settings/CustomGenerationParametersSettings.tsx(+14 -14)📝
packages/client/src/components/panels/settings/PersonalExtensionsSettings.tsx(+23 -25)📝
packages/client/src/components/panels/settings/PromptOverridesEditor.tsx(+12 -11)📝
packages/client/src/components/panels/settings/RequestTimeoutSettings.tsx(+4 -1)📝
packages/client/src/components/panels/settings/SettingControls.tsx(+20 -14)📝
packages/client/src/components/panels/settings/TrackerCardColorSettings.tsx(+6 -13)📝
packages/client/src/components/panels/settings/UILanguageSetting.tsx(+5 -4)📝
packages/client/src/components/ui/ColorPicker.tsx(+9 -15)📝
packages/client/src/components/ui/ExportFormatDialog.tsx(+3 -6)📝
packages/client/src/components/ui/TrackerCardColorControls.tsx(+12 -23)📝
packages/client/src/features/multiplayer/MultiplayerSettings.tsx(+16 -9)📝
packages/client/src/localization/locales/en.json(+3 -0)📝
packages/client/src/styles/globals.css(+56 -0)📄 Description
Linked issue
Closes #7174
Why this change
The Save timeouts button in Advanced Settings used the selected-toggle style, so it looked like a pressed toggle instead of an action. An audit of every Settings button found the same kind of drift across the panel: about a dozen hand-made styles, actions painted as "selected", resets styled as text links, delete buttons that were not tinted, icon buttons without accessible names, and Tailwind overrides that never applied because the
.mari-chrome-control*rules sit outside the CSS layers. Mari asked that every Settings button follow the same formatting classes.What changed
One rule per role, using shared constants exported from
settings/SettingControls.tsx:SETTINGS_PRIMARY_FULL_BUTTON_CLASS, full width with a leading 0.8125rem icon, like Copy support diagnostics and Save timeouts.SETTINGS_BUTTON_CLASS, 0.75rem icons.SETTINGS_COMPACT_PRIMARY_BUTTON_CLASS, now primary emphasis at the small size without the baked-in--selected.SETTINGS_BUTTON_CLASSitems in a plaingap-1flex/grid withtype="button"andaria-pressed. The selected look comes only fromaria-pressed. Groups whose labels did not fit (tracker Desktop size, tracker card Source / Stage / Finish) now wrap instead of truncating.SETTINGS_CHOICE_CARD_CLASS(.mari-chrome-control--card), selected viaaria-pressed. The selected card gets a solid 2px accent ring (plus the focus ring outside it when focused). Idle titles keep the body text colour so they stay readable in light mode.SETTINGS_ICON_BUTTON_CLASS(.mari-chrome-control--icon, a 1.75rem square) with anaria-label. New keys: Close theme editor, Delete backup, Remove color stop. The custom generation parameter edit/delete icons keep the 16px (1rem) size chosen in #4125 inside that square.SETTINGS_BUTTON_CLASSplus a new.mari-chrome-control--chipmodifier (tighter sides) and regular-weight 0.6rem mono text, so they wrap two to a row as before.mari-chrome-control--danger(theme--destructive). While Accent Pulse or RGB Mode animates the accent,--dangeruses--marinara-app-accent-static, the steady accent the editor shells and Decision warnings already use, so delete buttons and their icons do not pulse. This applies to every--dangerbutton in the app (Characters, Personas, Lorebooks, sidebar and bulk actions too), not only Settings.disabled:*,!) are removed, and the hard-coded emerald/amber button colours are gone.Also touched because they render inside Settings:
BackgroundPicker(also used in the Chat Settings drawer and setup wizard),ColorPickerReset / Add stop / Remove stop andExportFormatDialogCancel (also used by the Character, Persona and Lorebook editors),TrackerCardColorControls,MultiplayerSettings,PersonalExtensionsSettings,PromptOverridesEditor,CustomGenerationParametersSettings,UILanguageSettingand the notification sound controls.Notable visible changes:
Left unchanged (out of scope): switches,
<details>and disclosure headers, tab bars and the Appearance group switcher, colour swatches, navigation rows, HelpTooltip glyphs, the shared Modal close X,TouchDragHandle, theChatResourceActionButtoncomponent itself, andTTSConfigCard(not rendered in Settings).Validation
pnpm checkpasses locallyCONTRIBUTING.mdAgent-run checks on
ec218c4cb(these do not replace the boxes above):pnpm check: passed.core-flows.e2e.ts"custom generation parameters become reusable chat controls" (original 16px assertion, unchanged from staging): passed on desktop-chromium (the test skips mobile by design).core-flows.e2e.tsSettings switches, custom theme live preview, gradient Accent Pulse, Danger Zone gate for external Agent imports, and the three Background card / library / re-import tests, desktop-chromium + mobile-webkit: 12 passed, 4 skipped (project-specific skips).accent-pulse.e2e.ts,chat-widget-style.e2e.ts,background-download.e2e.ts, desktop-chromium + mobile-webkit: 43 passed, 5 skipped.--primarytook 7 values, the button text, border and icon colour took 1. With the new rules disabled, the same probe saw 8 different colours.prettier --checkon the changed files: clean except a pre-existing issue inglobals.cssaround line 6550 that is also on staging.ec218c4cb.Earlier checks on
4e1df8223:pnpm check: passed.pnpm smoke:ui: 7 passed.pnpm regression:uion desktop-chromium and mobile-webkit foraccent-pulse,afternoon-sweep,assigned-chat-sweep,assigned-sept27,background-download,conversation-background-opacity,game-experience-setup,multiplayer-controls,multiplayer-guest-isolation,roleplay-vn,topbar-accessibility,ux-feedback-sweep,chat-widget-style,ios-export-saveandchat-position: 256 passed, 18 skipped, 4 failed under 3 workers. All 4 passed when rerun serially. One of them ("Roleplay omits Reply…") failed once more and then passed 4 of 4 with--repeat-each=2; it times out waiting for the chat composer before Settings opens.core-flows.e2e.tscases that use these controls (Settings switches, theme live preview, Personal Extensions and Danger Zone gates, custom generation parameters, profile import, Updates, Background cards / selection / organization), desktop-chromium and mobile-webkit: passed.Manual verification notes
Check each tab in light and dark mode, on desktop and at phone width:
ENABLE_EXTERNAL_EXTENSIONS=trueand the Danger Zone opt-in): Manually verify Import file / folder, the power and delete icons on list rows, and the editor's Back / Enable / Export / Save / Restore Draft.Follow-ups noticed, not changed here
ImportButtonis a<label>around a hidden input, so keyboard users cannot reach it.--destructiveshows the steady accent on--dangerbuttons (marked with aponytail:comment). A--marinara-danger-*theme hook is the upgrade path.en.jsonkeys are no longer used.Review concerns addressed in
ec218c4cb4e1df8223rewrote is restored exactly as on staging. No other test was edited in this PR.--destructivedefaults to the accent. They now hold the steady accent, the approach used for the Decision warnings and editor shells.Docs changed
docs/appearance/chat-backgrounds.md: the default Roleplay background is set with the pin icon, and a Default label marks it. The star is for favorites. Reset Roleplay default is a button. Tags are removed by clicking the tag while tag editing is open.docs/roleplay/hud-and-trackers.md: Temperature unit is a °C / °F choice.These need a
docs-i18nfollow-up. It has not been opened yet.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.