The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.
TypeScript agentai-chatai-studioall-in-onecoding-agentdesktop-appfluximage-generationlinuxllmlocal-ailocal-llmopen-sourceprivacyself-hostedstable-diffusionuncensoreduncensored-aivideo-generationwindows
fix(ui): dialogs are opaque in the light theme (C25)
purplec8ac2b26a01d
diff --git a/src/components/__tests__/light-dialog-is-opaque.test.ts b/src/components/__tests__/light-dialog-is-opaque.test.tsnew file mode 100644index 00000000..4f3d9b9f--- /dev/null+++ b/src/components/__tests__/light-dialog-is-opaque.test.ts@@ -0,0 +1,41 @@+/**+ * C25 (3.1.0): in the light theme every ui/Modal read slightly through to the+ * page behind it. `.light .lu-dialog` was rgba(255,255,255,0.95) wherever the+ * WebView reports backdrop-filter support, which is every current one. The+ * light sheet is opaque white in both branches now; the dark glass keeps its+ * blur.+ *+ * Run: npx vitest run src/components/__tests__/light-dialog-is-opaque.test.ts+ */+import { describe, it, expect } from 'vitest'+import { readFileSync } from 'node:fs'+import { resolve } from 'node:path'++const CSS = readFileSync(resolve(__dirname, '../../index.css'), 'utf8').replace(/\/\*[\s\S]*?\*\//g, '')++function blocks(selector: string): string[] {+ const out: string[] = []+ const re = new RegExp(selector.replace(/[.*+?^${}()|[\]\\]/g, '\\$&') + '\\s*\\{([^}]*)\\}', 'g')+ for (const m of CSS.matchAll(re)) out.push(m[1])+ return out+}++describe('the light dialog sheet', () => {+ const light = blocks('.light .lu-dialog')++ it('is defined for both the plain and the backdrop-filter branch', () => {+ expect(light.length).toBe(2)+ })++ it.each([0, 1])('branch %i paints an opaque background', (i) => {+ const bg = /background:\s*([^;]+);/.exec(light[i])?.[1].trim() ?? ''+ expect(bg).not.toMatch(/rgba\([^)]*,\s*0?\.\d+\s*\)/)+ expect(bg).not.toMatch(/transparent/)+ expect(bg.toLowerCase()).toMatch(/^#fff(fff)?$/)+ })++ it('the dark sheet is still glass, so only light changed', () => {+ const dark = blocks('.lu-dialog').filter((b) => /backdrop-filter:\s*blur/.test(b))+ expect(dark.length).toBe(1)+ })+})diff --git a/src/index.css b/src/index.cssindex 5d334dcb..d3ce44de 100644--- a/src/index.css+++ b/src/index.css@@ -1089,10 +1089,13 @@ input:is(-webkit-backdrop-filter: blur(28px) saturate(150%);backdrop-filter: blur(28px) saturate(150%);}+ /* C25 (3.1.0): light stays fully opaque. At 95 percent white the text,+ cards and images of the page behind showed through every dialog, the+ dark glass hides that, white glass does not. */.light .lu-dialog {- background: rgba(255, 255, 255, 0.95);- -webkit-backdrop-filter: blur(28px) saturate(160%);- backdrop-filter: blur(28px) saturate(160%);+ background: #ffffff;+ -webkit-backdrop-filter: none;+ backdrop-filter: none;}}