Galaxy Shell / docs
Docs / Interface and features

Window themes

openspec/specs/ui-themes/spec.md · Edit on GitHub ↗

On this page

Window themes

Purpose

Lets the user choose a window theme (Office, Galaxy, Lumen or the experimental Ninja) that decides how the desktop is laid out and how the bars, panels, popups, chat and its dialogs look, as the protected setting uiTheme.

Requirements

Requirement: Only protected settings set the theme

Only the protected settings SHALL set uiTheme (office by default, galaxy, ninja or lumen) through /api/ui-theme, a closed list that the core validates. The window theme glass becomes galaxy: a stored glass MUST read as galaxy, and the route MUST refuse glass as a new value. Full text: section Binding contract (from AGENTS.md).

Scenario: Theme change

  • WHEN the user picks a theme in the protected settings
  • THEN the core validates the id against the closed list and saves it

Scenario: The dock theme is chosen

  • WHEN the user picks Lumen in the protected settings
  • THEN the core saves lumen, the compositor selects the built-in package lumen, and the desktop shows the thin top bar and the dock

Requirement: Each theme has its own wallpaper, and the hand wins

A theme entry SHALL name a default wallpaper effect (skyline in Office, nebula in Galaxy), and the profile SHALL keep the one picked by hand in each theme. A choice through /api/wallpaper-effect MUST write the entry of the active theme only, and a theme change MUST apply that entry, or the default, last and through the same function as the route. A profile wallpaper.png MUST keep replacing the effect in every theme. Full text: section Binding contract (from AGENTS.md).

Scenario: The wallpaper follows the theme

  • WHEN the user changes from Office to Galaxy without a hand-picked wallpaper
  • THEN the wallpaper becomes nebula, and back in Office it is skyline

Scenario: The hand wins

  • WHEN the user picks aurora in Office and changes theme twice
  • THEN Office shows aurora again each time it returns

Scenario: Leaving the black hole

  • WHEN the theme changes from one whose wallpaper is the black hole
  • THEN the sink is released

Scenario: Unknown value

  • WHEN a profile has no value or an unknown one for uiTheme
  • THEN the theme is office

Scenario: A profile that chose Vidro

  • WHEN a profile with uiTheme: "glass" opens
  • THEN it opens in Galaxy and the route refuses glass as a new value

Requirement: Galaxy profile copy is separate

Galaxy SHALL start from its own seed in <profile>/ui-themes/galaxy/. An existing <profile>/ui-themes/glass/ MUST stay on disk, untouched and unused.

Scenario: A profile with a glass folder

  • WHEN the profile opens in Galaxy
  • THEN the old glass folder is unchanged

Requirement: Button radius role token

The theme files SHALL define --radius-button, which the shared button part reads. It MUST be 999 in Galaxy and the value of --radius-control in the other themes, and --radius-control MUST stay a box radius. A capsule keeps a horizontal padding of at least half its height, also beside an icon: --capsule-floor (1 in Galaxy, 0 elsewhere) raises --control-padding-x to it per size. A part whose label can wrap, such as a toggle, uses --radius-control.

Scenario: A long label in Galaxy

  • WHEN a button with a label of 40 characters renders in Galaxy
  • THEN it is a capsule and its content is not clipped

Requirement: Office layout routes are protected

The routes /api/taskbar-window, /api/start-menu, /api/taskbar-pins, /api/task-view, the dock routes of the app-dock spec (among them /api/dock-item-menu) and the panels start-menu, tray-overflow, dock-conversations, app-grid, dock-item-menu and dock-trash-menu MUST NOT be reachable by any agent tool, MCP entry, scheduled turn, generated HTML or isolated plugin panel, and a plugin MUST NOT take these panel ids. Full text: section Binding contract (from AGENTS.md).

Scenario: Plugin asks for an id

  • WHEN a plugin panel tries to take the id start-menu
  • THEN it cannot take it

Scenario: Plugin asks for a dock id

  • WHEN a plugin panel tries to take the id app-grid or dock-trash-menu
  • THEN it cannot take it

Requirement: Recent applications are recorded only by one route

The recent applications of the Start menu SHALL be recorded only by /api/applications/open, with at most 6 entries and no file history. Full text: section The layout.

Scenario: Application opened

  • WHEN an application is opened through /api/applications/open
  • THEN it is recorded as recent, up to 6

Requirement: Only the core chooses the bar height

Only the core SHALL choose the height of the bar (exclusive of its template): 48 px under the Office layout on a compositor that follows it; the Galaxy theme stays at 40 px; the top bar of Ninja is 52 px with exclusive 52. Under the layout app-dock the top bar is 32 px with exclusive 32, and the dock bar is 80 px with exclusive 0 and reserve 80 under intellihide, or exclusive 80 on a compositor without appDockAutohide. Full text: section Binding contract (from AGENTS.md).

