# RaggieSoft Switchable UI Shell — Portfolio Specification (`Windows` • `Web` • `Mac`) (`llms/llms-studio-adaptive-ui-modes.txt`) > **MANDATORY COLD-START INSTRUCTION FOR ALL RAGGIESOFT APP & WEB SESSIONS**: > Every interactive RaggieSoft application across **both** product families—all **10 RaggieSoft Studio tools** AND all **5 RaggieSoft Consumer apps** (*Book Reader*, *The Listening Room*, *Backstage*, *Launcher*, *StoreTrainer*) across **Windows**, **Web**, and **macOS / Apple**—standardizes on the **RaggieSoft Switchable UI Shell**. Never build raw Win32 text-button top grids or ad-hoc multi-row mobile button bars; wire the shared declarative command table into the platform shell below! > *(Note: Editorial, hub, and marketing web properties such as `raggiesoft.com`, `lore.`, `corporate.`, and `michaelpragsdale.com` remain on the slim single-row site header + `.rs-network-bar`.)* --- ## 1. Architectural Vision: One Declarative Command Table $\rightarrow$ Three Platforms & Three Modes (+ Focus) 1. **Retiring Prototype Button Grids**: - Early `v0.x` prototypes placed rows of wide text `BUTTON` controls across the top of the window (`Project Wizard...`, `New`, `Open...`, `Save`, `Validate`, `Build...`), consuming vertical laptop height and crowding mobile/split-screen layouts. 2. **LibreOffice-Style User Choice (`Per-App` OR `Portfolio/Suite-Wide`, Zero Restart)**: - Different workflows call for different top chrome: engineers love a **Classic Menu + Vector Icon Toolbar**, laptop/keyboard-first users love a **Compact Bar + `Ctrl+K`/`Ctrl+P`/`⌘K` Quick Jump**, and visual authors, readers, and listeners often prefer **Category Tabs** (Compact or Expanded)—plus a one-tap **Focus / Reading Mode** (`F11` / `⌃⌘F`) in media apps. - Every interactive RaggieSoft product supports all **3 live-switchable modes** (+ optional Focus toggle) out of the box, allowing users to apply their choice **to the active app only** OR **across all RaggieSoft Studio / Consumer apps at once** with **zero restart**. 3. **Strict Studio vs. Consumer Tone Separation (`family: "studio" | "consumer"`)**: - Controlled by a single `family` flag on the shell configuration so Consumer apps **never** expose technical jargon (`AMD64`, `ARM64`, `x64`, `Windows 11`, `Registry`, `%LOCALAPPDATA%`, `.7z`, `.vtt`, `WebVTT`, `IPC`, `CDN`, `Flat-File`, `WCAG`, `Section 508`, `localStorage`, or `< / >` code brackets): | UI Element | **A. RaggieSoft Studio (`family: "studio"` — `10` Tools + `raggiesoft.dev/ui-shell`)** | **B. RaggieSoft Consumer Apps (`family: "consumer"` — `5` Apps, Zero Jargon)** | | :--- | :--- | :--- | | **Menu / Trigger** | `View -> User Interface...` (Status Bar: `UI: Workstation ▾`) | `View -> Layout Style...` (Toolbar pill: `Layout ▾`) | | **Mode 1 (`workstation_classic`)** | **Workstation Classic** — *Menu Bar + Grouped Vector Icon Toolbar* | **Classic Toolbar** — *Menus & Icon Buttons* | | **Mode 2 (`fluent_compact`)** | **Fluent Compact** — *Unified Bar + `Ctrl+P` / `⌘K` Command Search + Slim Strip* | **Compact Bar** — *Slim Bar + Quick Search* | | **Mode 3 (`tabbed_ribbon`)** | **Tabbed Ribbon** — *Category Tabs (`42px` Compact / `76px` Expanded)* | **Category Tabs** — *Organized Action Tabs (`Compact` / `Large Buttons`)* | | **Focus Toggle (`focusMode`)** | Optional distraction-free editor/canvas toggle (`F11`) | **Reading / Listening Focus** — *Hides chrome to a subtle hover/tap pill (`F11` / `⌃⌘F`)* | | **Apply Scope Buttons** | `Apply to ` • `Apply to All RaggieSoft Studio Apps` | `Use in ` • `Use Across All RaggieSoft Apps` | --- ## 2. Three Canonical Shared Libraries Across the Portfolio ### Platform 1 — Windows Pure Win32 C++20 (`desktop-apps/studio-shared/include/`) Used by all 10 static `/MT` Win32 C++20 Studio IDEs (`InstallerStudio.exe`, `HelpStudio.exe`, `ShowcaseStudio.exe`, `PublishingStudio.exe`, plus `Document`, `Localization`, `Launcher`, `Audio`, and migrated `Accessibility`/`Training` Studios) and pure Win32 C++20 consumer apps (`StoreTrainer.exe`): - **`RaggieSoftStudioIcons.hpp`** (`raggiesoft::studio::icons`): - Zero-dependency procedural GDI+ multi-DPI vector icon renderer (`16px`, `20px`, `24px`, `32px` at `100%`–`300%` Per-Monitor V2 DPI) that recolors automatically for Dark Mode, Light Mode, and Windows Contrast Themes (`SPI_GETHIGHCONTRAST`). - **Zero Sparkle / Zero AI-Glyph Rule**: Uses crisp geometric domain emblems (`WizardCompass`, `PackageCubeMsi`, `SqlPrism`, `BookOpen`, `AudioWaveform`, `CheckShieldValidate`, `PlayBuild`, `UiLayoutGrid`, etc.)—NEVER `U+2728` sparkles or magic wands! - **`RaggieSoftStudioShell.hpp`** (`raggiesoft::studio::shell`): - Projects `std::vector` into: 1. **`workstation_classic`**: `26px` owner-drawn Dark/Light/HC accessible menu bar (`Alt` mnemonics, arrow navigation, checkmarks, right-aligned shortcut hints) + `36px` vector icon toolbar with split-buttons (`[▶ Build (F5) ▾]`) and inline `COMBOBOX` slots. 2. **`fluent_compact`**: Unified menu bar + instant `Ctrl+P` / `Ctrl+K` Quick Jump command/view filter dialog + `38px` compact strip. 3. **`tabbed_ribbon`**: `30px` category tab bar + user-toggleable `42px` Compact Single-Row or `76px` Expanded Grouped Ribbon (plus optional `Show Menu Bar` toggle). - Also provides reusable **flush `28px` in-pane mini-toolbars** (`MiniToolbarStrip`) and a **`24px` bottom status bar** (`StatusBarStrip`). ### Platform 2 — Web & Hybrid Windows `WebView2` (`raggiesoft-servers/raggiesoft-assets/common/`) Used by interactive web applications (`books.raggiesoft.com`, `music.raggiesoft.com`, `backstage.raggiesoft.com`, `launcher.raggiesoft.com`, `storetrainer.raggiesoft.com`, and the top-level showcase at **`https://raggiesoft.dev/ui-shell`**) AND hybrid Windows `WebView2` desktop apps (`BookReader.exe`, `ListeningRoom.exe`, `Backstage.exe`, `RaggieSoftLauncher.exe`): - **`common/css/raggiesoft-ui-shell.css`** & **`common/js/raggiesoft-ui-shell.js`**: - Framework-agnostic Custom Element (``) + imperative `window.RaggieSoftUiShell` controller (works identically in PHP, Svelte 5, React 19, Vue 3, Lit 3, SolidJS, Alpine.js, Angular, and offline `https://*.raggiesoft.app` `WebView2` hosts). - Mounts cleanly beneath `