Skip to content

Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.

Studio: WebKitGTK Glass drops the sidebar's live blur and Frosted's grain tile (long-chat scroll) (#17327)

Daniel Hanc96493c9084d
diff --git a/studio/frontend/src/index.css b/studio/frontend/src/index.css
index c6f10d7f2d8..f2efd55999e 100644
--- a/studio/frontend/src/index.css
+++ b/studio/frontend/src/index.css
@@ -7606,16 +7606,25 @@ html[data-glass="liquid-3d"][data-glass-menus][data-glass-motion].dark :is([data
/* WebKitGTK only (data-glass-cpu, set by WindowMaterialMount): it runs every backdrop-filter again on
each composite, on the CPU, so a caret blink, a scrolled line or a menu frame re-blurred every glass
- surface on screen and glass typing, scrolling and menus cost far more than solid. There only the
- sidebar keeps its live blur (one static surface over the wallpaper costs little); the rest carry a
- denser fill, and dialogs and menus an opaque one, so nothing behind them ghosts through. Blurs a
- component sets itself (Tailwind backdrop-* classes) are not Glass's and stay as they are with Glass off. */
-html[data-glass][data-glass-cpu] *:not([data-slot="sidebar-inner"], [class*="backdrop-"]),
+ surface on screen and glass typing, scrolling and menus cost far more than solid. No Glass surface keeps
+ a live blur there, the sidebar included (its blur alone was most of a Glass scroll frame on a long chat):
+ the panes carry a denser fill, and dialogs and menus an opaque one, so nothing behind them ghosts through.
+ Blurs a component sets itself (Tailwind backdrop-* classes) are not Glass's and stay as they are with Glass off. */
+html[data-glass][data-glass-cpu] *:not([class*="backdrop-"]),
html[data-glass][data-glass-cpu] *:not([data-windows-glass-frame], [class*="backdrop-"])::before,
html[data-glass][data-glass-cpu] *:not([class*="backdrop-"])::after {
-webkit-backdrop-filter: none !important;
backdrop-filter: none !important;
}
+/* Frosted's grain is an SVG feTurbulence tile that WebKitGTK renders again on every paint of the surface
+ (the composer repaints with each scrolled frame): about as much as the rest of a frame. Plain there. */
+html[data-glass="frosted"][data-glass-cpu] :is([data-slot="sidebar-inner"], .unsloth-composer-surface, .unsloth-files-panel, .wallpaper-preview-composer) {
+ background-image: none !important;
+}
+/* The sidebar without its blur: the fill reaches the 96% cap, so the wallpaper does not show through sharp. */
+html[data-glass][data-glass-cpu] [data-slot="sidebar-inner"] {
+ --glass-pane-floor: 110%;
+}
html[data-glass][data-glass-cpu] {
--glass-composer-floor: 110%;
--glass-menu-floor: 110%;
diff --git a/studio/frontend/tests/glass-webkit-blur.test.ts b/studio/frontend/tests/glass-webkit-blur.test.ts
index eef96920e31..d297df4c77b 100644
--- a/studio/frontend/tests/glass-webkit-blur.test.ts
+++ b/studio/frontend/tests/glass-webkit-blur.test.ts
@@ -32,8 +32,9 @@ test("the CPU glass flag is WebKitGTK only and follows the layer flag's material
);
});
-test("WebKitGTK glass drops every live blur except the sidebar's", () => {
- const rule = ruleAt(`${GATE} *:not([data-slot="sidebar-inner"], [class*="backdrop-"]),`);
+test("WebKitGTK glass drops every live Glass blur, the sidebar's included", () => {
+ const rule = ruleAt(`${GATE} *:not([class*="backdrop-"]),`);
+ assert.doesNotMatch(rule, /sidebar-inner/, "the sidebar's blur re-ran on every composite while the thread scrolled");
assert.ok(
rule.includes(`${GATE} *:not([data-windows-glass-frame], [class*="backdrop-"])::before,`),
"the framed sidebar's glass keeps its blur",
@@ -58,7 +59,13 @@ test("dialogs and menus go opaque on that path, so nothing behind them ghosts th
assert.match(body, /--glass-opacity: max\(\.9, var\(--glass-opacity-set\)\);/);
const floors = ruleAt(`${GATE} {`);
assert.match(floors, /--glass-composer-floor: 110%;/, "over 100%, so the default strength reaches the 96% cap");
- assert.doesNotMatch(floors, /--glass-sidebar-floor/, "the sidebar keeps its blur and its normal tint");
+ assert.doesNotMatch(floors, /--glass-sidebar-floor/, "the page floors stay as they are");
+ assert.match(ruleAt(`${GATE} [data-slot="sidebar-inner"] {`), /--glass-pane-floor: 110%;/, "the unblurred sidebar reaches the 96% fill cap");
+ assert.match(
+ ruleAt('html[data-glass="frosted"][data-glass-cpu] :is([data-slot="sidebar-inner"], .unsloth-composer-surface'),
+ /background-image: none !important;/,
+ "the Frosted grain (an SVG turbulence tile) is rendered again on every paint there",
+ );
assert.match(floors, /--glass-opacity-set: var\(--glass-opacity, 1\);/);
});