feat(studio): refine Play workspace and project preferences (WRK-001D)
This commit is contained in:
@@ -22,9 +22,21 @@ development gallery** demonstrates components, validation, progress, both fonts
|
||||
configurable text scale. Gallery actions operate on sample text only.
|
||||
|
||||
The product project chooser contains identity, the project list and project
|
||||
commands only. It inherits presentation settings; language, theme, typeface and
|
||||
scale selectors remain in the project window. From the repository root, an
|
||||
unqualified `run` starts the product and skips the foundation demo. Launch the
|
||||
commands and access to **Prometeu Studio > Preferences**. The brand appears only in
|
||||
that menu, without a second identity block in the chooser. It inherits presentation settings;
|
||||
appearance selectors and the default runtime live in that separate dialog.
|
||||
**Project > Settings** contains a nullable runtime override and save media choices.
|
||||
The project shell places global Play/Stop and Pause/Resume controls on the right above a Gameplay
|
||||
tab, alongside the left-aligned Prometeu Studio menu and golden-square mark. A small
|
||||
project header and equally sized contextual footer frame the workspace. The product
|
||||
workspace is plain, with balanced top/bottom margins; the standalone foundation
|
||||
keeps its decorative panel. Native tabs
|
||||
use stepped upper corners, an open flat base and Studio theme colors; Gameplay supplies scale information to the
|
||||
footer and owns automatic/manual image scaling, not execution lifetime. From the repository root, an
|
||||
unqualified `run` starts the product and skips the foundation demo. The gold tab
|
||||
outline encloses the content; Gameplay splits game and logs with a draggable
|
||||
horizontal divider. Automatic scale follows this resize, while manual scale stays
|
||||
fixed. Header/footer remain outside the split. Launch the
|
||||
foundation with the explicit module command above (or from that module directory).
|
||||
|
||||
```sh
|
||||
@@ -61,7 +73,7 @@ Semantic theme colors are in `styles/dark.css` and `styles/light.css`. Component
|
||||
|
||||
`UserSettingsStore` uses the Java Preferences node `p/studio/ui/javafx2` for theme, language, bundled typeface and text scale (75–200%). Startup uses dark, Departure Mono and 100%; a supported system locale chooses pt-BR, otherwise English. Invalid individual values fall back independently with diagnostics.
|
||||
|
||||
Load preferences and font/bundle resources before composing views. `SettingsPersistence` debounces writes on its worker, flushes the last choice asynchronously on close, and shuts the worker down. It never writes from the FX thread. Project-window geometry is restored per project through `WindowStateStore`, with IO off the FX thread. Previous frontend presentation preferences are not migrated.
|
||||
Load preferences and font/bundle resources before composing views. `SettingsPersistence` debounces writes on its worker, flushes the last choice asynchronously on close, and shuts the worker down. It never writes from the FX thread. `WindowStateStore` persists launcher and per-project normal geometry plus maximization. Geometry snapshots are stabilized on FX and written serially off FX, with orderly close awaiting pending writes. Placement considers the matching monitor and recovers onto an available display. Previous frontend presentation preferences are not migrated.
|
||||
|
||||
All interface messages live in UTF-8 `messages_en.properties` and `messages_pt_BR.properties`. Missing translations diagnose and fall back to English; an absent English key displays `[key]`. Bundle parity is checked by unit tests. Dynamic feedback retains its key/arguments and is reformatted on locale changes; user-authored text retains its value.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user