Scenario: Theme change to Office

  • WHEN the theme changes to Office
  • THEN the core declares the bottom bar with exclusive 48

Scenario: Theme change to the dock theme

  • WHEN the theme changes to Lumen on a compositor with appDockAutohide
  • THEN the core declares the top bar 32 px high with exclusive 32 and the dock bar 80 px high with exclusive 0 and reserve 80

Scenario: An older compositor

  • WHEN the theme is Lumen and the compositor does not report appDockAutohide
  • THEN the dock bar is declared with exclusive 80 and the dock stays visible

Requirement: Panel openers outside the bars

Besides the bars, only the chat document SHALL open a panel, and only desktop-actions and workspace-menu, and tray-overflow SHALL open only tray-menu (panelOpeners of desktop.cjs), with a window name that a link of the conversation does not have. Full text: section Binding contract (from AGENTS.md).

  • WHEN a link in the conversation tries to open a panel
  • THEN no panel opens

Requirement: Theme without glass

A theme without glass SHALL end the chat lease, the chat regions and the bar glass, and the core SHALL declare the top bar and the protected panels again with no glass. Full text: section Binding contract (from AGENTS.md).

Scenario: Switch to Office

  • WHEN the theme changes to one without glass
  • THEN the chat lease, regions and bar glass end and the declarations are sent again without glass

Requirement: Trust boundaries of the theme

No agent tool, MCP entry, scheduled turn, generated HTML or isolated plugin panel SHALL read or set the theme; /theme.css SHALL take the launch cookie, which generated HTML and plugin frames cannot load. Full text: section Trust boundaries.

Scenario: Agent asks for the theme

  • WHEN an agent tool tries to read or set the theme
  • THEN it has no route to it

Requirement: Protected surfaces keep shape and timing

The approval dialogs, the change review card, the lock page and recovery SHALL keep their shape and timing in every theme, reading only the pinned --protected-* tokens, and a theme file MUST NOT set a --protected-* token. Full text: section The protected surfaces do not follow a theme.

Scenario: Theme sets a pinned token

  • WHEN a theme file sets a --protected-* token
  • THEN ui-themes.test.js refuses it

Requirement: The app dock of Lumen is protected

The panels dock-conversations, app-grid, dock-item-menu and dock-trash-menu, the routes /api/app-dock-region, /api/app-dock-hold, /api/dock-item-menu and /api/dock-trash and the dock of the layout app-dock SHALL belong to the protected bar and the core, and no agent tool, generated HTML or plugin panel SHALL reach them. Full text: section Binding contract (from AGENTS.md).

Scenario: The chat opens the dock panel

  • WHEN the chat document opens app-grid
  • THEN the host refuses it, as for any panel outside panelOpeners

Requirement: New theme needs a file and an entry

Each theme SHALL have one file in vendor/interface/host/ui-themes/<id>.css and one entry in web-shell/core/ui-themes.js, with the required tokens; ui-themes.test.js MUST refuse a file without an entry, an entry without a file or a theme without a required token. Full text: section How to make a new theme.

Scenario: Entry without a file

  • WHEN an entry has no theme file
  • THEN ui-themes.test.js refuses it

Requirement: Theme change during a lock

The POST /api/ui-theme route SHALL take the shell token and a closed list, and MUST refuse a change during a lock. Full text: section How it works.

Scenario: Locked session

  • WHEN the session is locked and a theme change is requested
  • THEN the route refuses it

Requirement: Window button command

/api/taskbar-window SHALL take only the shell token and one typed command (focus, restore or minimize) for one application window of the current state, and MUST refuse it while locked. Full text: section The layout.

Scenario: Locked

  • WHEN the session is locked
  • THEN the window button command is refused

Requirement: Pins are limited and protected

The pinned applications SHALL be the protected list taskbarPins of at most 24 entries of the catalog, shared by the Office taskbar and the dock. An application is pinned only from the Start menu, the application grid or the menu of a dock item, all protected, through /api/taskbar-pins. Full text: section The layout.

Scenario: Pinning

  • WHEN the user pins an application from the Start menu, the application grid or the menu of a dock item
  • THEN it joins taskbarPins up to 24 entries

Scenario: Pinning from the dock

  • WHEN the user picks "Fixar no dock" in the menu of a running application of the dock
  • THEN it joins taskbarPins and shows in the dock and in the Office taskbar

Requirement: Start button mark

The Start button SHALL hold the product's own filled mark and MUST NOT hold the logo of another system. Full text: section The layout.

