Skip to content

Style "Glass": a third look next to Classic dark and light - #205

Merged
UniqueDroid merged 2 commits into
mainfrom
feat/glass-style
Nov 24, 2026
Merged

UniqueDroid merged 2 commits into
mainfrom
feat/glass-style

Conversation

@UniqueDroid

Copy link
Copy Markdown
Owner

What

A third appearance style, Glass, selectable under System → Appearance → Style (for everyone) and under My ShareOS → Appearance (per user, "Same as for everyone" by default).

Glass changes only the material, not the elements: sizes, paddings, corners and layout are the same as Classic. Panes become translucent and blurred over a soft aurora background, in a mid-tone dark (slate #161e2d) and a mid-tone light (mist #cdd7e4) – neither black nor white. Classic is untouched: all rules are scoped under .sos.glass.

How

  • shareos.css, desktop.css: a .sos.glass block at the end. In this style --bg is the well inside a pane (inputs, log boxes, icon wells), --ground is the page and --ink the text on accent fills, so the existing rules turn into glass without touching them. The eight accents are raised (dark) / deepened (light) where needed so small accent text keeps 4.5:1 on the panes. Scanlines are hidden in Glass (the option too).
  • applyTheme() adds glass to #app; body/theme-color use --ground.
  • RPC: shareos.ui get/set and shareos.me ui_set/get carry style (classic | glass, invalid values refused). UCI shareos.ui.style, accounts.<user>.style.
  • Apps: style in the app URL and the theme message; the SDK sets data-style on <html> and passes it on in openApp; /_shareos/theme.css has a glass variant (transparent page when embedded, so the ShareOS window pane shows through).
  • i18n: STYLE, Glass and one note, in all nine languages.
  • Design reference: the "ShareOS Frosted Glass" design system (tokens, components, contrast notes).

Tests

  • node tests/ui-desktop.js – 72 passed
  • node tests/sdk-storage.js – 23 passed (new: data-style, style passed on by openApp)
  • python3 tests/check-i18n.py, node tests/check-i18n-coverage.js, tests/check-acl.py, tests/check-ucode-order.py, tests/static-analysis.sh – OK
  • Checked by hand against tests/mock-ubus.py in Chromium: classic view, desktop view and login page in Glass dark/light and several accents; switching back to Classic.
  • Not run here: tests/test-users.sh and tests/run-stack-qemu.sh (ARM emulator) – new checks for the style are added to both; the ucode changes are only checked by review.

Generated by Claude Code

System -> Appearance -> Style (classic | glass), for everyone and per user
(UCI shareos.ui.style, accounts.<user>.style). Glass keeps every element,
size and corner of Classic and only changes the material: translucent,
blurred panes over a soft aurora ground, slate dark and misty light, the
eight accents raised where needed for 4.5:1 small text.

- shareos.css / desktop.css: .sos.glass block (classic and desktop view,
  login page); --bg becomes the well inside a pane, --ground the page,
  --ink the text on accent fills; scanlines hidden
- rpc: shareos.ui get/set and shareos.me ui_set/get carry style
- web: STYLE_NAMES, style select (admin and My ShareOS), sent to apps
- app SDK: data-style on <html>, style in openApp; theme.css glass variant
- i18n: STYLE, Glass, note (all languages); tests and docs

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Sb3gazLTPfH4Nby6XNnraD
The Glass entry stood under a new 'Unreleased' heading; the open release
section is 0.3.0-beta.17, which goes into the release text. On the device
info page (#204) the report, the loading note and an error sat directly
under the panel with the buttons – now 16 px apart.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Sb3gb1FHs6DNkZHKinKAJv
@UniqueDroid
UniqueDroid marked this pull request as ready for review November 24, 2026 20:09
@UniqueDroid
UniqueDroid merged commit 627c8e2 into main Nov 24, 2026
7 checks passed
@UniqueDroid
UniqueDroid deleted the feat/glass-style branch November 24, 2026 20:10
UniqueDroid pushed a commit that referenced this pull request Nov 24, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Sb3gb1FHs6DNkZHKinKAJv
UniqueDroid pushed a commit that referenced this pull request Nov 24, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Sb3gb1FHs6DNkZHKinKAJv
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.

2 participants