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.
Python agentaichatgptdeepseekfine-tuninggemmaimage-generationllamallmllmsopenaipythonqwenreinforcement-learningself-hostedstable-diffusiontext-to-speechttsuiunsloth
Studio: remove Liquid Glass stripes and greeting rings, and the black browser tab strip on Linux (#17380)
Wasim Yousef Said25b22275666c
diff --git a/studio/frontend/src/index.css b/studio/frontend/src/index.cssindex 6ed3d524cb8..6cb7b875897 100644--- a/studio/frontend/src/index.css+++ b/studio/frontend/src/index.css@@ -6426,7 +6426,9 @@ html[data-chat-compare] :is([data-wallpaper-workspace], [data-chat-content-root]position: relative;isolation: isolate;}-:is([data-wallpaper-workspace], [data-chat-content-root])[data-wallpaper-ready][data-wallpaper-ready] .unsloth-welcome-greeting::before {+/* Only over an image (data-wallpaper-image): the plain Glass backdrop is the page colour itself, so the halo+ changes nothing there, and blending it rounds a step dark in places, which draws rings around the greeting. */+:is([data-wallpaper-workspace], [data-chat-content-root])[data-wallpaper-ready][data-wallpaper-image] .unsloth-welcome-greeting::before {content: "";position: absolute;inset: -48px -40px;@@ -6726,6 +6728,21 @@ html.dark[data-glass="liquid-3d"] :is(.unsloth-composer-surface, .unsloth-files---glass-bead: radial-gradient(120% 120% at 30% 12%, rgb(255 255 255 / .11), rgb(255 255 255 / .022) 62%, rgb(255 255 255 / .044));--glass-bead-rim: inset 0 1px 0 rgb(255 255 255 / .154), inset 0 -1px 0 rgb(255 255 255 / .033), inset 0 0 0 1px rgb(255 255 255 / .039);}+/* The sheen fades a few percent of white out across half the surface. Chromium dithers that gradient smooth;+ WebKit and Firefox do not, so each 8-bit step shows as a wide diagonal stripe (five of them across a dark+ Settings dialog). No sheen on either; the rims and glows carry the look. WebKit is data-glass-layers (the+ macOS and Linux apps, Safari). After every sheen above: equal specificity, so order decides. */+html[data-glass^="liquid"][data-glass-layers],+html[data-glass^="liquid"][data-glass-layers] :is(.unsloth-composer-surface, .unsloth-files-panel, .wallpaper-preview-composer) {+ --glass-sheen: none;+}+/* Firefox sets no flag: the repeated attribute matches the specificity of the dark sheens above. */+@supports (-moz-appearance: none) {+ html[data-glass^="liquid"][data-glass],+ html[data-glass^="liquid"][data-glass] :is(.unsloth-composer-surface, .unsloth-files-panel, .wallpaper-preview-composer) {+ --glass-sheen: none;+ }+}html[data-glass^="liquid"][data-chat-wallpaper-workspace-ready] [data-windows-glass-frame]::before,html[data-glass^="liquid"][data-chat-wallpaper-workspace-ready] [data-slot="sidebar-inner"] {background-image: var(--glass-sheen);@@ -7805,11 +7822,13 @@ html[data-glass][data-glass-cpu] :is([data-slot="chat-settings-panel"], [data-slhtml[data-glass][data-glass-cpu] :is([data-slot$="popover-content"], [data-slot$="menu-content"]) .sticky {background-color: var(--glass-page-popover);}-/* Side panes over the wallpaper: the chat settings panel and the browser panel. */+/* Side panes over the wallpaper: the chat settings panel and the browser panel. At the sidebar's 96% cap,+ never opaque: the browser's tab strip is its own layer (z-40), and WebKitGTK paints an opaque one black+ when the pane opens, until something restyles it. */html[data-glass][data-glass-cpu][data-chat-wallpaper-workspace-ready] [data-slot="chat-settings-panel"],html[data-glass][data-glass-cpu][data-chat-wallpaper-workspace-ready]:not([data-browser-overlay-open]) [data-slot="browser-panel"] > .browser-chrome,html[data-glass][data-glass-cpu][data-chat-wallpaper-workspace-ready]:not([data-browser-overlay-open]) [data-slot="browser-panel"]:not([data-browser-document]) > .browser-panel-body {- background-color: var(--glass-panel-fill);+ background-color: color-mix(in srgb, var(--glass-panel-fill) 96%, transparent);}/* Light page controls and cards are thin white washes over the image. */html[data-glass][data-glass-cpu]:not(.dark) {diff --git a/studio/frontend/tests/glass-webkit-blur.test.ts b/studio/frontend/tests/glass-webkit-blur.test.tsindex b7ed1181496..a04a4397b7e 100644--- a/studio/frontend/tests/glass-webkit-blur.test.ts+++ b/studio/frontend/tests/glass-webkit-blur.test.ts@@ -89,6 +89,44 @@ test("WebKitGTK liquid 3D draws its wide inner glows as gradients, not blurred sassert.equal(glowUses.length, 3, "composer, menus and dialogs; elsewhere --glass-glow is unset, so the layer is none");});+test("WebKit liquid glass drops the sheen, which bands into stripes without dithering", () => {+ // data-glass-layers is the WebKit flag (macOS and Linux apps, Safari); Chromium dithers the gradient and keeps it.+ assert.match(MATERIAL, /"data-glass-layers",\s*WEBKIT_LAYERS && material !== "solid" && material !== "transparent" && here,/);+ const rule = ruleAt('html[data-glass^="liquid"][data-glass-layers],');+ assert.ok(+ rule.includes('html[data-glass^="liquid"][data-glass-layers] :is(.unsloth-composer-surface, .unsloth-files-panel, .wallpaper-preview-composer) {'),+ "the composer sets its own sheen, so it is cleared there too",+ );+ assert.match(rule, /--glass-sheen: none;/);+ // Every sheen definition must come before the override: equal specificity, so the later rule wins.+ const at = CSS.indexOf('html[data-glass^="liquid"][data-glass-layers],');+ assert.doesNotMatch(CSS.slice(at), /--glass-sheen: linear-gradient/);+ assert.equal((CSS.slice(0, at).match(/--glass-sheen: linear-gradient/g) ?? []).length, 8);+});++test("Firefox drops the sheen too, with a selector as specific as the dark sheens it overrides", () => {+ let found = 0;+ postcss.parse(CSS).walkAtRules("supports", (at) => {+ if (at.params !== "(-moz-appearance: none)") return;+ at.walkRules((rule) => {+ if (!rule.selector.startsWith('html[data-glass^="liquid"][data-glass]')) return;+ found += 1;+ assert.equal(at.parent?.type, "root", "unlayered");+ assert.deepEqual(+ rule.selectors,+ [+ 'html[data-glass^="liquid"][data-glass]',+ 'html[data-glass^="liquid"][data-glass] :is(.unsloth-composer-surface, .unsloth-files-panel, .wallpaper-preview-composer)',+ ],+ "two attributes on html, like html.dark[data-glass=\"liquid-3d\"]",+ );+ assert.match(rule.toString(), /--glass-sheen: none;/);+ assert.doesNotMatch(CSS.slice(CSS.indexOf(rule.toString())), /--glass-sheen: linear-gradient/, "after every sheen definition");+ });+ });+ assert.equal(found, 1);+});+test("the WebKitGTK rules are unlayered top-level rules", () => {const found: string[] = [];postcss.parse(CSS).walkRules((rule) => {@@ -122,7 +160,11 @@ test("no surface that loses its blur is left with a see-through fill", () => {);const panes = ruleAt('html[data-glass][data-glass-cpu][data-chat-wallpaper-workspace-ready] [data-slot="chat-settings-panel"],');assert.ok(panes.includes("> .browser-chrome,") && panes.includes("> .browser-panel-body {"));- assert.match(panes, /background-color: var\(--glass-panel-fill\);/);+ assert.match(+ panes,+ /background-color: color-mix\(in srgb, var\(--glass-panel-fill\) 96%, transparent\);/,+ "dense, but not opaque: WebKitGTK paints the browser's opaque z-40 tab strip black when the pane opens",+ );assert.match(ruleAt("html[data-glass][data-glass-cpu]:not(.dark) {"), /--glass-control: rgb\(255 255 255 \/ \.8\);/);assert.match(ruleAt('html[data-glass][data-glass-cpu]:not(.dark)[data-chat-wallpaper-workspace-ready] [data-wallpaper-route="page"] > [data-slot="sidebar-inset"],'),diff --git a/studio/frontend/tests/welcome-halo-image-only.test.ts b/studio/frontend/tests/welcome-halo-image-only.test.tsnew file mode 100644index 00000000000..7504cd46d3c--- /dev/null+++ b/studio/frontend/tests/welcome-halo-image-only.test.ts@@ -0,0 +1,38 @@+// SPDX-License-Identifier: AGPL-3.0-only+// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0++// The welcome greeting's halo darkens a background image behind the text. Glass with no image draws a+// plain backdrop in the page colour, where the halo is the same colour as what it covers: it changed+// nothing, and its blending rounded a step dark in places, drawing rings around the greeting.++import assert from "node:assert/strict";+import test from "node:test";++import postcss from "postcss";++import { WALLPAPER_HOST_FLAGS } from "../src/features/chat-background/host-flags.ts";+import { readSrc } from "./helpers/kit.ts";++const CSS = readSrc("index.css");++test("the greeting halo is drawn only where the wallpaper is an image", () => {+ const halos: postcss.Rule[] = [];+ postcss.parse(CSS).walkRules((rule) => {+ if (rule.selector.includes(".unsloth-welcome-greeting::before")) halos.push(rule);+ });+ assert.equal(halos.length, 1, "one halo rule");+ const [halo] = halos;+ for (const selector of halo.selectors) {+ assert.match(selector, /\[data-wallpaper-image\]/, `image hosts only: ${selector}`);+ assert.doesNotMatch(selector, /:has\(/, "a host flag, not a :has() re-checked on every mutation");+ }+ assert.match(halo.toString(), /radial-gradient\(ellipse, color-mix\(in srgb, var\(--background\)/);+});++test("the image flag excludes the plain Glass backdrop", () => {+ const flag = WALLPAPER_HOST_FLAGS.find(([name]) => name === "data-wallpaper-image");+ assert.ok(flag, "the host flag exists");+ assert.equal(flag[1], ":scope > .chat-wallpaper[data-ready]:not([data-glass-backdrop])");+ assert.match(readSrc("features/chat-background/backdrop.tsx"), /data-glass-backdrop=""/);+ assert.match(CSS, /\.glass-backdrop \{ background: var\(--background\); \}/, "the plain backdrop is the page colour");+});