Skip to content

armgit / mso

Public Imported from GitHub
0

Browser-based graphical shell and control plane for a Linux server you own — real terminal, file manager, live metrics and BYOK AI in one mobile-first workspace. Next.js 16 · React 19 · node-pty · Tailwind v4 · shadcn/ui. Public alpha, self-hosted.

fix(ui): theme native scrollbars across the MSO shell

Rahmande77a94fa740
diff --git a/app/globals.css b/app/globals.css
index edcc5754..7145c6e8 100644
--- a/app/globals.css
+++ b/app/globals.css
@@ -7,6 +7,7 @@
/* ── os-rr design tokens (light / aqua default) ─────────────────────── */
:root {
+ color-scheme: light;
/* Chrome typeface tokens. NOTE the mono token is --font-mono-ui, NOT
--font-mono: the @theme inline block maps Tailwind's --font-mono to it —
naming both the same created a self-referential var() cycle that nuked
@@ -124,6 +125,7 @@
}
[data-theme="dark"] {
+ color-scheme: dark;
--text: #f2f2f5;
--text-dim: rgba(242, 242, 245, 0.64);
--text-faint: rgba(242, 242, 245, 0.4);
@@ -206,12 +208,13 @@
states, 10 `border-destructive/*` danger states and 6 `border-ring`. Same trap
applies to `box-border`/`box-content`, hence box-sizing moves in here too. */
@layer base {
- * { box-sizing: border-box; border-color: var(--color-border); }
+ * { box-sizing: border-box; border-color: var(--color-border); scrollbar-width: thin; scrollbar-color: var(--text-dim) transparent; }
+ @media (forced-colors: active) { * { scrollbar-color: auto; } }
}
/* Global :focus-visible fallback — component primitives (Button etc.) own
their own rings; this catches native <a>/<input>, custom tabIndex divs and
anything else without a bespoke focus style. WCAG 2.4.7 (Focus Visible). */
-*:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: 4px; }
+*:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: var(--radius); }
html, body { height: 100%; margin: 0; }
/* Root font-size = browser default × the a11y scale, so every rem reacts live. */
html { font-size: calc(100% * var(--font-scale, 1)); }
diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md
index 084ceee6..b2fbd632 100644
--- a/docs/CHANGELOG.md
+++ b/docs/CHANGELOG.md
@@ -13,6 +13,7 @@ this is the *what*, and it is what Settings → About shows as “What's new”.
**Fixed**
+- `ui` theme native scrollbars across the MSO shell
- `ui` fill MCP Page height and apply MSO branding
- `flows` enforce canonical paths and bounded waits
diff --git a/docs/PROGRESS.md b/docs/PROGRESS.md
index 0455b46b..c4bad964 100644
--- a/docs/PROGRESS.md
+++ b/docs/PROGRESS.md
@@ -1,3 +1,11 @@
+## 2026-09-12 — Native scrollbars follow the active theme
+
+Direct inspection in the owner browser found a white native Settings scrollbar inside
+the dark shell. Global browser color-scheme now follows the existing theme attribute;
+scrollbars use the shared secondary-text token and forced-colors keeps system rendering.
+The global focus fallback also derives its corner radius from the selected preset.
+Release browser journeys check light/dark native controls and forced-colors behavior.
+
## 2026-09-12 — Reviewed project previews, responsive workspace and durable session recovery
The owner reported empty Sessions and insufficient embedded UI improvement. Live diagnosis
diff --git a/scripts/e2e/release.mjs b/scripts/e2e/release.mjs
index ba4fdcca..e5feb34a 100644
--- a/scripts/e2e/release.mjs
+++ b/scripts/e2e/release.mjs
@@ -55,6 +55,14 @@ try {
return badge && heading ? badge.y + badge.height <= heading.y : false;
}).toBe(true);
}
+ for (const theme of ["dark", "light"]) {
+ await page.evaluate(theme => {document.documentElement.dataset.theme=theme}, theme);
+ expect(await page.locator("body").evaluate(el => getComputedStyle(el).colorScheme)).toBe(theme);
+ expect(await page.locator("body").evaluate(el => getComputedStyle(el).scrollbarWidth)).toBe("thin");
+ }
+ await page.emulateMedia({forcedColors:"active"});
+ expect(await page.locator("body").evaluate(el => getComputedStyle(el).scrollbarColor)).toBe("auto");
+ await page.emulateMedia({forcedColors:"none"});
await mcpPublicJourney(page);
await settingsAccessibilityJourney(page, fixture.base);
expect(errors).toEqual([]);