Skip to content

Studio: choose where the background image shows (new chat page, chats, or all pages) - #16297

Merged
shimmyshimmer merged 5 commits into
mainfrom
studio-chat-bg-show-on
Nov 1, 2026
Merged

shimmyshimmer merged 5 commits into
mainfrom
studio-chat-bg-show-on

Conversation

@shimmyshimmer

Copy link
Copy Markdown
Member

Summary

Adds a Show on choice to Settings > Appearance > Background image, so the background can be limited to the new chat page or shown everywhere:

Show on New chat page Open conversation Other pages (Library, Hub, ...)
New chat page yes no no
Chats (default) yes yes no
All pages yes yes yes
  • "Chats" is today's behaviour and stays the default, so nobody's background changes on update. Saved backgrounds without the field load as "Chats".
  • With "New chat page", the background goes away as soon as the chat has messages. The new chat welcome marks itself on screen (useMarkChatWelcome), and the app-level mount only shows the wallpaper while it is.
  • The settings preview follows the choice: the Conversation preview shows no background on "New chat page".
  • "All pages" uses the existing non-chat wallpaper styles that BACKGROUND_ON_ALL_PAGES used to gate behind a constant; the constant is gone.
  • Labels in every locale.

Stacked on #16287 (the background fit, position and outline changes), which this builds on.

Verification

  • npm run typecheck, npm run i18n:check:strict, npm test, npm run build
  • tests/chat-background.test.ts covers the scope default and repair of bad stored values.
  • In a local Studio build: checked the wallpaper on a new chat, an open conversation and the Library for each of the three choices (9 combinations, all as in the table).

…ser setting in Appearance, audio and library polish

- Background image: Fit width / Fit height sizing, horizontal and vertical
  position sliders, and the composer outline as a 0-100% strength slider
  (default 30%, stronger than the old border line; saved on/off migrate).
- Move "Composer at the bottom" from Settings > Chat to Appearance.
- Settings > API and the API page quick start drop the Training chip; it
  only appears while the Train page's API button has that example open.
- Library Chats / Archived grid view: no rule under the date headings.
- Audio: Transcribe matches Generate (accent button, outline Stop), and
  the hint line under both keeps its space so the button does not jump.
- Chat dictation: 48 rounded bars that grow in height, a fading left edge
  and a pulsing recording dot.
- Images: the empty output panel uses the Images tab icon.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-31T13:54:10.541292Z bdbc762 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🚀