Scenario: Start button drawn

  • WHEN the Start button is rendered
  • THEN it shows the own filled mark

Requirement: Compositor bridge is host only

The bar material bridge SHALL be host only: values are clamped (blur 0 to 72 px, refraction and rim intensity 0 to 1), /api/desktop-bar-material sends bar_material only with capabilities.barMaterial, and generated HTML, agent tools and isolated plugin panels receive no bridge. Full text: section CSS bridge to the compositor.

Scenario: Out of range

  • WHEN a malformed or out-of-range value is requested
  • THEN the host clamps it and the core and compositor reject it independently

Requirement: Bridge needs a registered unlocked host

The compositor SHALL require the registered host control connection and an unlocked session for bar_material, and no renderer SHALL receive generic shader or compositor commands. Full text: section CSS bridge to the compositor.

Scenario: Locked session

  • WHEN the session is locked
  • THEN the compositor does not accept bar_material

Status

Doc status: current contract. Office layout updated 2026-11-10; the entry radii and the pinned tokens of the protected surfaces added 2026-11-11. glass became galaxy with its shape values 2026-11-12. The experimental ninja (web side, theme-packs step 5a) added 2026-11-13. The lumen (a top bar and an app dock, dock-theme phase 2) added 2026-11-15 as experimental, accepted by the owner and no longer experimental 2026-11-16. Checked 2026-11-16.

Introduction

Status: delivered on 2026-11-06. The user asked: "quero que a gente possa selecionar um tema de janela, aí separe o tema glass e ponha um default mais básico, quero fazer temas diferentes".

A window theme decides how the desktop is put together, its layout, and the look of the surfaces of the system: the bars, the panels, the popups, the chat and its dialogs. It is the protected setting uiTheme, which the user chooses in the protected settings (Aparência, Tema de janela). This is not the effect theme of the compositor (openspec/specs/themes/spec.md, active-theme.json, create_theme), which holds shaders, and not the profile color (openspec/specs/color-palette/spec.md), which holds tones and works in every window theme.

The themes

Id Name Look
office Office, the default One full-width taskbar of 48 px at the bottom and no top bar, after the Windows 10-style picture of the owner (positioning only): Start, the search box, the Task View, the chat and the applications from the left edge; the compact metrics, the arrow of the hidden tray icons, the system button, the clock and the bell at the end. Flat opaque surfaces with a border and no shadow, following the light or dark mode; only the taskbar and the Start menu are translucent, over the blur of the compositor.
galaxy Galaxy The top bar and the centered pill at the bottom, with the translucent surfaces over the blur of the compositor (openspec/specs/web-panels/spec.md, openspec/specs/glass-alpha-mask/spec.md), fully rounded: single-line controls are capsules (--radius-button 999), boxes keep box radii, panelRadius 28 and windowRadius 24. It replaces Vidro (id glass) since 2026-11-12.
lumen Lumen A thin top bar of 32 px (the overview at the left, the clock and the bell in the center, the metrics, the tray, the Actions launcher and the quick settings at the right) and an app dock of 80 px at the bottom (the chat, the pinned and running applications with running marks, a separator, the app grid and the trash) that hides while a window covers it and shows at the bottom edge (layout app-dock, intellihide in the compositor). Translucent glass over the blur, panelRadius 20 and windowRadius 14. Its panels dock-conversations, app-grid, dock-item-menu and dock-trash-menu are protected. A right click on an application item opens dock-item-menu above the dock: the application name, its windows, Nova janela, and Fixar no dock or Remover do dock (no Close or Quit). The trash item shows an empty or a full icon, opens the trash in the file manager, takes files dropped on it, and a right click opens dock-trash-menu (Abrir, Esvaziar lixeira after a protected confirmation).

A profile with no value, or with an unknown one, takes office. A stored glass (Vidro) reads as galaxy, so a profile that chose Vidro keeps a glass theme; the route takes only the ids of the closed list and refuses glass as a new value. A profile that had the glass before 2026-11-06, or the earlier id basic, opens in office until the user chooses Galaxy. Galaxy starts from its own profile copy, <profile>/ui-themes/galaxy/; an old <profile>/ui-themes/glass/ stays on disk, untouched and unused.

Profile personalization

