Skip to content

feat(user_setting): the scene style chosen in the scene menu starts every new scene - #623

Open
BotellaA wants to merge 2 commits into
nextfrom
feat/user_settings
Open

BotellaA wants to merge 2 commits into
nextfrom
feat/user_settings

Conversation

@BotellaA

@BotellaA BotellaA commented Dec 2, 2026

Copy link
Copy Markdown
Member

Summary

The scene menu (right-click on the viewer background) now saves the user's choice as a user setting (sceneStyle, see user_setting.ts). Each new instance and each reset scene starts with it.

  • useSceneStylePreference() (app/composables/scene_style_preference.ts) holds a partial scene style. It is empty until the first choice, and the app default fills the missing values.
  • getDefaultSceneStyle(): the user's choice > ogwFront.sceneColors > the OGW constants. Its existing callers pick up the user's choice with no change: the initial state, the reset after a project is closed, the local renderer background, and an old project saved without a sceneStyle.
  • The 4 menu setters save the preference. applySceneStyle and importSceneStyle don't, so a loaded project still shows its own scene style and never changes the user's.
  • afterViewerReset also sends the font and the orientation widget. It sends the widget only when the viewer draws it; with the overlay, the front draws it.

Stack (same branch feat/user_settings): Front → Vease (PiP windows geometry as user settings).

Test plan

  • Unit tests:
    • the default scene style (the user's choice wins and is copied);
    • the preference schema;
    • the menu setters save the preference, a project import/apply does not, and an old project gets the user's style;
    • the reset sends the whole style (background, text, font, widget, with or without the overlay).
  • Manual (desktop): pick a background, font and compass, then relaunch: they come back. Open a project with other colors: the project's colors win.

🤖 Generated with Claude Code

…very new scene

The background color, text style and orientation widget picked in the scene menu are kept as a
user setting. A new instance or a reset scene starts with them; a loaded project still shows its
own scene style and never changes the user's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant