Skip to content

[Bug] Unsloth Desktop: pinned sidebar glass haloes the logo on WebKitGTK before 2.54 (TextureMapper backdrop includes later layers) - #18600

Merged
danielhanchen merged 3 commits into
unslothai:mainfrom
LeoBorcherding:studio/glass-webkitgtk-cpu-halo
Nov 20, 2026
Merged

danielhanchen merged 3 commits into
unslothai:mainfrom
LeoBorcherding:studio/glass-webkitgtk-cpu-halo

Conversation

@LeoBorcherding

@LeoBorcherding LeoBorcherding commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

What it fixes

On Linux with WebKitGTK older than 2.54 (Mint 22.1 ships 2.52.6), with Glass on and the sidebar pinned, the unsloth logo at the top of the sidebar sits in a soft halo tinted by the logo. Tester's 2.54.2 doesn't show it.

Why it happens

The pinned strip's glass is a backdrop-filter on [data-windows-glass-frame]::before, with the sidebar's content painted over it. Before 2.54, WebKitGTK composites with TextureMapper, and TextureMapper's backdrop includes layers painted after the filtered one. So the strip blurs the logo that sits on top of it, and the blurred copy shows around the logo. 2.54 replaced TextureMapper with a Skia compositor (2.54 highlights). The closest WebKit change I found is WebKit/WebKit#75441 (bug 325847, 322384@main, Oct 1 2026), which stops a backdrop paint from including layers that come after the owning layer. I haven't confirmed which 2.54.x first carries it, and 2.54.0 / 2.54.1 were not run.

A surface's own backdrop-filter leaves its children out. So on the old compositor, sidebar-inner blurs for itself over the strip and carries the strip's fill, and the logo no longer feeds the blur under it.

What decides when the rule applies

The first commit (ce8a9af) keyed the rule on webkit-cpu-paint. That class comes from paints_on_cpu in src-tauri/src/linux_webkit.rs. It's true when the GPU setting is Off or the unsafe flag is set, when WebKitGTK is older than 2.54 ((major, minor) < (2, 54), because before 2.54 it paints on the CPU on every path), or, from 2.54 on, when WEBKIT_DISABLE_DMABUF_RENDERER, WEBKIT_SKIA_ENABLE_CPU_RENDERING or WEBKIT_DISABLE_COMPOSITING_MODE is set.

Tester (2.54.2) with WEBKIT_SKIA_ENABLE_CPU_RENDERING=1 paints on the CPU (cpu_painting=true in the log) and shows no halo on main. So the bug follows the compositor, not CPU painting, and the CPU gate would have changed the look on 2.54 CPU paths for nothing. 112a048 moves the gate to a new legacy_compositor(webkit_version) (< 2.54.0). It goes out on the GPU rendering status as legacyCompositor, main.tsx adds webkit-legacy-compositor, and the CSS rule keys on that class. On 2.52 and older both classes are set, so Mint behaves exactly as with the first commit.

Tradeoff: on WebKitGTK < 2.54 only, the sidebar's own blur and the strip's blur meet inside the 34px titlebar band, so a faint seam can show there.

On screen

Halo before and after: Mint real app, #18530 stacked, and the same page on WebKitGTK vs macOS

Earlier 4x crops (ce8a9af) and tester 2.54.2

Mint logo and thumbs 4x

tester 2.54.2 logo 4x, GPU and forced CPU

Coverage

Ring = mean brightness 17 to 20 px from the logo centre minus 26 to 30 px (+ means a halo). On the hidden display (light mode) the halo's teal tint is the better signal: mean G - (R+B)/2 over the same rings.

machine what ran main 2818609 this branch
Mint 22.1, WebKitGTK 2.52.6, RX 9060 XT, X11, real screen live app at ce8a9af, Glass on, sidebar pinned, dark logo ring +5.5, visible halo -2.2, gone
Mint 22.1, same box, hidden 1440x900 Xvfb, own D-Bus built app at 112a048, light teal ring +5.9, visible halo 0.0, gone; <html> has webkit-legacy-compositor, sidebar-inner backdrop-filter: blur(8.4px) saturate(1.9)
tester, Arch, WebKitGTK 2.54.2, KDE Wayland (native, no GDK_BACKEND), GPU path built app at ce8a9af, cpu_painting=false ring -13.3, no halo -13.3; frames differ only in the greeting text box
tester, same, forced CPU (WEBKIT_SKIA_ENABLE_CPU_RENDERING=1) built app at ce8a9af, cpu_painting=true -13.2, no halo -10.6 (the old CPU gate applied for nothing, which is what 112a048 removes)
tester at 112a048 not run, tester offline
Mint, same box, hidden 1440x900 Xvfb, own D-Bus, dark, Fuji wallpaper built apps at 2818609 and 112a048, Run settings open logo teal ring +14.7; thumbs -0.3 / -0.8 (no glow on main) logo -1.5; thumbs unchanged
Mint, same setup, with #18530 stacked glass-latest 5677d08 vs + 4e02fc8 (panel rule) thumbs +13.7 / +16.0, logo +5.1 thumbs -1.0 / -1.5, logo -0.2
Mint, WebKitGTK 2.52.6 (PyGObject view, hidden display) fixture page with the built CSS of 2818609 and 112a048 logo teal ring +19.0 -0.6
macOS 26, WKWebView, M5 (window capture) same fixture page and CSS, native classes (tauri, no render-linux) -0.7, no halo -0.7, pixel-identical to main
Windows, WebView2 (GR33N) pending, relay request sent