Personalization uses an independent copy inside the active profile, with live CSS reload. Distributed theme files remain seeds and are never edited by this flow. When the profile copy of the active theme is refused, the core reports it in uiThemeProfile.error and the protected settings show that sentence under the theme list (#ui-theme-profile-error, plain text) while the last good copy or original.css stays in use.

See profile theme copies; a copy that names an approval dialog, the review card, the lock page or recovery, or puts an image in anything but the three image tokens, is refused like invalid CSS (Static rules there).

How to make a new theme

  1. Add one file to vendor/interface/host/ui-themes/<id>.css. Copy the theme nearest to what you want. It sets tokens only, in @layer shell-ui-theme.
  2. Add one entry to web-shell/core/ui-themes.js: id, name, description, glass, layout, panelRadius and windowRadius. The settings list the entries, so the selector needs no other change.

web-shell/test/ui-themes.test.js refuses a file without an entry, an entry without a file, a theme without one of the required tokens (the materials and shadows, the radius role tokens --radius-tiny, --radius-item, --radius-control, --radius-button, --radius-surface, --radius-sheet, --radius-pill, the padding token --control-padding-x, and the motion tokens --motion-fast, --motion-base, --ease-standard, --motion-zoom, and the id --ui-theme-id), an entry whose panelRadius or windowRadius is not an integer (panelRadius 0 to 64, windowRadius 0 to 32), an entry whose panelRadius differs from --radius-surface of its file, and a theme file that sets a --protected-* token.

A theme chooses:

  • --ui-theme-material: solid or glass. solid sets the class material-solid on each document (host/wallpaper-theme.js), which turns off every rule of a translucent surface, including the light text tones made for the dark veil.
  • glass of the entry: whether the core asks the compositor for the blur.
  • layout of the entry: taskbar, bars or app-dock.
  • panelRadius of the entry, in px: the corner of the glass that the core declares for the protected panels and the top bar. It equals --radius-surface of the theme file (--radius-panel is its alias), so the blur and the surface have the same corner; the core clamps it to 0 to 64 and to half the smaller side of the panel (a fit_content panel clamps against its maximum size, since its height is not known yet). The top bar glass is clamped to 20 px, half of its 40 px strip, whatever panelRadius is. A profile copy that changes --radius-surface changes the surface but not the declared blur radius, which comes from panelRadius of the entry. The injected rule body[data-glass="true"] main of a protected panel reads var(--radius-panel), so it follows the theme sheet.
  • windowRadius of the entry, in px: the corner that the compositor clips application windows to, sent in visual_style (0 to 32; the core clamps and rounds it, so a bad entry cannot make the compositor refuse the whole visual_style). A change of theme sends it again when it differs.
  • The radius role tokens and the motion tokens (--motion-fast, --motion-base, --ease-standard) of the theme file, in @layer shell-ui-theme. Office keeps today's shape (tiny 4, item 8, control 10, surface 16, sheet 20 and pill 999 px), which also stays as the default of host/theme.css (with 120 ms, 180 ms, 300 ms for the zoom); Office motion is 90 ms, 140 ms, cubic-bezier(0.2, 0, 0, 1) and --motion-zoom 200 ms, Galaxy motion is 140 ms, 240 ms, cubic-bezier(0.22, 1, 0.36, 1) and 320 ms; each file names itself in --ui-theme-id (office, galaxy), which the Motion parts read when they mount to choose their preset (motion.md); a missing or unknown id is office; Galaxy is fully rounded (tiny 8, item 16, control 16, button 999, surface 28, sheet 32 px, with --control-padding-x 16 px against 10 px). --radius-button is the role token of single-line controls: the shared button, input, tabs trigger, toggle and select trigger read it, while boxes (popover, select list, textarea, number field) keep --radius-control, and list rows keep the item radius with the 4 px inset of their list. It equals --radius-control outside Galaxy. The protected surfaces never read it: they pin --protected-control-padding-x besides the pinned radii. The other tokens of theme-packs.md arrive with the phase that reads them.
  • The tokens of materials and shadows. A solid theme that changes a token of the solid block of host/theme.css sets it in :root.material-solid, unlayered, after that block (the top bar of office.css). The reduced transparency and forced colors block of host/theme.css wins over a layered value but not over that unlayered one, so an unlayered value must stay opaque.

The protected surfaces do not follow a theme

The approval dialogs, the change review card, the lock page and recovery keep their shape and timing in every theme. They read only the pinned tokens --protected-radius-item, --protected-radius-control, --protected-radius-surface, --protected-radius-sheet, --protected-radius-pill, --protected-motion-fast, --protected-motion-base and --protected-ease-standard, which host/theme.css defines in an unlayered :root block with the values of the base scale (so no layered theme value wins). A theme file never sets one (ui-themes.test.js), and core/css-rules.js refuses a declaration of any --protected-* property in a profile theme.css and in a profile style.css, because a profile copy of a theme is unlayered too. test/protected-surfaces.test.js scans the rules of these surfaces in host.css, lock-screen.css and recovery.css and refuses a reference to --radius-*, --motion-*, --ease-* or --composer-radius. The shared Button inside them is pinned by their own rules, because its Tailwind classes map to the theme radius; the same test reads the sources of the four surfaces and fails when a new shared part, a new Button size or a new ui:rounded-* class that reads a theme token can render inside them without a pinned rule. No token of a theme changes these surfaces. A profile copy can still reach them with a universal or type selector and !important (* { border-radius: 0 !important }), a known gap described in profile-ui-themes.md, Residual risks.

How it works

  • /theme.css serves host/theme.css, then the theme file, the typography and the profile tones. The theme id enters the palette revision, so every document that polls the revision loads the new sheet with no page reload, as for a change of the profile color. The layers are shell-theme, shell-ui-theme and shell-profile, so the profile color wins over the theme.
  • POST /api/ui-theme {theme} takes the shell token and a closed list. The core first sends theme_select_builtin with the id and waits for the compositor to apply the package: a package that fails keeps the old theme whole (nothing saved, sent or declared) and the route answers the error. With no compositor connected, or one that reports no theme operations, there is no package to check and the change goes on. The core also sends the selection of the active uiTheme (a stored glass sends galaxy) at each connection to the compositor, and again after an unlock when the connection came while locked. It then saves the value and sends, in this order, visual_style (the window radius), then:
    • sends chat_alpha_glass from uiTheme and chatBlur, and clears the chat regions when there is no glass. The route of the regions refuses new ones in a theme without glass;
    • clears the bar glass in a theme without glass, of the primary bar and of the bar of each extra output. A report that crossed the change answers accepted: false;
    • declares the top bar and the protected panels again under their tokens (refreshGlass of core/window-declarations.js), and the compositor updates them in place at the next pass.
  • The route refuses a change during a lock, because the declarations wait then. The settings do not show during a lock either.
  • The page attribute data-glass stays what the compositor can do, not what the theme chooses, so a change needs no page reload. The class material-solid decides what the page draws.
  • The chat setting "Vidro do chat" (chatBlur) keeps its value and shows only in a theme with glass.

Applying a change

The core records in each window token the theme of its last declaration. HostWindows.refreshGlass declares again the windows whose record differs, from the route and from each state poll, so a declaration that waited for a lock or crossed the change comes right at the next poll. It never declares a token that the host forgot, and it logs a refusal once and does not try it again. The layered tokens alone do not make the theme Office: the profile color and a wallpaper palette come after that layer, so the theme Office also depends on the class material-solid and on its unlayered block.

The layout

/host-layout answers topBar: false and themeLayout: "taskbar" under the layout taskbar. The Electron host keeps asking and opens or closes the top bar window, so a change needs no login; only themeLayout closes a bar that is open, so a compositor state without the capability does not. The compositor then gives the top strip back to the windows, and the protected panels return to their places above the bottom bar (with_top_bar applies only while a top bar is mapped). The bar page reads uiThemeLayout and sets the classes legacy-indicators and taskbar.

On 2026-11-09 the owner replaced the Windows 11 picture with a Windows 10-style one ("use this as reference instead of win 11 (win 10)", "not for colors, just for positioning ok", and on the CPU and memory figures "keep them but make them more compact"). The bar takes the placement, the order and the anchoring of that picture; the colors, the materials, the radii and the type stay the tokens of the theme:

[Start  Search  Task View  Chat  Apps ...]                    [CPU/Memory  ^  Network Sound  Clock  Notifications]
  • The search box (#taskbar-search, "Pesquisar") opens the protected start-menu panel like the Start button does; the search field of the panel takes the focus at each opening, so the box holds no text of its own and reads no other data.

  • The CPU and memory figures are compact: a small icon and the number in tabular numerals, two to a column at the height of the clock. The handle at their left still chooses how many show, and their own link (a chart icon) opens the protected system-metrics panel, so the bar of this layout shows no "Métricas do sistema" label while the metrics show; with the metrics off in the bar (quick settings), the label comes back as the way to that panel. The Glass top bar keeps that label.

  • The arrow of the tray comes before the tray icons that the user chose to keep visible (none by default, openspec/specs/system-tray/spec.md).

  • History: from 2026-11-06 to 2026-11-09 the bar followed a Windows 11 picture ("Essa é a referência, verifique o que vamos mudar", "Sim, pode seguir"), with nothing on the left of the primary bar and Start, the chat, the Task View and the applications centered.

  • The height follows the declaration. Under the layout taskbar the core declares the bottom bar with exclusive 48, and the compositor takes the strip of a bar from its exclusive (layers::bar_height, desktop_strips), on an extra output too. A change of theme declares the same token again and the strip follows at the next pass. A compositor from before keeps its 40 px strip, and the bar follows its window (min(var(--desktop-bar-height), 100vh)), so this needs no capability. The Glass theme stays at 40 px.

  • The left side stays in the document, hidden, because host.js reads the tabs and the controls. What was there moved to the overview, which the Task View button opens and closes like Super+S (/api/task-view): the header has "Novo workspace" and "Ações e atalhos", and a right click on a card opens the workspace menu. openspec/specs/contextual-actions/spec.md requires a visible counterpart of each shortcut, and that is where it is now. A panel is not drawn over the overview, so the host closes the overview first.

  • The chat button keeps its place with no floating chat, disabled, as during the overview, so the buttons after it do not move under the pointer.

  • The Start button holds our own filled mark, never the logo of another system.

  • The pinned applications and the open windows share one row. A pinned application with no window shows a launcher, with no mark under it; when it opens its window takes the place. A pin whose application runs on another workspace keeps the mark, and a click goes to that workspace instead of opening a second instance. The pins are the protected list taskbarPins of the state, of at most 24 entries of the catalog.

  • The metrics appear before the tray on the right of the Office bar. Network and sound open quick settings, followed by the clock and a visible notification bell. The user requested this ordering on 2026-11-06. Metrics also remain in quick settings (taskbarMetrics of /api/quick-settings).

  • The tray icons sit behind the arrow, which shows only with an item, in the protected panel tray-overflow (openspec/specs/system-tray/spec.md). A right click there opens the protected tray-menu.

The Start button and the search box open the protected panel start-menu, after the same picture: a thin rail at the left with a menu button at the top (it shows the labels of the rail over the list) and the user and the power menu at the bottom; the search at the top; Todos os apps, the whole catalog in alphabetical order under letter headers (# for a digit or a symbol), with the pin button of each row; and the pins in the named group Fixados to the right of the list, as square tiles. A search shows only its results, over the whole width. The layout has no Recomendados, which the picture does not have: /api/start-menu still answers the recently opened applications (/api/applications/open records them, at most 6, with no file history), and the page does not show them. A window button calls /api/taskbar-window with focus, restore or minimize, one typed command for one application window of the current state, refused while locked. It is the same user path as a click on the window: no agent limit applies, and the route takes only the shell token.

The protected panels anchored at the bottom keep a margin of 12 px from the bar and from the edge of the output. Under the layout taskbar the Start menu opens at the bottom left, above the Start button (panelDeclaration of core/web-panels.cjs moves only the default bottom anchor, so another value of the profile keeps its place, and the Glass theme is untouched). barHasGlass of core/ui-themes.js keeps the blur behind the primary taskbar, and --material-taskbar of office.css is its only translucent token, opaque under reduced transparency and forced colors. The bar uses it only while the compositor draws the blur (data-bar-glass); the bar of an extra output has no blur (W10), so it keeps the opaque material.

Trust boundaries

Only the protected settings reach the route. No agent tool, MCP entry, scheduled turn, generated HTML or isolated plugin panel reads or sets the theme. The same holds for /api/taskbar-pins, /api/start-menu and /api/task-view, which take the shell token, and the panels start-menu, tray-overflow, dock-conversations, app-grid, dock-item-menu and dock-trash-menu, whose ids a plugin cannot take. /api/dock-item-menu takes the shell token and one typed application id and output; the panel dock-item-menu reads it back and looks the application up in the state and the catalog, and takes no application from its URL. /api/dock-trash takes the shell token and typed actions, answers only the empty flag and the count, and cannot empty the trash without the confirm event of the protected host dialog (openspec/changes/archive/2026-11-16-dock-theme/specs/desktop-trash/spec.md). /api/start-menu answers the display name of the system user, only to these protected pages; the catalog and the name stay out of the logs. Outside the bars, only the chat document can open a panel, and only desktop-actions and workspace-menu, and tray-overflow only tray-menu (panelOpeners of desktop.cjs), with a window name that only the code of the host passes, so a link in the conversation opens no panel. A plugin panel keeps its own glass of web-panels.json in every theme. The approval dialogs, the change review card and the lock screen keep their fixed colors in every theme; the only material token that they read is the shadow, below. Since 2026-11-10 /theme.css takes the launch cookie, because it carries the profile copy of the theme and the palette, as do /web-panel-assets/<id>/... and the overlay routes /shadcn-host.js and /chat-host.css; checkout code assets take none (openspec/changes/audit-2026-11-10/design.md, F6). Generated HTML and plugin frames cannot load it.

Known limits

  • The window buttons show the application windows of the workspace on that bar, in the order they opened, so a button stays under the pointer when its window takes the focus. There is no preview on hover and no grouping. The native tooltip tells two windows of one application apart. An application is pinned only from the Start menu, not from its button on the bar.
  • With no room the end of the bar keeps its controls, and the window buttons scroll. The wheel over a full row of window buttons scrolls it instead of changing the workspace, and the focused window scrolls into view. There is no overflow menu.
  • A workspace tab shows only its number, so its close button stays hidden: a workspace is archived from the overview.
  • With no room the search box gives its width first, down to its icon, and then the window buttons scroll.
  • The search box opens the Start menu and takes no keys itself: the first key goes to the search field of the panel once it shows.
  • A panel is not drawn over the overview, as in the glass theme: a click on Start or on the clock during the overview shows nothing until the overview closes, and Escape closes both.
  • The panel of the tray icons has a fixed margin from the end of the output, so a wider clock leaves it a little away from the arrow.
  • The wheel over the bar still changes the workspace, as the hint in Ações e atalhos says, with only the number on the Task View button to show it.
  • On a compositor from before the 48 px, the panels float 20 px above the 40 px bar until both update.
  • The metrics in the quick settings are read-only: a click does not open the system monitor.
  • The bar of an extra output has the material of the primary bar (since 2026-11-10): translucent (--material-taskbar) over the blur of the compositor while the compositor has its pill (capabilities.outputBarGlass, data-bar-glass="true"), and opaque otherwise, as the primary bar (web panels, The bar of an extra output).
  • The bar of an extra output follows the order of the primary bar from the left edge (since 2026-11-10, the owner: "second monitor need some love as well"): its workspace numbers and the new conversation button where the Task View sits, then the chat and the applications of that output, because the overview exists only on the primary output and is no way to choose what that output shows. It ends with the controls of its monitor (layout, organize, Ações) and a plain clock, the time over the date, with no button. The Start menu, the notifications, the tray and the metrics stay on the primary output, where their panels open. On a square tab the monitor badge of a workspace is a corner mark, as the number on the Task View button. The bar of a monitor gives no badge to the workspace that only its own monitor shows (since 2026-11-10, the owner asked what the small 2 over the 2 was and chose to hide it), because the badge would name the monitor under the bar. The same holds for a shared workspace whose badge number is that monitor (since 2026-11-10, after the live check showed the 2 on workspace 1 shared by both monitors); a badge that names another monitor stays. Each bar marks the window that its own monitor shows (since 2026-11-10, the owner: "no monitor primario o chrome tá aberto mas tá sinalizando o claude", then "deveria estar mostrando selecionado os dois apps abertos, cada um em um monitor"): on the monitor with the keyboard the focused window, on another monitor the window that covers the most of it, the one over its center first (taskbarShownWindow in host/workspace-zoom.js, from the screen rectangles of the host snapshot). The click keeps the keyboard focus as before: on the focused window it minimizes, on a window that another monitor marks it focuses that window.
  • The overview of the theme Office is an opaque page. The bars do not sit under it, so the wallpaper shows in their strips. The glass theme has a milder form of this, because its veil does not cover the strips either.
  • The frames of the application windows do not change with the theme: they stay set_window_style and visual_style (docs/smithay-development.md).
  • The approval dialogs and the change review card keep their fixed colors and border in both themes, but they lose --shadow-overlay and --shadow-surface in the theme Office, which has no shadows, as they do in the solid block of host/theme.css.
  • The proof of this feature is nested (docs/nested-qa.md): one and two outputs, a synthetic tray item and no real provider or physical monitor.

CSS bridge to the compositor

The protected primary bottom bar reads these computed properties from its own #conversation-bar element on each desktop state poll:

:root {
  --compositor-blur: 72px;
  --compositor-refraction: 0;
  --compositor-rim-intensity: 0;
}

Blur accepts 0 to 72 px (0 disables the backdrop), and refraction and rim intensity accept numbers from 0 to 1. The host clamps values and uses legacy defaults for invalid syntax. The core and compositor independently reject malformed or out-of-range requests. A trusted class on the bar can override inherited theme values. Office uses 72px/0/0; Glass uses 72px/1/1. Transparency remains CSS. Changes apply on the next desktop poll, without reloading the document or restarting the session. Material changes invalidate the GPU cache even with a stationary backdrop.

The host-only /api/desktop-bar-material route sends bar_material only with capabilities.barMaterial. The compositor requires the registered host control connection and an unlocked session. Old hosts keep the legacy material; new hosts on old compositors keep the old behavior without sending an unknown command. Generated HTML, agent tools and isolated plugin panels receive no bridge. This version covers the primary bottom bar; secondary bars, chat, top bar and panels keep their existing material paths. No renderer receives generic shader or compositor commands. Deployment requires one initial compositor restart; subsequent edits of these CSS properties do not.

Binding contract (from AGENTS.md)

This section holds, word for word, the rule that AGENTS.md kept for this feature until 2026-11-10, when AGENTS.md was reduced to the short invariants (openspec/changes/audit-2026-11-10/design.md, F10). It binds exactly as AGENTS.md does; AGENTS.md keeps the short invariant and points here. Change both in the same commit.

On 2026-11-06 the user asked to select a window theme, with the glass as one separate theme and a more basic default ("quero que a gente possa selecionar um tema de janela, aí separe o tema glass e ponha um default mais básico, quero fazer temas diferentes"). The protected setting uiTheme holds it (basic by default, or glass; glass became galaxy on 2026-11-12, see below); a theme is one token file in host/ui-themes/ and one entry in core/ui-themes.js. This limits the rule of 2026-11-03: every panel in glass is now the glass theme (today galaxy), and the rest of that rule (one style, design tokens) stays. See openspec/specs/ui-themes/spec.md.

Later on 2026-11-06 the user said that the theme is more than the surfaces, renamed the basic theme to Office and asked for one bar at the bottom and none at the top, in the manner of Windows 11 ("a dock embaixo, nenhuma dock em cima", "Pode ser o Windows 11"). A theme has a layout, Office is the default with a taskbar, a Start menu and one button per window, and the glass keeps its two bars. Later that day the user gave a Windows 11 picture as the reference ("Essa é a referência, verifique o que vamos mudar"): a 48 px bar with Start, the chat, the Task View and the pinned and open applications centered and nothing on the left; the workspaces, the layout and the actions live in the overview on the primary output. On 2026-11-09 the owner replaced the Windows 11 picture with a Windows 10-style one, for positioning only and not for colors ("use this as reference instead of win 11 (win 10)", "not for colors, just for positioning ok"): Start, a search box, the Task View, the chat and the applications from the left edge, the CPU and memory figures kept and made more compact ("keep them but make them more compact"), and the Start menu at the bottom left with a thin rail, the alphabetical list and the pins as tiles. See openspec/specs/ui-themes/spec.md.

  • Window theme (openspec/specs/ui-themes/spec.md): only the protected settings set the protected setting uiTheme (office by default, galaxy, ninja or lumen, with an ambiance of Ninja's closed list) through /api/ui-theme, a closed list that the core validates; a stored glass (Vidro) reads as galaxy and the route refuses glass as a new value. Lumen (no longer experimental since 2026-11-16): its app dock, the panels dock-conversations, app-grid, dock-item-menu and dock-trash-menu and the routes /api/app-dock-region, /api/app-dock-hold, /api/dock-item-menu and /api/dock-trash are protected like the Office taskbar routes. Ninja is experimental (Settings says so); its fixed palette takes the profile color as its main accent. Under the layout of Office the protected bar calls /api/taskbar-window (focus, restore or minimize of one application window) and the protected start-menu panel opens catalog applications and sets the pins (/api/start-menu, /api/taskbar-pins, with the recent applications recorded only by /api/applications/open), the Task View button calls /api/task-view, and the protected tray-overflow panel shows the tray icons; no agent tool, MCP entry, scheduled turn, generated HTML or isolated plugin panel reaches them, and a plugin cannot take these panel ids. Only the core chooses the height of the bar (exclusive of its template): 48 px under this layout, on a compositor that follows it. Besides the bars, only the chat document opens a panel, and only desktop-actions and workspace-menu, and tray-overflow only tray-menu (panelOpeners of desktop.cjs), with a window name that a link of the conversation does not have. No agent tool, MCP entry, scheduled turn, generated HTML or plugin panel reaches it. A theme without glass ends the chat lease and regions and the bar glass, and the core declares the top bar and the protected panels again with no glass; the glass rules below apply in the galaxy theme.

On 2026-11-13 the wallpaper became part of the theme (openspec/changes/theme-packs/design.md, phase 4): the entry field wallpaper is the default wallpaperEffect of the theme, wallpaperByTheme keeps the effect that the user picked in each theme, a choice through /api/wallpaper-effect writes the entry of the active theme, and the change of theme applies the entry (or the default) last, through the same function as the route. The ids and effects are read with own-property checks against closed lists. A saved wallpaperEffect migrates once into the entry of the current theme, and the key stays with the last hand-picked value for a rollback. A profile wallpaper.png still replaces the effect in every theme. The state response keeps wallpaperEffect as the effect now in force.

On 2026-11-12 the window theme glass (Vidro) became Galaxy (openspec/changes/theme-packs/design.md, phase 1): id galaxy, fully rounded, with panelRadius 28, windowRadius 24 and the role token --radius-button (999 in Galaxy, --radius-control elsewhere) that single-line controls read. Galaxy starts from its own profile copy; an old glass folder stays on disk, untouched and unused.