Reviewed commit: bdbc762496

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Base automatically changed from studio-appearance-polish-batch to main November 1, 2026 09:42
# Conflicts:
#	studio/frontend/src/components/assistant-ui/chat-dictation-bar.tsx
#	studio/frontend/src/features/audio/pages/tts-workspace.tsx
#	studio/frontend/src/features/chat-background/controls.tsx
#	studio/frontend/src/features/chat-background/model.ts
#	studio/frontend/src/i18n/locales/ar.ts
#	studio/frontend/src/i18n/locales/cs.ts
#	studio/frontend/src/i18n/locales/de.ts
#	studio/frontend/src/i18n/locales/en.ts
#	studio/frontend/src/i18n/locales/es-419.ts
#	studio/frontend/src/i18n/locales/es.ts
#	studio/frontend/src/i18n/locales/fa.ts
#	studio/frontend/src/i18n/locales/fr.ts
#	studio/frontend/src/i18n/locales/he.ts
#	studio/frontend/src/i18n/locales/hi.ts
#	studio/frontend/src/i18n/locales/id.ts
#	studio/frontend/src/i18n/locales/it.ts
#	studio/frontend/src/i18n/locales/ja.ts
#	studio/frontend/src/i18n/locales/ko.ts
#	studio/frontend/src/i18n/locales/nl.ts
#	studio/frontend/src/i18n/locales/pl.ts
#	studio/frontend/src/i18n/locales/pt-br.ts
#	studio/frontend/src/i18n/locales/ru.ts
#	studio/frontend/src/i18n/locales/sv.ts
#	studio/frontend/src/i18n/locales/th.ts
#	studio/frontend/src/i18n/locales/tr.ts
#	studio/frontend/src/i18n/locales/uk.ts
#	studio/frontend/src/i18n/locales/vi.ts
#	studio/frontend/src/i18n/locales/zh-CN.ts
#	studio/frontend/src/i18n/locales/zh-TW.ts
#	studio/frontend/tests/chat-background.test.ts
#	studio/frontend/tests/training-api-snippets.test.ts
@shimmyshimmer
shimmyshimmer merged commit 576951b into main Nov 1, 2026
@shimmyshimmer
shimmyshimmer deleted the studio-chat-bg-show-on branch November 1, 2026 10:14
shimmyshimmer added a commit that referenced this pull request Nov 1, 2026
…t a background image, and drop the Classic and Minimal themes (#16333)

## What changed

A new **Glass theme** section in Settings > Appearance, just above
Background image, turns the sidebar, composer, Run settings panel and
(optionally) menus into translucent glass. Its switch sits in the
section heading; the options appear only while it is on:

- **Style**: Transparent, Frosted, Blurred, Liquid Glass (a nearly clear
pane with a thin lit rim and a sheen) or Liquid Glass 3D (the same pane
with a faint lit bevel, light pooling inside the edges and glass bead
controls; the default). The switch remembers the last style.
- **Glass strength** (0 to 100%, kept separately for light and dark
mode, 40% light and 15% dark by default): blur from a fifth to twice
each style's own, and every pane's opacity from about a third to nearly
solid. It applies last, after the readability floor below, so it always
shows.
- **Glass menus** (on by default): dropdowns, selects, context menus,
popovers, tooltips, toasts, hover cards and dialogs (Settings, search)
take the glass too, always with some blur and a heavier tint so their
text stays readable.

The Theme dropdown also lists **Glass** right under Standard, a submenu
with every style on top of whichever colour theme is chosen.

**Glass works without a background image.** With no image the glass sits
over the plain page colour. In light mode, where a white pane over a
white page would vanish, the composer keeps a grey-tinted floor and an
outline that darkens instead of brightening, and menus get a thin glass
fill with a faint accent wash and a bevelled edge.

**Hover and edges.** Liquid menus carry a lit rim (the base dropdown
shadow used to win), active composer pills keep their fill on hover, the
sheen is kept faint, and Firefox redraws glass blurs once the image has
painted.

**Readable over any image.** Studio measures the background image's tone
once per image and raises the pane tint so text reads over it: darker
panes over light images in dark mode, lighter ones over dark images in
light mode, and a light grey shade in light mode over a light image so
the sidebar stays distinct. Images that already contrast keep the plain
glass.

**Light mode.** Light panes need more body than dark ones, so in light
mode the sidebar and Run settings panel take a higher floor and a slight
grey tint that sets them apart from a white chat, menus and toasts stay
at least 80% solid, grey secondary text is a step darker on glass, and
controls on glass (segmented toggles, filled buttons, dropdowns) are
frosted white with no outline, with selected and hovered states still
see-through.

**Glass keeps its own image settings.** While glass is on, image
visibility is per mode (70% light, 40% dark by default) and **Fade to
background** defaults to off. These are stored apart from the normal
ones, so without glass an image keeps exactly the visibility and fade it
had before, and turning glass on or off never changes the other set.

**Glass off costs nothing at runtime.** With glass off nothing writes
glass variables to the page and the background image is never sampled
for tone; that work starts only when glass is switched on (a test guards
it).

**Sign-in and change-password pages** show the background under a glass
card. When the install has more than one account they show only the
built-in backdrop, never the last person's own image.

Under glass:
- Borders and dividers are glass lines (a single 1px line, the text
colour at 9%, fields 14%) instead of opaque greys, everywhere the glass
shows, including Images and Video.
- Hover and open fills (composer pills, sidebar rows, header icons, menu
items, model picker rows) are a translucent wash with a faint rim
instead of a solid grey chip, and a row that lights both its shell and
its button paints one pill, not two; menus that pin their own fill
(More, lifted dropdowns) are pointed at the glass instead.
- The BETA badge is an outline on the glass rather than an opaque chip
with a dark drop shadow; the titlebar strip above a pinned sidebar
matches the sidebar tint.
- **Composer outline** off also removes the glass ring and bevel; with
**Fade to background** off, the solid band behind the composer is
removed.
- No glass style adds an outer shadow (a test enforces inset-only).

**Classic and Minimal themes are removed.** Their colours, ids
(frontend, `theme-boot.js` and the backend `palette` Literal) and labels
are gone; a saved Classic or Minimal falls back to Standard (the backend
already drops unknown palettes, `drop_unknown_palette`).

Settings are per device in `localStorage` (`unsloth_window_material`).

### Notes

- The CSS minifier keeps only the last of a `backdrop-filter` /
`-webkit-backdrop-filter` pair, so the glass rules put the unprefixed
one last (Chromium and WebView2 ignore the prefixed one). A test guards
the order.
- Sticky sidebar section labels are cleared under glass so they do not
paint solid bands.

### Stack

This is the base of a stack; each PR builds on the one before:

1. This PR: glass materials
2. #16334: macOS system glass on Unsloth Desktop
3. #16335: glass on every page (for "All pages" in #16297)
4. #16336: glass lens and the hairline composer outline

### Screenshots

Liquid Glass with no background image (built-in backdrop), light mode:

![No
image](https://raw.githubusercontent.com/shimmyshimmer/unsloth-staging-4/pr-media/pr/16333/noimage_light_liquid_chat-26dfe5ced39f.png)

The Glass theme section, on and off:

![Glass theme
section](https://raw.githubusercontent.com/shimmyshimmer/unsloth-staging-4/pr-media/pr/16333/glass_theme_section-ffaf9ed4c4ca.png)

The Theme dropdown with the Glass submenu:

![Theme
dropdown](https://raw.githubusercontent.com/shimmyshimmer/unsloth-staging-4/pr-media/pr/16333/theme_menu_glass_light-8da5ae598cf7.png)

Dark mode over a light image: the panes darken so the text reads:

![Readable over a light
image](https://raw.githubusercontent.com/shimmyshimmer/unsloth-staging-4/pr-media/pr/16333/read_dark_mode_light_image-7edd2a8acc74.png)

Run settings with glass dividers, dark and light:

![Glass
borders](https://raw.githubusercontent.com/shimmyshimmer/unsloth-staging-4/pr-media/pr/16333/borders_run_settings-b8f0037bdfa2.png)

Glass strength at 0, 50 and 100%:

![Glass
strength](https://raw.githubusercontent.com/shimmyshimmer/unsloth-staging-4/pr-media/pr/16333/strength_0_50_100-0577ee238d4b.png)

Earlier screenshots of the materials:

Frosted, Liquid Glass and Liquid Glass 3D composers in light mode:

![Glass
materials](https://raw.githubusercontent.com/shimmyshimmer/unsloth-staging-4/pr-media/pr/16333/pr_materials-e012ed916c9c.png)

Frosted with Glass menus on, dark mode:

![Frosted glass
menu](https://raw.githubusercontent.com/shimmyshimmer/unsloth-staging-4/pr-media/pr/16333/dark_frosted_menu-7fad8fc80e07.png)

## Verification

- `npm run typecheck`, `npm test` (0 failures), `npm run
i18n:check:strict`, `npm run build`
- `pytest studio/backend/tests/test_personalization_settings.py`
(palette list change)
- Isolated Studio driven with Playwright in light and dark mode: every
material, with and without a background image; the Glass theme switch;
the Theme dropdown Glass submenu; a scripted sweep of every page and
overlay (Settings, search, model picker, menus, toasts) for opaque fills
and opaque borders under glass; Glass strength measured at 0, 50 and
100%.
- New keys translated for all 24 locale overlays.

## Not tested here

- Training and other GPU-only pages (CPU-only host); the glass is CSS
over the same surfaces.

---------

Co-authored-by: Unsloth <[email protected]>
shimmyshimmer added a commit that referenced this pull request Nov 1, 2026
…16335)

## What changed

Makes the glass materials work on every page when the background image
is shown on all pages ("All pages" under **Show on**, added in #16297).
Before this, many pages were unreadable over the image, or kept solid
blocks that ignored the glass.

- Every other page (Model hub, Library, Images, Video, Audio, Data
Recipes, Export, API, Projects, Scheduled) reads over one tinted pane on
a frosted copy of the image. The pane tint follows Glass strength with a
floor (70% light, 60% dark) so dense pages stay readable over any image.
- Inside the pane, page canvases, headers, cards, fields and chips turn
into lighter glass, and hover fills take the glass wash.
- Sticky headers frost the rows scrolling under them instead of painting
a band.
- Without glass, other pages read over a near-solid wash (at least 86%)
whatever the image's contrast.

The image is blurred directly on those pages rather than through a
`backdrop-filter` on the pane: a pane that is a backdrop root makes
every sticky header inside re-tint it into a visible band. A test guards
that the pane has no `backdrop-filter`.

This is CSS only and keys on `data-wallpaper-route="page"`, so it has no
effect until the background can show on other pages (#16297).

Stacked on #16334.

### Screenshots

Every page with All pages on, Frosted in dark mode:

![All pages, Frosted,
dark](https://raw.githubusercontent.com/shimmyshimmer/unsloth-staging-4/pr-media/pr/16335/allpages_dark_frosted_grid-2e4a59a369a0.png)

Liquid Glass 3D in light mode:

![All pages, Liquid Glass 3D,
light](https://raw.githubusercontent.com/shimmyshimmer/unsloth-staging-4/pr-media/pr/16335/allpages_light_liquid-3d_grid-c6ad052f3860.png)


### Update

The All pages pane follows Glass strength (its opacity now scales with
it, after its floor) and the image readability floor from #16333, so a
light image in dark mode cannot wash the page out. The surface tokens it
uses moved to the base glass section in #16333, where dialogs and menus
share them.

## Verification

- `npm test` (0 failures), `npm run build`
- Isolated Studio with the background on all pages: walked every page
above in light and dark mode for Frosted, Transparent and Liquid Glass
3D, and measured the pane tint and the header bands from pixels.

---------

Co-authored-by: Unsloth <[email protected]>
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.

1 participant