Tests: new tests/glass-frame-legacy-compositor.test.ts is red without the change and green with it. Full frontend suite at 112a048: 16815 tests, 16814 pass, 0 fail; typecheck clean. Rust: legacy_compositor is a plain version compare; the release builds on Mint compile at 112a048.

Not covered

Sidebar column tone on the legacy compositor (e240589)

As submitted, the sidebar blurred and filled itself on top of the strip's glass, which still covered the sidebar column, so on every WebKitGTK before 2.54 the pinned sidebar got two layers of fill and turned visibly darker (dark mode, mean sidebar RGB: liquid 118/137/38 on main vs 87/98/38, frosted 91/104/37 vs 59/64/38). e240589 masks the sidebar column out of the strip under webkit-legacy-compositor, keeping only the caption band and the inner corner, so the column is one layer of glass again: liquid, liquid-3d, blurred and frosted all match main exactly. The new test checks the legacy strip mask leaves the column out.

Rendered with WebKitGTK 2.50.4 on a fixture page with the built CSS (data-glass="frosted", dark, pinned strip):

Sidebar tone: main, PR as submitted, PR with e24058974

Related glass PRs

One set of Glass fixes, not stacked: review and merge in any order.

@danielhanchen danielhanchen self-assigned this Nov 20, 2026
…reMapper, so the self-blurred sidebar is not filled twice

[skip ci]
@danielhanchen

Copy link
Copy Markdown
Member

@codex review

1 similar comment
@danielhanchen

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

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

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-20T11:38:34.654251Z
We couldn’t complete this review. Comment @codex review to try again.
e240589 Draft marked ready
ℹ️ 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.

danielhanchen pushed a commit to danielhanchen/unsloth-staging-2 that referenced this pull request Nov 20, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. You're on a roll.

Reviewed commit: e240589747

ℹ️ 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".

@danielhanchen
danielhanchen marked this pull request as ready for review November 20, 2026 11:38
@danielhanchen
danielhanchen self-requested a review as a code owner November 20, 2026 11:38
@danielhanchen
danielhanchen merged commit 6615627 into unslothai:main Nov 20, 2026
danielhanchen added a commit that referenced this pull request Nov 20, 2026
…ce coverage gate (#18655)

## Summary

`Repo tests (CPU, studio)` is red on `main` (seen on #18650, reproduced
on current `main`):

```
FAILED tests/studio/test_appearance_coverage.py::test_every_appearance_setting_is_measured_or_allowlisted
AssertionError: <html> flag 'webkit-legacy-compositor' switches on costly CSS (index.css: html.tauri.render-linux.webkit-legacy-compositor[data-glass][data-chat-wallpaper-workspace-ready] [data-slot="sidebar-co...) but no gate mode measures it: map it in ROOT_FLAGS to the mode that sets it ..., or to 'allow: <reason>'
```

## Cause

#18600 ("pinned sidebar glass haloes the logo on WebKitGTK before 2.54")
adds the `webkit-legacy-compositor` class. `main.tsx` sets it only in
the Linux desktop app on WebKitGTK older than 2.54, and the CSS under it
works around TextureMapper blurring later layers into a
`backdrop-filter`. The fix is right. The coverage gate requires every
root flag that switches on costly CSS to be either measured by a gate
mode or allowlisted with a reason, and this flag was not added.

## Change

- `tests/studio/_appearance_coverage.py`: `webkit-legacy-compositor` is
allowlisted in `ROOT_FLAGS` ("WebKitGTK before 2.54 only (TextureMapper
backdrop workaround); the Chromium gate cannot run it"). That is the
same treatment as its WebKitGTK siblings `data-glass-cpu` and
`webkit-cpu-paint`: the browser gate runs Chromium, which can never set
this class.

## Testing

- `tests/studio/test_appearance_coverage.py` fails on `main` with the
message above and passes with this change (5 passed).
shimmyshimmer pushed a commit that referenced this pull request Nov 23, 2026
… an opaque grey slab under Glass (#18531)

Below 1024px wide, Run settings opens as an overlay sheet instead of a
docked column. With Glass on over a background image, that sheet missed
every Run settings glass rule. It kept the sheet's own background and
the header's panel fill, so it showed as an opaque dark grey slab up to
the window controls.

**The fix**
- The sheet's inner wrapper uses the docked panel's
`data-slot="chat-settings-panel"`, so the same glass rules apply. The
sheet's own fill is cleared under glass.
- The floating monitor measures whichever panel is showing, retrying a
frame later for the sheet's portal. It now docks by the sheet's real
width instead of the docked panel's saved width.
- Glass off is unchanged.

**Tested**
A new test in `tests/window-material.test.ts` fails without the fix and
passes with it. `tsc -b` is clean. `npm test` passes except one
KaTeX/Vite test, which fails the same way on main in my checkout. The
GIF below was recorded on Unsloth Desktop on Arch Linux (KDE Wayland,
WebKitGTK 2.54.2), in a 980px window with Liquid Glass over a background
image. Before is upstream main `beec0a3`; after is the same commit with
this PR merged.


![](https://raw.githubusercontent.com/LeoBorcherding/unsloth/0468e276993e0906c8391afce2f2f0b1e9065fb9/narrow-run-settings-sheet-before-after.gif)

**Not tested yet:** Windows and macOS.

**Related glass PRs**

One set of Glass fixes, not stacked: review and merge in any order.

- #18030 Glass on the header, titlebar and window buttons, and a rounded
Run settings corner
- #18032 Blur the new chat composer under glass on Windows
- #18520 Glass strength and lens act the same on every glass surface; 0%
is clear
- #18530 One glass sheet over the pinned sidebar strip and docked Run
settings (needs a small follow-up once #18600 lands)
- **#18531 Narrow window's Run settings sheet glass (this PR)**
- #18600 Sidebar glass halo on WebKitGTK before 2.54 (#18530 needs a
small follow-up once this lands)
- #18615 Glass tint on the user's chat bubble and code blocks
ouyang-2019 pushed a commit to ouyang-2019/unsloth that referenced this pull request Nov 23, 2026
…ry glass surface; 0% is clear, and a 12px readable blur floor applies from 1% up (unslothai#18520)

## What changes on screen

Unsloth Desktop on Linux Mint, upstream main `3880f44` on the left, this
branch `7d3a846` on the right, same machine, profile, wallpaper and
settings.

**1. Strength 0% is now clear, same as main.** No blur and no read floor
at 0%; main left about 2px of blur there, this leaves none. The fill is
unchanged from main.

![Sidebar at strength
0](https://raw.githubusercontent.com/LeoBorcherding/unsloth/8506e11f79a8aadeb0b8755f068f448f70ff0560/glass-controls-0clear/2-sidebar-strength0.png)

**2. From 1% up, text never sits on a sharp photo.** Every glass surface
gets at least 12px of blur, so at 40% Run settings and the sidebar blur
12px where main blurred 8.4px.

![Run settings at strength
40](https://raw.githubusercontent.com/LeoBorcherding/unsloth/8506e11f79a8aadeb0b8755f068f448f70ff0560/glass-controls-0clear/1-run-strength40.png)

**3. The lens (Magnify / Shrink) reaches menus, panels, dialogs and
tooltips, not only the composer.** The magnified copy bends the
wallpaper behind each of them, and each keeps its own 1px edge, with no
lens rim outline on top. Each grid is strength 0 / 40 / 100 with the
lens off, 40 Magnify and 40 Shrink, light and dark, at 1x and with the
top-left corner zoomed. Mint, Unsloth Desktop, main `3880f44` vs
`7c08785`.

![Account menu across strength and
lens](https://raw.githubusercontent.com/LeoBorcherding/unsloth/8cadfba4f20485dd816b4088a290374b89ca61fd/glass-controls-rim/3-menu-lens.png)

![Tooltip across strength and
lens](https://raw.githubusercontent.com/LeoBorcherding/unsloth/8cadfba4f20485dd816b4088a290374b89ca61fd/glass-controls-rim/4-tooltip-lens.png)

![Settings dialog across strength and
lens](https://raw.githubusercontent.com/LeoBorcherding/unsloth/8cadfba4f20485dd816b4088a290374b89ca61fd/glass-controls-rim/5-dialog-lens.png)

## What was wrong

With Glass on, the strength slider and the lens behaved differently
depending on which surface you looked at:

- **Strength only moved some blurs.** Menus, dialogs, tooltips, toasts
and the sign-in card had fixed blur floors (18px / 24px) that strength
never went below, the open composer added a fixed 5px, page cards a
fixed 8px, and floating chat controls a fixed 8px. Light page fills,
floating-control fills and the macOS strip ignored `--glass-opacity`.
- **Nothing kept text readable at low strength.** At low strength the
sidebar, Run settings and composer sat on a nearly sharp photo (2px blur
at 0%, 8.4px at 40%), so a busy wallpaper showed straight through behind
the text.
- **The lens (Magnify / Shrink) only bent the composer.** Every other
glass surface kept a flat blur, and the setting's description said
"under the composer".

## The fix

- Strength scales blur and fill together on every glass surface: the
menu, dialog, tooltip and toast floors become `18px` / `24px` times
strength, the open composer, page cards and floating controls scale
their extra blur, and the remaining fills follow `--glass-opacity`.
- Strength 0% is clear: `--glass-strength` is 0 there (it was 0.2), so
every glass blur is 0px, including the Windows page wallpaper blur and
sticky page headers. Fills keep main's 0% value (`--glass-opacity`
0.35).
- From 1% up, a shared `--glass-read-blur` (12px, gated by `--glass-on`)
is the least blur any glass surface gets, so text never sits on a sharp
photo at low strength.
- The lens draws into every glass surface: sidebar, Run settings,
sheets, dialogs, menus, pickers, tooltips, toasts, floating controls and
the model picker. Page cards stay plain glass, since a grid would clone
the wallpaper per card. `lens.tsx` scans one host list (`LENS_HOSTS`)
and skips any host that isn't drawing glass right now (Glass menus off,
an opaque sheet). A test pins `LENS_HOSTS` to the Glass menus and toast
blur rules in `index.css`, so a new glass surface there can't miss the
lens.
- On Windows and Linux Unsloth Desktop the sidebar's glass is the
frame's `::before` at `z-index: 1`. Its lens sits above that and below
the sidebar, and the frame isn't isolated, so the titlebar strip corner
still stays above the conversation.
- The lens copy blurs as much as the surface it sits in, so turning the
lens on doesn't sharpen a menu or dialog's background. While a surface
is moving (glass-motion drops its backdrop filter) the copy drops its
blur too.
- At 0% the lens stays on the composer only, as on main; every other
surface is clear, with no rim.
- The lens rim draws only on the composer, as on main. Menus, tooltips,
dialogs and panels have their own 1px edge, and a rim just inside it
read as a doubled grey outline, so they keep their own edge instead. A
test pins the rim to the composer selectors.
- The lens host list rescans when the glass style changes and when a
surface stops moving, so a host that only carried the motion flag (a
dialog with Glass menus off) doesn't keep a lens.
- The find bar and `.glass-float-surface`, which main added to the Glass
menus blur, are lens hosts too, so the test that pins `LENS_HOSTS` to
that rule holds on the merge with main.
- The sample composers in Settings > Appearance show the lens over the
preview's own wallpaper, so the setting can be judged where it's picked.
Main never drew it there.
- The lens description now reads "every glass surface" in all 25
locales.

Works on its own. The welcome composer only blurs with Glass when unslothai#18032
is in (without it the thread's fade mask keeps the welcome composer from
blurring at all), so the readability floor shows there once both are
merged. `[data-chat-header-actions]` and `[data-chat-model-controls]` in
the host list come from unslothai#18030 and match nothing until it lands.

## How it was tested

Before is upstream main `3880f44` (this PR's base), after is `7d3a846`.
Both are real Unsloth Desktop shells (Tauri) built on the same machine,
run headless against one profile and one backend, with every setting
changed through the real Settings controls (strength slider, Glass lens
select, wallpaper upload with "Show on: All pages"). Glass style Liquid
Glass 3D.

| machine | OS | engine | what ran | before vs after | what it can prove
|
|---|---|---|---|---|---|
| Mint: Ryzen 7 8700F, RX 9060 XT | Linux Mint 22.1, Xvfb +
`tauri-driver` | WebKitGTK 2.52.6, real Unsloth Desktop shell | 9
surfaces x strength 0/40/100 lens off, 40 Magnify, 40 Shrink x light and
dark x 2 wallpapers | `3880f44` vs `7d3a846` | the full matrix in the
Linux Desktop app |
| Mac: MacBook Pro, Apple M5 | macOS 26 | Playwright WebKit (macOS),
Unsloth Studio frontend, mocked API | sidebar, Run settings, account
menu, tooltip x strength 0 / 40 lens off / 40 Magnify, light, city
wallpaper | `3880f44` vs `3fb00b4` | WebKit on macOS gives the same blur
and lens count; not the Desktop shell or the macOS system glass strip |
| tester | Arch Linux, KDE | WebKitGTK 2.54.2 (offscreen), Unsloth
Studio frontend, mocked API | same as the Mac row | `3880f44` vs
`3fb00b4` | the newer WebKitGTK agrees with Mint's 2.52.6; not the
Desktop shell |
| Windows | | WebView2 | not run | | |

Mac and tester both measured the sidebar and Run settings at 2px / 8.4px
on main at 0% / 40%, and 0px / 12px on this branch, with 1 lens at 40%
Magnify on main and 2 (chat) or 3 (Run settings, menu, tooltip) here.
Tester also read the menu and tooltip blur: 18px on main at every
strength, 0px at 0% and 15.12px at 40% here.

| measured on Mint | main `3880f44` | this branch |
|---|---|---|
| composer blur at strength 0 / 40 / 100 | 2px / 8.4px / 20px | 0px /
12px / 20px |
| lenses drawn at 0%, lens off | 0 | 0 |
| lenses drawn at 40% Magnify: composer / Run settings / menu / model
picker / Settings dialog / tooltip | 1 / 1 / 1 / 1 / 1 / 1 | 2 / 3 / 3 /
3 / 5 / 3 |
| lenses on the Export and API pages (page cards stay plain glass) | 1 /
1 | 1 / 1 |
| Appearance preview composers, lens on | no lens | one lens each |

The menu, tooltip and dialog grids under 3 are at `7c08785` (the head).
The other Mint screenshots are at `7d3a846`, the Mac and tester ones at
`3fb00b4`. The head `7c08785` drops the lens rim on every surface but
the composer (only the grids under 3 show that) and adds the
moving-surface lens fixes, two lens hosts from main (the find bar and
`.glass-float-surface`) and lens rescans on a glass style change or when
a surface stops moving, and none of those are in these frames. Frontend
gates at `7c08785`: `npm run typecheck`, 16732 `npm test` (1 skipped),
`npm run build`. The full suite also passes on `869695d` merged with
upstream main `4207d60` (the KaTeX `?raw` test aside, which fails there
only because that tree's `node_modules` is a symlink). A test evaluates
every glass `backdrop-filter: blur(...)` in `index.css` at 0% (must be
0px) and 1% (must be at least 12px).

### macOS and tester

The sidebar and Run settings leads, shot on the Mac (Playwright WebKit)
and on tester (WebKitGTK 2.54.2). Both drive the Unsloth Studio frontend
with a mocked API instead of a Desktop shell, with the settings put in
storage rather than set through the Settings controls. Their menu and
tooltip lens shots were taken before the rim fix and are dropped; the
grids under 3 replace them.

<details><summary><b>macOS 26, Playwright WebKit</b>, 2 images</summary>

![Mac sidebar
0%](https://raw.githubusercontent.com/LeoBorcherding/unsloth/8a2019b38b1a180ac323af7ae6abf1e001098600/glass-controls-mac/2-sidebar-strength0.png)

![Mac Run settings
40%](https://raw.githubusercontent.com/LeoBorcherding/unsloth/8a2019b38b1a180ac323af7ae6abf1e001098600/glass-controls-mac/1-run-strength40.png)
</details>

<details><summary><b>Arch (tester), WebKitGTK 2.54.2</b>, 2
images</summary>

![tester sidebar
0%](https://raw.githubusercontent.com/LeoBorcherding/unsloth/8a2019b38b1a180ac323af7ae6abf1e001098600/glass-controls-tester/2-sidebar-strength0.png)

![tester Run settings
40%](https://raw.githubusercontent.com/LeoBorcherding/unsloth/8a2019b38b1a180ac323af7ae6abf1e001098600/glass-controls-tester/1-run-strength40.png)
</details>

### Full matrix

36 grids. Each one is a single surface on one wallpaper in one theme: 5
rows (strength 0 / 40 / 100 with the lens off, 40 with Magnify, 40 with
Shrink), before on the left, after on the right. The two wallpapers are
stock Linux Mint ones, a sharp high-contrast city photo and a busy,
saturated colored-pencils close-up. These are at `7d3a846`: the account
menu, Settings dialog, model picker and tooltip grids still show the
lens rim that `7c08785` drops (see the grids under 3).

<details><summary><b>Unchanged (reference surface): the welcome
composer</b></summary>

The composer already scaled its blur with strength and already had the
lens, so before and after match apart from 0% (now clear) and the 12px
floor at low strength. It is the behaviour every other surface now
follows.

![composer city
light](https://raw.githubusercontent.com/LeoBorcherding/unsloth/8506e11f79a8aadeb0b8755f068f448f70ff0560/glass-controls-0clear/composer-wall-city-light.png)

![composer city
dark](https://raw.githubusercontent.com/LeoBorcherding/unsloth/8506e11f79a8aadeb0b8755f068f448f70ff0560/glass-controls-0clear/composer-wall-city-dark.png)

![composer colors
light](https://raw.githubusercontent.com/LeoBorcherding/unsloth/8506e11f79a8aadeb0b8755f068f448f70ff0560/glass-controls-0clear/composer-wall-colors-light.png)

![composer colors
dark](https://raw.githubusercontent.com/LeoBorcherding/unsloth/8506e11f79a8aadeb0b8755f068f448f70ff0560/glass-controls-0clear/composer-wall-colors-dark.png)
</details>

<details><summary><b>Sidebar and titlebar strip</b>, 4 grids</summary>

![sidebar city
light](https://raw.githubusercontent.com/LeoBorcherding/unsloth/8506e11f79a8aadeb0b8755f068f448f70ff0560/glass-controls-0clear/sidebar-wall-city-light.png)

![sidebar city
dark](https://raw.githubusercontent.com/LeoBorcherding/unsloth/8506e11f79a8aadeb0b8755f068f448f70ff0560/glass-controls-0clear/sidebar-wall-city-dark.png)

![sidebar colors
light](https://raw.githubusercontent.com/LeoBorcherding/unsloth/8506e11f79a8aadeb0b8755f068f448f70ff0560/glass-controls-0clear/sidebar-wall-colors-light.png)

![sidebar colors
dark](https://raw.githubusercontent.com/LeoBorcherding/unsloth/8506e11f79a8aadeb0b8755f068f448f70ff0560/glass-controls-0clear/sidebar-wall-colors-dark.png)
</details>

<details><summary><b>Run settings</b>, 4 grids</summary>

![run city
light](https://raw.githubusercontent.com/LeoBorcherding/unsloth/8506e11f79a8aadeb0b8755f068f448f70ff0560/glass-controls-0clear/run-wall-city-light.png)

![run city
dark](https://raw.githubusercontent.com/LeoBorcherding/unsloth/8506e11f79a8aadeb0b8755f068f448f70ff0560/glass-controls-0clear/run-wall-city-dark.png)

![run colors
light](https://raw.githubusercontent.com/LeoBorcherding/unsloth/8506e11f79a8aadeb0b8755f068f448f70ff0560/glass-controls-0clear/run-wall-colors-light.png)

![run colors
dark](https://raw.githubusercontent.com/LeoBorcherding/unsloth/8506e11f79a8aadeb0b8755f068f448f70ff0560/glass-controls-0clear/run-wall-colors-dark.png)
</details>

<details><summary><b>Account menu</b>, 4 grids</summary>

![menu city
light](https://raw.githubusercontent.com/LeoBorcherding/unsloth/8506e11f79a8aadeb0b8755f068f448f70ff0560/glass-controls-0clear/menu-wall-city-light.png)

![menu city
dark](https://raw.githubusercontent.com/LeoBorcherding/unsloth/8506e11f79a8aadeb0b8755f068f448f70ff0560/glass-controls-0clear/menu-wall-city-dark.png)

![menu colors
light](https://raw.githubusercontent.com/LeoBorcherding/unsloth/8506e11f79a8aadeb0b8755f068f448f70ff0560/glass-controls-0clear/menu-wall-colors-light.png)

![menu colors
dark](https://raw.githubusercontent.com/LeoBorcherding/unsloth/8506e11f79a8aadeb0b8755f068f448f70ff0560/glass-controls-0clear/menu-wall-colors-dark.png)
</details>

<details><summary><b>Settings dialog</b>, 4 grids</summary>

![dialog city
light](https://raw.githubusercontent.com/LeoBorcherding/unsloth/8506e11f79a8aadeb0b8755f068f448f70ff0560/glass-controls-0clear/dialog-wall-city-light.png)

![dialog city
dark](https://raw.githubusercontent.com/LeoBorcherding/unsloth/8506e11f79a8aadeb0b8755f068f448f70ff0560/glass-controls-0clear/dialog-wall-city-dark.png)

![dialog colors
light](https://raw.githubusercontent.com/LeoBorcherding/unsloth/8506e11f79a8aadeb0b8755f068f448f70ff0560/glass-controls-0clear/dialog-wall-colors-light.png)

![dialog colors
dark](https://raw.githubusercontent.com/LeoBorcherding/unsloth/8506e11f79a8aadeb0b8755f068f448f70ff0560/glass-controls-0clear/dialog-wall-colors-dark.png)
</details>

<details><summary><b>Model picker</b>, 4 grids</summary>

![model city
light](https://raw.githubusercontent.com/LeoBorcherding/unsloth/8506e11f79a8aadeb0b8755f068f448f70ff0560/glass-controls-0clear/model-wall-city-light.png)

![model city
dark](https://raw.githubusercontent.com/LeoBorcherding/unsloth/8506e11f79a8aadeb0b8755f068f448f70ff0560/glass-controls-0clear/model-wall-city-dark.png)

![model colors
light](https://raw.githubusercontent.com/LeoBorcherding/unsloth/8506e11f79a8aadeb0b8755f068f448f70ff0560/glass-controls-0clear/model-wall-colors-light.png)

![model colors
dark](https://raw.githubusercontent.com/LeoBorcherding/unsloth/8506e11f79a8aadeb0b8755f068f448f70ff0560/glass-controls-0clear/model-wall-colors-dark.png)
</details>

<details><summary><b>Tooltip (2x)</b>, 4 grids</summary>

![tip city
light](https://raw.githubusercontent.com/LeoBorcherding/unsloth/8506e11f79a8aadeb0b8755f068f448f70ff0560/glass-controls-0clear/tip-wall-city-light.png)

![tip city
dark](https://raw.githubusercontent.com/LeoBorcherding/unsloth/8506e11f79a8aadeb0b8755f068f448f70ff0560/glass-controls-0clear/tip-wall-city-dark.png)

![tip colors
light](https://raw.githubusercontent.com/LeoBorcherding/unsloth/8506e11f79a8aadeb0b8755f068f448f70ff0560/glass-controls-0clear/tip-wall-colors-light.png)

![tip colors
dark](https://raw.githubusercontent.com/LeoBorcherding/unsloth/8506e11f79a8aadeb0b8755f068f448f70ff0560/glass-controls-0clear/tip-wall-colors-dark.png)
</details>

<details><summary><b>Page cards: Export (plain glass, no lens by
design)</b>, 4 grids</summary>

![export city
light](https://raw.githubusercontent.com/LeoBorcherding/unsloth/8506e11f79a8aadeb0b8755f068f448f70ff0560/glass-controls-0clear/export-wall-city-light.png)

![export city
dark](https://raw.githubusercontent.com/LeoBorcherding/unsloth/8506e11f79a8aadeb0b8755f068f448f70ff0560/glass-controls-0clear/export-wall-city-dark.png)

![export colors
light](https://raw.githubusercontent.com/LeoBorcherding/unsloth/8506e11f79a8aadeb0b8755f068f448f70ff0560/glass-controls-0clear/export-wall-colors-light.png)

![export colors
dark](https://raw.githubusercontent.com/LeoBorcherding/unsloth/8506e11f79a8aadeb0b8755f068f448f70ff0560/glass-controls-0clear/export-wall-colors-dark.png)
</details>

<details><summary><b>Page cards: API (plain glass, no lens by
design)</b>, 4 grids</summary>

![apimon city
light](https://raw.githubusercontent.com/LeoBorcherding/unsloth/8506e11f79a8aadeb0b8755f068f448f70ff0560/glass-controls-0clear/apimon-wall-city-light.png)

![apimon city
dark](https://raw.githubusercontent.com/LeoBorcherding/unsloth/8506e11f79a8aadeb0b8755f068f448f70ff0560/glass-controls-0clear/apimon-wall-city-dark.png)

![apimon colors
light](https://raw.githubusercontent.com/LeoBorcherding/unsloth/8506e11f79a8aadeb0b8755f068f448f70ff0560/glass-controls-0clear/apimon-wall-colors-light.png)

![apimon colors
dark](https://raw.githubusercontent.com/LeoBorcherding/unsloth/8506e11f79a8aadeb0b8755f068f448f70ff0560/glass-controls-0clear/apimon-wall-colors-dark.png)
</details>

### Linux, Chromium 159 (Colab T4)

Main `3880f44` vs this PR `7c08785`, both served on one Colab T4 VM
against the same backend and wallpaper, shot in headless Chromium 159
with Glass on (Liquid Glass 3D). Strength 0 / 40 / 100 with the lens
off, plus 40 Magnify and 40 Shrink, light and dark. Chromium shows the
same four changes as the WebKit rows above: 0% draws no blur on the
sidebar and Run settings (main still blurs), 40% reads at the 12px floor
instead of 8.4px, Magnify bends the account menu and model picker too,
and the menu edge keeps its soft edge with no grey rim.

![main vs this PR,
Chromium](https://raw.githubusercontent.com/LeoBorcherding/unsloth/2ef3afca396c1e0c9bd57dc2dc48efbb6d52405d/glass-18520-colab/lead-four-differences.png)

<details><summary><b>Every surface, Chromium</b>, 14 grids</summary>

![Sidebar
light](https://raw.githubusercontent.com/LeoBorcherding/unsloth/2ef3afca396c1e0c9bd57dc2dc48efbb6d52405d/glass-18520-colab/sidebar-light.png)

![Sidebar
dark](https://raw.githubusercontent.com/LeoBorcherding/unsloth/2ef3afca396c1e0c9bd57dc2dc48efbb6d52405d/glass-18520-colab/sidebar-dark.png)

![Composer
light](https://raw.githubusercontent.com/LeoBorcherding/unsloth/2ef3afca396c1e0c9bd57dc2dc48efbb6d52405d/glass-18520-colab/composer-light.png)

![Composer
dark](https://raw.githubusercontent.com/LeoBorcherding/unsloth/2ef3afca396c1e0c9bd57dc2dc48efbb6d52405d/glass-18520-colab/composer-dark.png)

![Run settings
light](https://raw.githubusercontent.com/LeoBorcherding/unsloth/2ef3afca396c1e0c9bd57dc2dc48efbb6d52405d/glass-18520-colab/runsettings-light.png)

![Run settings
dark](https://raw.githubusercontent.com/LeoBorcherding/unsloth/2ef3afca396c1e0c9bd57dc2dc48efbb6d52405d/glass-18520-colab/runsettings-dark.png)

![Model picker
light](https://raw.githubusercontent.com/LeoBorcherding/unsloth/2ef3afca396c1e0c9bd57dc2dc48efbb6d52405d/glass-18520-colab/modelpicker-light.png)

![Model picker
dark](https://raw.githubusercontent.com/LeoBorcherding/unsloth/2ef3afca396c1e0c9bd57dc2dc48efbb6d52405d/glass-18520-colab/modelpicker-dark.png)

![Settings
light](https://raw.githubusercontent.com/LeoBorcherding/unsloth/2ef3afca396c1e0c9bd57dc2dc48efbb6d52405d/glass-18520-colab/settings-light.png)

![Settings
dark](https://raw.githubusercontent.com/LeoBorcherding/unsloth/2ef3afca396c1e0c9bd57dc2dc48efbb6d52405d/glass-18520-colab/settings-dark.png)

![Account menu
light](https://raw.githubusercontent.com/LeoBorcherding/unsloth/2ef3afca396c1e0c9bd57dc2dc48efbb6d52405d/glass-18520-colab/account-light.png)

![Account menu
dark](https://raw.githubusercontent.com/LeoBorcherding/unsloth/2ef3afca396c1e0c9bd57dc2dc48efbb6d52405d/glass-18520-colab/account-dark.png)

![Tooltip
light](https://raw.githubusercontent.com/LeoBorcherding/unsloth/2ef3afca396c1e0c9bd57dc2dc48efbb6d52405d/glass-18520-colab/tooltip-light.png)

![Tooltip
dark](https://raw.githubusercontent.com/LeoBorcherding/unsloth/2ef3afca396c1e0c9bd57dc2dc48efbb6d52405d/glass-18520-colab/tooltip-dark.png)
</details>

## Not tested yet

- macOS Unsloth Desktop (WKWebView, including the macOS system glass
strip): only the frontend in Playwright WebKit on macOS ran, not the
Desktop shell.
- Windows Unsloth Desktop (WebView2): not shot yet. The frame lens is
written for the Windows/Linux custom titlebar, but only Linux ran.
- WebKitGTK 2.54 inside a real Desktop window: tester ran the frontend
offscreen, not the Desktop shell.
- Floating chat controls (scroll-to-bottom, the `[data-glass-float]`
buttons): they need a loaded model and a long thread, which this
headless profile didn't have. Covered by the host-list test only.
- Toasts and the sign-in card under the lens: covered by the host-list
test, not shot.
- Unsloth Studio in Firefox. Chromium ran on Colab (Linux), not on
Windows.

## Related glass PRs

One set of Glass fixes, not stacked: review and merge in any order.

- unslothai#18030 Glass on the header, titlebar and window buttons, and a rounded
Run settings corner
- unslothai#18032 Blur the new chat composer under glass on Windows
- **unslothai#18520 Glass strength and lens act the same on every glass surface;
0% is clear (this PR)**
- unslothai#18530 One glass sheet over the pinned sidebar strip and docked Run
settings (needs a small follow-up once unslothai#18600 lands)
- unslothai#18531 Narrow window's Run settings sheet glass
- unslothai#18600 Sidebar glass halo on WebKitGTK before 2.54 (unslothai#18530 needs a
small follow-up once this lands)
- unslothai#18615 Glass tint on the user's chat bubble and code blocks




## Before / after on Linux Chromium, head `2fc97fb8d` vs merge base
`f4768e00b`

Two isolated Unsloth Studio installs, Liquid Glass 3D over a striped
wallpaper, every setting changed through Settings > Appearance (upload,
Glass theme switch, strength slider, Glass lens select). Measured on
each side:

| | merge base | this PR |
|---|---|---|
| composer blur at strength 0 / 40 | 2px / 8.4px | 0px / 12px |
| Settings dialog blur at strength 0 / 40 | 24px / 24px | 0px / 20.16px
|
| lenses at 40 Magnify: composer / Settings dialog / whole page with the
dialog open | 1 / 0 / 1 | 1 / 3 / 7 |

Strength 0, chat page: the sidebar and composer are clear on this
branch.

![Strength 0, chat
page](https://raw.githubusercontent.com/danielhanchen/unsloth-staging-2/pr-media/pr/18520/glass-18520-01-40338802a5fe.png)

Strength 40 with Magnify, Settings dialog: the lens reaches the dialog
and it keeps its frosted fill.

![Strength 40 Magnify, Settings
dialog](https://raw.githubusercontent.com/danielhanchen/unsloth-staging-2/pr-media/pr/18520/glass-18520-04-488e62b65097.png)

Strength 40 with Magnify, chat page: the sidebar and the model picker
card are lensed too, not only the composer.

![Strength 40 Magnify, chat
page](https://raw.githubusercontent.com/danielhanchen/unsloth-staging-2/pr-media/pr/18520/glass-18520-05-0e4de7dc8b98.png)

---------

Co-authored-by: Daniel Han <[email protected]>
shimmyshimmer added a commit that referenced this pull request Nov 23, 2026
…ip and docked Run settings, no seam where they meet (#18530)

**Stacked on #18030.** This PR's own commits are the six after `655a2a5`
(`9d8b8c8`..`c078050`). Review it after #18030, or diff
`655a2a5...c078050`.

With the sidebar pinned and Run settings docked, the glass strip under
the titlebar met the top of Run settings at a visible line. The two used
different fills, and two backdrop-filter layers step where they meet
even with the same fill. Run settings' own edge line also cut through
that corner.

**The fix**
- While the sidebar is pinned, the strip's glass also runs down the
docked Run settings column, so one blur covers the sidebar, the titlebar
and the panel. The panel draws no glass of its own there.
- A concave curve joins the strip to the panel, and the panel's edge
line is hidden beside the strip so it doesn't cut through that curve.
- With the sidebar unpinned, Run settings keeps its own glass and
rounded corner from #18030.

**Tested**
New tests in `tests/window-material.test.ts` cover the strip mask, the
curve and the hidden edge. `tsc -b` is clean. `npm test` passes except
the same KaTeX/Vite test that fails on main in my checkout. The
close-ups below come from Unsloth Desktop on Arch Linux (KDE Wayland,
WebKitGTK 2.54.2), maximized, with Run settings open. Before is upstream
main `beec0a3` plus #18030; after is the same plus this PR.


![](https://raw.githubusercontent.com/LeoBorcherding/unsloth/05f0bd89e4f6b29b9e45c9bcbd2ff453de9f9d46/seam-closeup.png)

**Not tested yet:** Windows (where the seam was first seen, under the
Windows caption) and macOS.

**Related glass PRs**

One set of Glass fixes, not stacked: review and merge in any order.

- #18030 Glass on the header, titlebar and window buttons, and a rounded
Run settings corner
- #18032 Blur the new chat composer under glass on Windows
- #18520 Glass strength and lens act the same on every glass surface; 0%
is clear
- **#18530 One glass sheet over the pinned sidebar strip and docked Run
settings (needs a small follow-up once #18600 lands) (this PR)**
- #18531 Narrow window's Run settings sheet glass
- #18600 Sidebar glass halo on WebKitGTK before 2.54 (#18530 needs a
small follow-up once this lands)
- #18615 Glass tint on the user's chat bubble and code blocks

---------

Co-authored-by: Michael Han <[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.

2 participants