Private AI meeting notes that stay on your computer. No meeting bot. Free and open source for Mac, Windows and Linux. An alternative to Granola, Otter and Fireflies.
TypeScript ai-meeting-assistantai-notetakerelectrongranola-alternativelinuxllama-cpplocal-ailocal-firstmacosmcpmeeting-minutesmeeting-notesoffline-firstopen-sourceprivacyspeech-to-texttranscriptionwhisperwhisper-cppwindows
Dark mode: purple buttons use the brand purple with white text
Eric Brownrout69032aa3d458
diff --git a/app/e2e/agendaLoading.spec.ts b/app/e2e/agendaLoading.spec.tsindex 48f5fb20..db47d11e 100644--- a/app/e2e/agendaLoading.spec.ts+++ b/app/e2e/agendaLoading.spec.ts@@ -126,7 +126,7 @@ test('agenda uses each date once while preserving Today and Tomorrow labels', as} finally { await app.close() }})-test('the compact calendar keeps its original type and geometry with a bright today in both themes', async () => {+test('the compact calendar keeps its original type and geometry with distinct selected and current dates in both themes', async () => {const app = await electron.launch({ args: [join(import.meta.dirname, '../out/main/index.js')], env: {...process.env, YOGURT_FAKE: '1', YOGURT_USER_DATA: mkdtempSync(join(tmpdir(), 'yogurt-agenda-states-')),} })@@ -139,9 +139,18 @@ test('the compact calendar keeps its original type and geometry with a bright toconst week = page.locator('.agenda-week')for (const colorScheme of ['light', 'dark'] as const) {await page.emulateMedia({ colorScheme, reducedMotion: 'reduce' })+ const accent = colorScheme === 'light' ? 'rgb(111, 0, 255)' : 'rgb(183, 128, 255)'+ const fill = 'rgb(111, 0, 255)', white = 'rgb(255, 255, 255)'+ for (const id of ['start-recording', 'recording-choices']) {+ const control = page.getByTestId(id)+ await expect(control).toHaveCSS('background-color', fill)+ await expect(control).toHaveCSS('color', white)+ await expect(control.locator('svg')).toHaveCSS('stroke', white)+ }const today = week.locator('[aria-current=date]')- await expect(today.locator('b')).toHaveCSS('background-color', 'rgb(111, 0, 255)')- await expect(today.locator('b')).toHaveCSS('color', 'rgb(255, 255, 255)')+ await today.click()+ await expect(today.locator('b')).toHaveCSS('background-color', fill)+ await expect(today.locator('b')).toHaveCSS('color', white)await expect(today.locator('b')).toHaveCSS('font-size', '11px')await expect(today.locator('b')).toHaveCSS('width', '26px')await expect(today.locator('b')).toHaveCSS('height', '26px')@@ -158,10 +167,12 @@ test('the compact calendar keeps its original type and geometry with a bright toawait page.keyboard.press('Space')await expect(other).toHaveAttribute('aria-pressed', 'true')await expect(today).toHaveAttribute('aria-pressed', 'false')- await expect(today.locator('b')).toHaveCSS('background-color', 'rgb(111, 0, 255)')+ await expect(today.locator('b')).toHaveCSS('border-color', accent)await today.hover()- await expect(today.locator('b')).toHaveCSS('background-color', 'rgb(111, 0, 255)')- await expect(other.locator('b')).toHaveCSS('background-color', colorScheme === 'light' ? 'rgb(241, 230, 255)' : 'rgb(44, 22, 74)')+ await expect(today.locator('b')).toHaveCSS('color', accent)+ await expect(today.locator('b')).toHaveCSS('background-color', 'rgba(0, 0, 0, 0)')+ await expect(other.locator('b')).toHaveCSS('background-color', fill)+ await expect(other.locator('b')).toHaveCSS('color', white)await expect(other).toHaveCSS('outline-style', 'solid')await expect(other).toHaveCSS('outline-width', '2px')// Logical order and hit targets stay within the compact calendar in either direction.diff --git a/app/e2e/askContext.spec.ts b/app/e2e/askContext.spec.tsindex de20e5e4..eb1140c1 100644--- a/app/e2e/askContext.spec.ts+++ b/app/e2e/askContext.spec.ts@@ -248,6 +248,12 @@ test('Ask anchors context growth and retains picker results between searches', aawait page.getByTestId('nav-chat').click()const input = page.getByTestId('chat-page-input'), title = page.locator('.ask-home-title'), composer = page.locator('.ask-composer')await expect(input).toBeEnabled()+ const scope = page.getByTestId('ask-scope')+ await expect(scope).toHaveText('All meetings')+ for (const colorScheme of ['light', 'dark'] as const) {+ await page.emulateMedia({ colorScheme })+ await expect(scope).toHaveCSS('background-color', 'rgba(0, 0, 0, 0)')+ }const top = await title.boundingBox(), composerTop = (await composer.boundingBox())!.yawait input.fill('@')await expect(page.getByRole('option')).toHaveCount(3)@@ -271,6 +277,14 @@ test('Ask anchors context growth and retains picker results between searches', aexpect(await title.boundingBox()).toEqual(top)expect((await composer.boundingBox())!.y).toBe(composerTop)}+ for (const colorScheme of ['light', 'dark'] as const) {+ await page.emulateMedia({ colorScheme })+ for (const id of ['ask-scope', 'ask-scope-clear']) {+ const chip = page.getByTestId(id)+ await expect(chip).toHaveCSS('background-color', 'rgb(111, 0, 255)')+ await expect(chip).toHaveCSS('color', 'rgb(255, 255, 255)')+ }+ }await input.fill('@no-match')await expect(page.locator('.ask-picker')).toContainText('Nothing found')await expect(page.locator('.ask-picker h3')).toHaveCount(0)diff --git a/app/e2e/calendarLink.spec.ts b/app/e2e/calendarLink.spec.tsindex 9e1fa573..e683268b 100644--- a/app/e2e/calendarLink.spec.ts+++ b/app/e2e/calendarLink.spec.ts@@ -35,6 +35,12 @@ test('@everywhere on win32: the agenda sends you to Settings, a calendar link coawait expect(page.getByText("Calendars from the Mac's Calendar app appear above automatically.", { exact: true })).toHaveCount(0)await expect(form.getByTestId('calendar-link-open')).toHaveAttribute('href', /calendar\.google\.com/)await form.getByTestId('calendar-link-provider-outlook').click()+ for (const colorScheme of ['light', 'dark'] as const) {+ await page.emulateMedia({ colorScheme })+ const selected = form.getByRole('tab', { selected: true })+ await expect(selected).toHaveCSS('background-color', 'rgb(111, 0, 255)')+ await expect(selected).toHaveCSS('color', 'rgb(255, 255, 255)')+ }await expect(form.getByTestId('calendar-link-open')).toHaveAttribute('href', /outlook\.office\.com/)// a page that isn't a calendar says so, and nothing is connectedawait form.getByTestId('calendar-link-input').fill(`${base}/page`)diff --git a/app/e2e/firstRunPolish.spec.ts b/app/e2e/firstRunPolish.spec.tsindex c386780e..0ddae296 100644--- a/app/e2e/firstRunPolish.spec.ts+++ b/app/e2e/firstRunPolish.spec.ts@@ -18,6 +18,11 @@ test('download progress keeps its geometry as percentages and phases change', as}for (const colorScheme of ['light', 'dark'] as const) {await page.emulateMedia({ colorScheme })+ if (!before) {+ const accent = colorScheme === 'dark' ? 'rgb(183, 128, 255)' : 'rgb(111, 0, 255)'+ await expect(page.getByTestId('wordmark').locator('path').first()).toHaveCSS('fill', accent)+ await expect(page.getByTestId('download-blob').locator('.icon-art stop[offset=".45"]').first()).toHaveCSS('stop-color', accent)+ }let initial: { x: number; y: number; width: number; height: number } | undefinedfor (const fraction of [.09, .1, .99, 1]) {await app.evaluate(({ BrowserWindow }, fraction) => BrowserWindow.getAllWindows()[0].webContents.send('setup:state', { phase: 'downloading', fraction }), fraction)@@ -54,6 +59,7 @@ test('first-run notification stands alone and help stays in a bounded disclosure}for (const colorScheme of ['light', 'dark'] as const) {await page.emulateMedia({ colorScheme })+ if (!before) await expect.poll(() => page.locator('.ob-prompt-icon img').evaluate(el => (el as HTMLImageElement).currentSrc.endsWith('/favicon-dark.png'))).toBe(colorScheme === 'dark')await page.screenshot({ path: info.outputPath(`notification-art-${before ? 'before' : 'after'}-${colorScheme}.png`) })expect(await page.locator('.setup-screen').evaluate(el => getComputedStyle(el).backgroundColor)).toMatch(/^rgb\(/)}@@ -177,7 +183,7 @@ test('permission help starts collapsed and uses the same secondary action in onbawait expect(help).not.toHaveAttribute('open', '')for (const colorScheme of ['light', 'dark'] as const) {await page.emulateMedia({ colorScheme })- await expect(page.locator('.ob-switch-on')).toHaveCSS('background-color', colorScheme === 'light' ? 'rgb(111, 0, 255)' : 'rgb(183, 128, 255)')+ await expect(page.locator('.ob-switch-on')).toHaveCSS('background-color', 'rgb(111, 0, 255)')await expect(page.getByTestId('settings-guide-relaunch')).not.toBeVisible()if (surface === 'settings') expect(await help.evaluate(el => {const r = el.getBoundingClientRect()diff --git a/app/e2e/modelRecovery.spec.ts b/app/e2e/modelRecovery.spec.tsindex 461f39dc..cdcfc19c 100644--- a/app/e2e/modelRecovery.spec.ts+++ b/app/e2e/modelRecovery.spec.ts@@ -39,7 +39,7 @@ test('a failed notes-model download explains waiting notes and answers, and retrconst cancel = page.getByTestId('chat-stop')await expect(cancel).toHaveAccessibleName('Cancel question')await expect(cancel).toHaveAttribute('title', 'Cancel question')- await expect(cancel).not.toHaveClass(/bg-accent/)+ await expect(cancel).not.toHaveCSS('background-color', 'rgb(111, 0, 255)')await cancel.click()await expect(page.getByTestId('chat-turn')).toHaveAttribute('data-status', 'stopped')await expect(page.getByTestId('chat-question')).toHaveText('What was decided?')diff --git a/app/e2e/speakerColors.spec.ts b/app/e2e/speakerColors.spec.tsindex 06c9c4f5..e113c266 100644--- a/app/e2e/speakerColors.spec.ts+++ b/app/e2e/speakerColors.spec.ts@@ -44,11 +44,11 @@ for (const theme of ['light', 'dark'] as const) test(`speaker colours agree acrofor (let i = 0; i < names.length; i++) await expect(previewNames.filter({ hasText: names[i] })).toHaveAttribute('data-color', String(i))await expect(previewNames.filter({ hasText: 'You' }).first()).not.toHaveAttribute('data-color')await preview.getByTestId('widget-preview-text').evaluate(el => { el.scrollTop = el.scrollHeight })- // The app appearance changes the note palette; the floating preview always stays dark.+ // Violet follows the app appearance on both surfaces, including the charcoal recorder.const noteColour = await noteNames.filter({ hasText: names[0] }).last().evaluate(el => getComputedStyle(el).color)const previewColour = await previewNames.filter({ hasText: names[0] }).evaluate(el => getComputedStyle(el).color)- expect(noteColour).toBe(theme === 'dark' ? 'rgb(185, 149, 255)' : 'rgb(116, 52, 202)')- expect(previewColour).toBe('rgb(185, 149, 255)')+ expect(noteColour).toBe(theme === 'dark' ? 'rgb(183, 128, 255)' : 'rgb(111, 0, 255)')+ expect(previewColour).toBe(noteColour)await preview.reload()await preview.getByTestId('widget').hover()await expect(preview.locator('.widget-preview-speaker').filter({ hasText: names[0] })).toHaveAttribute('data-color', '0')diff --git a/app/e2e/widget.spec.ts b/app/e2e/widget.spec.tsindex 4e42c4f0..650032ad 100644--- a/app/e2e/widget.spec.ts+++ b/app/e2e/widget.spec.ts@@ -64,6 +64,12 @@ test('the widget is a compact horizontal recorder with one live wave and no exteawait expect(w.getByTestId('widget-stop')).toHaveCount(0)await expect(w.getByTestId('widget-resume')).toHaveCount(0)await expect(w.getByTestId('logo')).toBeVisible()+ for (const colorScheme of ['light', 'dark'] as const) {+ await w.emulateMedia({ colorScheme })+ const accent = colorScheme === 'dark' ? 'rgb(183, 128, 255)' : 'rgb(111, 0, 255)'+ await expect(w.getByTestId('logo').locator('path')).toHaveCSS('fill', accent)+ await expect(w.getByTestId('widget-wave')).toHaveCSS('color', accent)+ }} finally { await app.close() }})diff --git a/app/resources/tray-color-dark.png b/app/resources/tray-color-dark.pngnew file mode 100644index 00000000..80b53bb1Binary files /dev/null and b/app/resources/tray-color-dark.png differdiff --git a/app/resources/[email protected] b/app/resources/[email protected]new file mode 100644index 00000000..c6f02d11Binary files /dev/null and b/app/resources/[email protected] differdiff --git a/app/resources/tray-color.png b/app/resources/tray-color.pngindex a61952e1..76924df5 100644Binary files a/app/resources/tray-color.png and b/app/resources/tray-color.png differdiff --git a/app/resources/[email protected] b/app/resources/[email protected]index 1ff8e056..f8332aa6 100644Binary files a/app/resources/[email protected] and b/app/resources/[email protected] differdiff --git a/app/resources/tray-recording-dark.png b/app/resources/tray-recording-dark.pngnew file mode 100644index 00000000..7ec2a29eBinary files /dev/null and b/app/resources/tray-recording-dark.png differdiff --git a/app/resources/[email protected] b/app/resources/[email protected]new file mode 100644index 00000000..982debb7Binary files /dev/null and b/app/resources/[email protected] differdiff --git a/app/resources/tray-recording.png b/app/resources/tray-recording.pngindex 7c420ff6..32deb740 100644Binary files a/app/resources/tray-recording.png and b/app/resources/tray-recording.png differdiff --git a/app/resources/[email protected] b/app/resources/[email protected]index 7a03a8ee..e2ecae4b 100644Binary files a/app/resources/[email protected] and b/app/resources/[email protected] differdiff --git a/app/src/main/tray.ts b/app/src/main/tray.tsindex 8f0ac1bc..5b43001c 100644--- a/app/src/main/tray.ts+++ b/app/src/main/tray.ts@@ -1,4 +1,4 @@-import { app, Menu, nativeImage, powerMonitor, systemPreferences, Tray, type MenuItemConstructorOptions } from 'electron'+import { app, Menu, nativeImage, nativeTheme, powerMonitor, systemPreferences, Tray, type MenuItemConstructorOptions } from 'electron'import { existsSync } from 'node:fs'import { join } from 'node:path'import { activeMeeting, onMeetingChange } from './meeting'@@ -78,6 +78,7 @@ export function createTray(d: { show: boolean; visible?: boolean; showNextMeetin}const look = (m: ReturnType<typeof activeMeeting>, next?: CalEvent, at = now()) =>trayLook(os, m ? { paused: recordingPaused(m.id) } : null, m ? d.elapsed() : 0, next, at, systemTrayTime)+ const themedIcon = (name: string) => os !== 'darwin' && nativeTheme.shouldUseDarkColors ? name + '-dark' : nameconst image = (name: string) => {const icon = nativeImage.createFromPath(iconPath(name))if (os === 'darwin') icon.setTemplateImage(true)@@ -97,7 +98,8 @@ export function createTray(d: { show: boolean; visible?: boolean; showNextMeetinif (untilChange < 60_000 - at % 60_000) boundary = setTimeout(updateLook, untilChange).unref()}const l = look(m, next, at)- if (l.icon !== iconName) { tray.setImage(image(l.icon)); iconName = l.icon }+ const name = themedIcon(l.icon)+ if (name !== iconName) { tray.setImage(image(name)); iconName = name }if (l.title !== null && l.title !== lastTitle) { tray.setTitle(l.title, { fontType: 'monospacedDigit' }); lastTitle = l.title }if (l.tooltip !== lastTooltip) { tray.setToolTip(l.tooltip); lastTooltip = l.tooltip }}@@ -124,7 +126,7 @@ export function createTray(d: { show: boolean; visible?: boolean; showNextMeetintray = undefinedlastTitle = lastTooltip = undefined} else if (!tray) {- iconName = look(activeMeeting()).icon+ iconName = themedIcon(look(activeMeeting()).icon)tray = new Tray(image(iconName))tray.on('mouse-down', refresh)// Windows: a left click opens Yogurt and a right click shows the menu (Linux trays mostly show the menu)@@ -157,7 +159,11 @@ export function createTray(d: { show: boolean; visible?: boolean; showNextMeetin}tick()powerMonitor.on('resume', tick)- app.on('will-quit', () => { clearInterval(clock); clearTimeout(calendar); clearTimeout(boundary); powerMonitor.off('resume', tick) })+ if (os !== 'darwin') nativeTheme.on('updated', updateLook)+ app.on('will-quit', () => {+ clearInterval(clock); clearTimeout(calendar); clearTimeout(boundary); powerMonitor.off('resume', tick)+ if (os !== 'darwin') nativeTheme.off('updated', updateLook)+ })onMeetingChange(refresh)onLanguage(refresh)onRecordingEvent((e) => {diff --git a/app/src/renderer/index.html b/app/src/renderer/index.htmlindex 51962082..f24bc586 100644--- a/app/src/renderer/index.html+++ b/app/src/renderer/index.html@@ -3,7 +3,8 @@<head><meta charset="UTF-8" /><title>Yogurt</title>- <link rel="icon" type="image/png" href="/favicon.png" />+ <link rel="icon" type="image/png" href="/favicon.png" media="(prefers-color-scheme: light)" />+ <link rel="icon" type="image/png" href="/favicon-dark.png" media="(prefers-color-scheme: dark)" /></head><body><div id="root"></div>diff --git a/app/src/renderer/public/favicon-dark.png b/app/src/renderer/public/favicon-dark.pngnew file mode 100644index 00000000..9f896ba8Binary files /dev/null and b/app/src/renderer/public/favicon-dark.png differdiff --git a/app/src/renderer/src/components/DownloadBlob.tsx b/app/src/renderer/src/components/DownloadBlob.tsxindex 4c60b644..ec7e0acb 100644--- a/app/src/renderer/src/components/DownloadBlob.tsx+++ b/app/src/renderer/src/components/DownloadBlob.tsx@@ -106,6 +106,6 @@ export function DownloadBlob({ fraction, paused = false, onShown }: {<feTurbulence type="fractalNoise" baseFrequency=".018 .022" numOctaves="1" seed="9" result="warp"/><feDisplacementMap className="displacement" in="SourceGraphic" in2="warp" scale="10" xChannelSelector="R" yChannelSelector="G"/><feGaussianBlur className="blur" stdDeviation="2.85"/><feColorMatrix className="threshold" type="matrix" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 16.47 -7.735"/>- </filter><linearGradient id={`${id}-drops-light`} gradientUnits="userSpaceOnUse" x1="-46" y1="-46" x2="-23" y2="46"><stop stopColor="#8f38ff"/><stop offset=".45" stopColor="#6F00FF"/><stop offset="1" stopColor="#5b00d1"/></linearGradient></defs>- <g className="goo-group" filter={`url(#${id}-goo-light)`}><g className="mass" transform="translate(120 120)"><g fill={`url(#${id}-drops-light)`}><circle className="drop" r="0"/><circle className="drop" r="0"/><circle className="drop" r="0"/><circle className="drop" r="0"/><circle className="drop" r="0"/><circle className="drop" r="0"/><circle className="lobe" r="0"/><circle className="lobe" r="0"/></g><g className="icon-art" transform="scale(0.3898305084745763) translate(-128 -128)"><defs><linearGradient id={`${id}-light-face`} x1="0" y1="0" x2=".25" y2="1"><stop stopColor="#8f38ff"/><stop offset=".45" stopColor="#6F00FF"/><stop offset="1" stopColor="#5b00d1"/></linearGradient><linearGradient id={`${id}-light-rim`} x2=".2" y2="1"><stop stopColor="#d8baff"/><stop offset=".48" stopColor="#b073ff"/><stop offset="1" stopColor="#6200e0"/></linearGradient><filter id={`${id}-light-grain`}><feTurbulence type="fractalNoise" baseFrequency=".8" numOctaves="3" stitchTiles="stitch"/><feColorMatrix type="saturate" values="0"/><feComposite in2="SourceGraphic" operator="in"/><feBlend in="SourceGraphic" mode="soft-light"/></filter><filter id={`${id}-light-mark-shadow`} x="-30%" y="-20%" width="160%" height="160%"><feDropShadow dx="0" dy="2.5" stdDeviation="2" floodColor="#320073" floodOpacity=".32"/></filter><clipPath id={`${id}-light-face-clip`}><rect x="10" y="10" width="236" height="236" rx="53"/></clipPath></defs><rect x="10" y="10" width="236" height="236" rx="53" fill={`url(#${id}-light-face)`}/><rect x="10" y="10" width="236" height="236" rx="53" fill="#6F00FF" filter={`url(#${id}-light-grain)`} opacity=".18" clipPath={`url(#${id}-light-face-clip)`}/><g className="icon-rim" opacity="0"><rect x="10.8" y="10.8" width="234.4" height="234.4" rx="52.2" fill="none" stroke="#6200e0" strokeWidth="1.6"/><rect x="14" y="14" width="228" height="228" rx="49" fill="none" stroke={`url(#${id}-light-rim)`} strokeWidth="2"/></g></g></g></g><g className="mark-motion" transform="translate(120 120)"><g className="crisp-mark" transform="scale(0.3898305084745763) translate(-128 -128)"><path d={MARK} transform="translate(52.10208070530504 52.10208070530504) scale(1.5179583858938992)" fill="#fff" filter={`url(#${id}-light-mark-shadow)`}/></g></g><defs><clipPath id={`${id}-finish-clip-light`}><rect x="74" y="74" width="92" height="92" rx="20.661016949152543"/></clipPath><linearGradient id={`${id}-finish-light-light`} x1="0" y1="0" x2="1" y2="0"><stop stopColor="#fff" stopOpacity="0"/><stop offset=".5" stopColor="#fff" stopOpacity=".18"/><stop offset="1" stopColor="#fff" stopOpacity="0"/></linearGradient></defs><g className="finish-shimmer" clipPath={`url(#${id}-finish-clip-light)`}><g className="finish-band"><rect x="100" y="40" width="40" height="160" transform="rotate(-25 120 120)" fill={`url(#${id}-finish-light-light)`}/></g></g></svg>);+ </filter><linearGradient id={`${id}-drops-light`} gradientUnits="userSpaceOnUse" x1="-46" y1="-46" x2="-23" y2="46"><stop stopColor="color-mix(in srgb, var(--accent) 80%, white)"/><stop offset=".45" stopColor="var(--accent)"/><stop offset="1" stopColor="color-mix(in srgb, var(--accent) 82%, black)"/></linearGradient></defs>+ <g className="goo-group" filter={`url(#${id}-goo-light)`}><g className="mass" transform="translate(120 120)"><g fill={`url(#${id}-drops-light)`}><circle className="drop" r="0"/><circle className="drop" r="0"/><circle className="drop" r="0"/><circle className="drop" r="0"/><circle className="drop" r="0"/><circle className="drop" r="0"/><circle className="lobe" r="0"/><circle className="lobe" r="0"/></g><g className="icon-art" transform="scale(0.3898305084745763) translate(-128 -128)"><defs><linearGradient id={`${id}-light-face`} x1="0" y1="0" x2=".25" y2="1"><stop stopColor="color-mix(in srgb, var(--accent) 80%, white)"/><stop offset=".45" stopColor="var(--accent)"/><stop offset="1" stopColor="color-mix(in srgb, var(--accent) 82%, black)"/></linearGradient><linearGradient id={`${id}-light-rim`} x2=".2" y2="1"><stop stopColor="color-mix(in srgb, var(--accent) 28%, white)"/><stop offset=".48" stopColor="color-mix(in srgb, var(--accent) 55%, white)"/><stop offset="1" stopColor="color-mix(in srgb, var(--accent) 92%, black)"/></linearGradient><filter id={`${id}-light-grain`}><feTurbulence type="fractalNoise" baseFrequency=".8" numOctaves="3" stitchTiles="stitch"/><feColorMatrix type="saturate" values="0"/><feComposite in2="SourceGraphic" operator="in"/><feBlend in="SourceGraphic" mode="soft-light"/></filter><filter id={`${id}-light-mark-shadow`} x="-30%" y="-20%" width="160%" height="160%"><feDropShadow dx="0" dy="2.5" stdDeviation="2" floodColor="black" floodOpacity=".32"/></filter><clipPath id={`${id}-light-face-clip`}><rect x="10" y="10" width="236" height="236" rx="53"/></clipPath></defs><rect x="10" y="10" width="236" height="236" rx="53" fill={`url(#${id}-light-face)`}/><rect x="10" y="10" width="236" height="236" rx="53" fill="var(--accent)" filter={`url(#${id}-light-grain)`} opacity=".18" clipPath={`url(#${id}-light-face-clip)`}/><g className="icon-rim" opacity="0"><rect x="10.8" y="10.8" width="234.4" height="234.4" rx="52.2" fill="none" stroke="color-mix(in srgb, var(--accent) 92%, black)" strokeWidth="1.6"/><rect x="14" y="14" width="228" height="228" rx="49" fill="none" stroke={`url(#${id}-light-rim)`} strokeWidth="2"/></g></g></g></g><g className="mark-motion" transform="translate(120 120)"><g className="crisp-mark" transform="scale(0.3898305084745763) translate(-128 -128)"><path d={MARK} transform="translate(52.10208070530504 52.10208070530504) scale(1.5179583858938992)" fill="#fff" filter={`url(#${id}-light-mark-shadow)`}/></g></g><defs><clipPath id={`${id}-finish-clip-light`}><rect x="74" y="74" width="92" height="92" rx="20.661016949152543"/></clipPath><linearGradient id={`${id}-finish-light-light`} x1="0" y1="0" x2="1" y2="0"><stop stopColor="#fff" stopOpacity="0"/><stop offset=".5" stopColor="#fff" stopOpacity=".18"/><stop offset="1" stopColor="#fff" stopOpacity="0"/></linearGradient></defs><g className="finish-shimmer" clipPath={`url(#${id}-finish-clip-light)`}><g className="finish-band"><rect x="100" y="40" width="40" height="160" transform="rotate(-25 120 120)" fill={`url(#${id}-finish-light-light)`}/></g></g></svg>);}diff --git a/app/src/renderer/src/components/Logo.tsx b/app/src/renderer/src/components/Logo.tsxindex 1739952d..b910c1f8 100644--- a/app/src/renderer/src/components/Logo.tsx+++ b/app/src/renderer/src/components/Logo.tsx@@ -1,3 +1,4 @@+import lightIcon from '../../../../build/icon.png'import { MARK, WORD } from '../../../shared/logo'/** The Yogurt mark. */@@ -13,8 +14,16 @@ export function Logo({ size = 28, className = 'text-accent' }: { size?: number;export function Wordmark({ height = 32 }: { height?: number }) {return (<svg data-testid="wordmark" role="img" aria-label="Yogurt" height={height} width={(height * 286) / 80} viewBox="0 0 286 80" className="shrink-0">- <path style={{ fill: 'color-mix(in srgb, var(--primary), var(--accent))' }} transform="translate(0 5) scale(.65)" d={MARK} />+ <path fill="var(--accent)" transform="translate(0 5) scale(.65)" d={MARK} /><path className="text-ink" fill="currentColor" transform="translate(82 55) scale(.068 -.068)" d={WORD} /></svg>)}++/** The app tile used by the call prompt and its onboarding illustration. */+export function AppIcon({ className }: { className: string }) {+ return <picture className={className}>+ <source media="(prefers-color-scheme: dark)" srcSet="./favicon-dark.png" />+ <img src={lightIcon} alt="" className="size-full" />+ </picture>+}diff --git a/app/src/renderer/src/components/OnboardingArt.tsx b/app/src/renderer/src/components/OnboardingArt.tsxindex b428b070..4eaf6e34 100644--- a/app/src/renderer/src/components/OnboardingArt.tsx+++ b/app/src/renderer/src/components/OnboardingArt.tsx@@ -1,12 +1,11 @@import { AudioLines, CalendarDays, Mic, PhoneOff, Plus, Video, X } from './Icons'import type { PermissionKind } from '../../../shared/types'-import { Logo } from './Logo'+import { AppIcon, Logo } from './Logo'import { t } from '../../../shared/i18n'import { RecordingPill } from './RecordingPill'import rayPhoto from '../assets/onboarding/ray.webp'import lincolnPhoto from '../assets/onboarding/lincoln.webp'import mayaPhoto from '../assets/onboarding/maya.webp'-import macIcon from '../../../../build/icon.png'/** The first run's pictures, built from the app's own surfaces so they match both themes. Each shows what its screen@@ -99,7 +98,7 @@ function NoticeArt() {return (<div className="ob-scene ob-notice"><div className="ob-prompt" data-testid="notice-art">- <img src={macIcon} alt="" className="ob-prompt-icon" />+ <AppIcon className="ob-prompt-icon" /><span className="ob-prompt-copy"><span className="ob-prompt-label">{t('Take notes?')}</span><span className="ob-prompt-title">{t('{app} call', { app: 'Zoom' })}</span></span><span className="ob-prompt-button">{t('Start recording')}</span><X size={13} className="ob-prompt-close" />diff --git a/app/src/renderer/src/components/Player.tsx b/app/src/renderer/src/components/Player.tsxindex 6b9ead12..c08a4f47 100644--- a/app/src/renderer/src/components/Player.tsx+++ b/app/src/renderer/src/components/Player.tsx@@ -166,7 +166,7 @@ function MeetingPlayer({ id, tracks, openTranscript, ref, onTime, onPlaying, onB</InlineError>}{shown.length > 0 && <div className="flex items-center gap-2"><button data-testid="player-toggle" aria-label={playing ? t('Pause') : t('Play')} onClick={() => (playing ? pause() : play())}- className="player-btn flex size-[26px] shrink-0 items-center justify-center rounded-full bg-accent text-accent-ink">+ className="player-btn flex size-[26px] shrink-0 items-center justify-center rounded-full bg-primary text-primary-ink"><Swap show={playing ? 'pause' : 'play'} options={{ play: <Play size={13} fill="currentColor" strokeWidth={0} className="ms-0.5" />, pause: <Pause size={13} fill="currentColor" strokeWidth={0} /> }} /></button><span className="w-9 shrink-0 text-end tabular-nums">{clock(time * 1000)}</span>diff --git a/app/src/renderer/src/setup.css b/app/src/renderer/src/setup.cssindex ad2b803f..bb0fbcb5 100644--- a/app/src/renderer/src/setup.css+++ b/app/src/renderer/src/setup.css@@ -37,7 +37,7 @@.settings-toggle[aria-checked=true] { background:var(--primary);border-color:var(--primary);box-shadow:inset 0 1px 2px #00000014; }.settings-toggle:hover:not([aria-checked=true],:disabled,[aria-disabled=true]) { border-color:var(--muted); }.settings-toggle-knob { position:absolute;inset-block-start:2px;inset-inline-start:2px;width:16px;height:16px;border-radius:50%;background:#fff;transition:transform var(--dur-base) var(--ease-soft),width var(--dur-micro) var(--ease-out); }-.settings-toggle[aria-checked=true] .settings-toggle-knob { background:linear-gradient(#fff,#f5f5f7);box-shadow:0 1px 3px #0003,inset 0 0 0 .5px #0000000a;transform:translateX(16px); }+.settings-toggle[aria-checked=true] .settings-toggle-knob { background:var(--primary-ink);box-shadow:0 1px 3px #0003,inset 0 0 0 .5px #0000000a;transform:translateX(16px); }.settings-toggle:dir(rtl)[aria-checked=true] .settings-toggle-knob { transform:translateX(-16px); }/* the knob slides past and settles, and stretches toward where it's going while pressed */.settings-toggle:active:not(:disabled,[aria-disabled=true]) .settings-toggle-knob { width:20px; }@@ -170,19 +170,19 @@* note keep their place on every screen (fixed room for each), so only the words change.*/.ob {- --ob-stage-bg: radial-gradient(90% 70% at 50% 40%, #FFFFFF 0%, #F7F5FB 48%, #F0EEF4 100%);- --ob-stage-line: #ECEAF0;- --ob-card-shadow: 0 1px 2px #17171A0A, 0 10px 28px -8px #2A1A4A24;- --ob-desk: linear-gradient(160deg, #E6DFF6, #F2EEF9 55%, #ECE8F1);+ --ob-stage-bg: radial-gradient(90% 70% at 50% 40%, #FFFFFF 0%, color-mix(in srgb,var(--accent) 2%,#FAFAFA) 48%, color-mix(in srgb,var(--accent) 2%,#F3F3F3) 100%);+ --ob-stage-line: color-mix(in srgb,var(--accent) 2%,#EFEFEF);+ --ob-card-shadow: 0 1px 2px #17171A0A, 0 10px 28px -8px color-mix(in srgb,var(--accent) 8%,transparent);+ --ob-desk: linear-gradient(160deg, color-mix(in srgb,var(--accent) 11%,var(--card)), color-mix(in srgb,var(--accent) 4%,var(--card)) 55%, color-mix(in srgb,var(--accent) 6%,var(--card)));--ob-desk-bar: #FFFFFF99;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.08fr);flex:1;min-height:0;}@media (prefers-color-scheme: dark) {.ob {- --ob-stage-bg: radial-gradient(90% 70% at 50% 40%, #27262C 0%, #212024 52%, #1D1D1F 100%);+ --ob-stage-bg: radial-gradient(90% 70% at 50% 40%, color-mix(in srgb,var(--accent) 4%,#222) 0%, color-mix(in srgb,var(--accent) 2%,#1E1E1E) 52%, #1D1D1F 100%);--ob-stage-line: #2C2C30;--ob-card-shadow: 0 1px 2px #00000033, 0 14px 32px -10px #00000080;- --ob-desk: linear-gradient(160deg, #2E2839, #252329 60%, #201F23);+ --ob-desk: linear-gradient(160deg, color-mix(in srgb,var(--accent) 11%,var(--card)), color-mix(in srgb,var(--accent) 4%,var(--card)) 60%, var(--card));--ob-desk-bar: #00000040;}}@@ -208,12 +208,11 @@.ob-button { display:inline-flex;align-items:center;justify-content:center;gap:7px;height:36px;min-width:112px;padding:0 18px;border:1px solid transparent;border-radius:9px;font-size:13px;line-height:18px;font-weight:550;white-space:nowrap;transition:background-color var(--dur-micro) ease,color var(--dur-micro) ease,box-shadow var(--dur-micro) ease,transform var(--dur-micro) var(--ease-out); }.ob-button:active:not(:disabled) { transform:scale(.97); }.ob-button:disabled { opacity:.55;cursor:default; }-.ob-button.primary { color:#fff;background:linear-gradient(180deg,#8A3DFF,#6F00FF 60%,#6700EC);border-color:#6200E0;box-shadow:inset 0 1px 0 #FFFFFF40,0 1px 2px #4A00AA2E,0 4px 12px -4px #6F00FF73; }-.ob-button.primary:hover:not(:disabled) { background:linear-gradient(180deg,#8030FF,#6600EB); }-.ob-button:focus-visible { outline:2px solid #6F00FF38;outline-offset:2px; }+.ob-button.primary { color:var(--primary-ink);background:linear-gradient(180deg,#FFFFFF24,transparent 60%,#00000009),var(--primary);border-color:var(--primary-hover);box-shadow:inset 0 1px 0 #FFFFFF40,0 1px 2px #0000002E,0 4px 12px -4px color-mix(in srgb,var(--accent) 45%,transparent); }+.ob-button.primary:hover:not(:disabled) { background-color:var(--primary-hover); }+.ob-button:focus-visible { outline:2px solid var(--focus);outline-offset:2px; }@media (prefers-color-scheme: dark) {- .ob-button.primary { border-color:#7A1CFF;box-shadow:inset 0 1px 0 #FFFFFF33,0 1px 2px #00000066,0 6px 16px -6px #6F00FFA6; }- .ob-button:focus-visible { outline-color:#C599FF4D; }+ .ob-button.primary { box-shadow:inset 0 1px 0 #FFFFFF33,0 1px 2px #00000066,0 6px 16px -6px color-mix(in srgb,var(--accent) 65%,transparent); }}.ob-note { display:flex;flex-direction:column;align-items:flex-start;gap:3px;max-width:372px;font-size:12px;line-height:18px;color:var(--muted); }@@ -226,7 +225,7 @@.ob-progress { display:flex;flex:none;flex-direction:column;gap:10px;width:300px;max-width:100%;height:80px; }.ob-progress-track { height:6px;overflow:hidden;border-radius:3px;background:var(--control); }-.ob-progress-fill { height:100%;border-radius:inherit;background:linear-gradient(90deg,#8A3DFF,#6F00FF);transform-origin:left;transition:transform 240ms ease; }+.ob-progress-fill { height:100%;border-radius:inherit;background:var(--accent);transform-origin:left;transition:transform 240ms ease; }[dir=rtl] .ob-progress-fill { transform-origin:right; }.ob-progress-label { display:grid;grid-template-columns:minmax(0,1fr) 5ch;gap:10px;min-height:54px;font-size:12px;line-height:18px;color:var(--muted);font-variant-numeric:tabular-nums; }.ob-progress-percent { text-align:end;white-space:nowrap; }@@ -370,8 +369,8 @@[dir=rtl] .ob-switch-on { --knob-travel:-11px; }.ob-switch-on::after { animation:ob-switch-knob 3.6s ease infinite; }@keyframes ob-row { 0%,25% { background:transparent; } 35%,88% { background:var(--accent-soft); } 100% { background:transparent; } }-@keyframes ob-switch-bg { 0%,35% { background:var(--control-pressed); } 45%,90% { background:var(--accent); } 100% { background:var(--control-pressed); } }-@keyframes ob-switch-knob { 0%,35%,100% { transform:translateX(0); } 45%,90% { transform:translateX(var(--knob-travel)); } }+@keyframes ob-switch-bg { 0%,35% { background:var(--control-pressed); } 45%,90% { background:var(--primary); } 100% { background:var(--control-pressed); } }+@keyframes ob-switch-knob { 0%,35%,100% { transform:translateX(0); } 45%,90% { transform:translateX(var(--knob-travel));background:var(--primary-ink); } }/* a wide stage draws the picture larger, so it fills its room the way a product shot would */@container (min-width: 520px) { .ob-scene,.ob-settings { zoom:1.22; } }@@ -411,8 +410,8 @@/* the end of each story, still */.ob-swap-from { animation:none;opacity:0; }.ob-swap-to { animation:none;opacity:1;filter:none; }- .ob-switch-on { animation:none;background:var(--accent); }- .ob-switch-on::after { animation:none;transform:translateX(var(--knob-travel)); }+ .ob-switch-on { animation:none;background:var(--primary); }+ .ob-switch-on::after { animation:none;transform:translateX(var(--knob-travel));background:var(--primary-ink); }.ob-settings-yogurt { background:var(--accent-soft); }}@@ -443,7 +442,7 @@.calendar-link-fields { display:flex;flex-direction:column;gap:12px;min-width:0;border:0;padding:0;margin:0; }.calendar-link-providers { display:flex;gap:4px; }.calendar-link-provider { padding:3px 10px;border-radius:999px;border:1px solid var(--line);font-size:12px;color:var(--muted);background:transparent; }-.calendar-link-provider[aria-selected="true"] { border-color:currentColor;color:var(--accent); }+.calendar-link-provider[aria-selected="true"] { border-color:var(--primary);background:var(--primary);color:var(--primary-ink); }.calendar-link-steps { margin:0;padding-inline-start:18px;list-style:decimal;display:flex;flex-direction:column;gap:2px; }.calendar-link-open { align-self:flex-start; }.calendar-link-field { display:flex;flex-direction:column;gap:6px; }diff --git a/app/src/renderer/src/styles.css b/app/src/renderer/src/styles.cssindex 1a9ff651..d6f4ae07 100644--- a/app/src/renderer/src/styles.css+++ b/app/src/renderer/src/styles.css@@ -28,9 +28,13 @@--ink: #23242A;--muted: #6E6F7B;--line: #E6E6EC;- --accent: #7142E8;- --accent-ink: #FFFFFF;- --accent-soft: #EDE6FC;+ --accent: #6F00FF;+ --primary: #6F00FF;+ --primary-hover: color-mix(in srgb, var(--primary) 92%, black);+ --focus: var(--accent);+ --pill-accent: var(--accent);+ --primary-ink: #FFFFFF;+ --accent-soft: color-mix(in srgb, var(--accent) 10%, var(--bg));--status-live: #416D48;--danger: #C13E51;--danger-ink: #FFFFFF;@@ -43,7 +47,6 @@--scrim: rgba(20, 18, 28, .18);--pill: #232229;--pill-ink: #FAF9FF;- --pill-accent: #CCB6FF;}@media (prefers-color-scheme: dark) {:root {@@ -52,9 +55,8 @@--ink: #EEEFF4;--muted: #9A9BA9;--line: #32333D;- --accent: #AF8BFF;- --accent-ink: #241637;- --accent-soft: #35284F;+ --accent: #B780FF;+ --accent-soft: color-mix(in srgb, var(--accent) 16%, var(--bg));--status-live: #AED4B5;--danger: #F28798;--danger-ink: #32121B;@@ -67,7 +69,6 @@--scrim: rgba(0, 0, 0, .45);--pill: #25232E;--pill-ink: #FAF9FF;- --pill-accent: #CCB6FF;}}@@ -83,19 +84,13 @@--heading: #29292C;--written: #54545A;--line: #E6E6E8;- --accent: #6F00FF;- --accent-ink: #FFFFFF;- --accent-soft: #F1E6FF;- --playback-bg: #E5D4FF;- --playback-ink: #35105F;- --primary: #6F00FF;- --primary-hover: #6200E0;+ --playback-bg: color-mix(in srgb, var(--accent) 17%, var(--bg));+ --playback-ink: var(--ink);--control: #ECECEE;--control-hover: #E4E4E7;--control-pressed: #DCDCE1;--control-border: transparent;- --selected: #E4E2E8;- --focus: #6F00FF;+ --selected: color-mix(in srgb, var(--accent) 4%, var(--control-hover));--danger: #B63C4D;--danger-ink: #FFFFFF;--danger-soft: #F4E5E8;@@ -115,18 +110,10 @@--heading: #E7E6EB;--written: #C6C3CC;--line: #343436;- --accent: #B780FF;- --accent-ink: #FFFFFF;- --accent-soft: #2C164A;- --playback-bg: #7040AF;- --playback-ink: #FFFFFF;- --primary: #6F00FF;- --primary-hover: #7D1AFF;+ --playback-bg: var(--accent-soft);--control: #333335;--control-hover: #3B3B3E;--control-pressed: #434347;- --selected: #3B393F;- --focus: #C599FF;--danger: #F098A5;--danger-ink: #32121B;--danger-soft: #59343C;@@ -146,7 +133,8 @@--color-muted: var(--muted);--color-line: var(--line);--color-accent: var(--accent);- --color-accent-ink: var(--accent-ink);+ --color-primary: var(--primary);+ --color-primary-ink: var(--primary-ink);--color-accent-soft: var(--accent-soft);--color-danger: var(--danger);--color-danger-ink: var(--danger-ink);@@ -180,7 +168,7 @@ body {/* The recorder floats inside a transparent native window. */html.widget, html.widget body, html.widget #root { background: transparent; }-html.widget, .widget-pill[data-illustration] { --pill:#232326;--pill-ink:#F7F7FA;--accent:#B780FF;--pill-accent:var(--accent);--widget-line:#48484D; }+html.widget, .widget-pill[data-illustration] { --pill:#232326;--pill-ink:#F7F7FA;--widget-line:#48484D; }.widget-pill {background: var(--pill);border:1px solid var(--widget-line);@@ -503,7 +491,7 @@ html.widget, .widget-pill[data-illustration] { --pill:#232326;--pill-ink:#F7F7FA.modal-button:hover:not(:disabled) { background:var(--control-hover); }.modal-button.danger { color:var(--danger-control-ink);background:var(--danger-soft); }.modal-button.danger:hover:not(:disabled) { background:color-mix(in srgb,var(--danger-soft) 87%,var(--danger)); }-.modal-button.primary { background:var(--primary);color:#fff; }+.modal-button.primary { background:var(--primary);color:var(--primary-ink); }.modal-button.primary:hover:not(:disabled) { background:var(--primary-hover); }.modal-button:disabled { opacity:.55; }.search-row[aria-selected="true"] { background:var(--selected); }@@ -524,7 +512,7 @@ button:focus-visible, input:focus-visible, [role="button"]:focus-visible {input:focus-visible { border-radius: 5px; }input::selection, textarea::selection, .note-prose ::selection { background: var(--accent-soft); }@media (prefers-color-scheme: dark) {- input::selection, textarea::selection, .note-prose ::selection { background: #8055B8; color: #FFFFFF; }+ input::selection, textarea::selection, .note-prose ::selection { background: var(--primary); color: var(--primary-ink); }}.editor-menu { z-index: 40; }.editor-toolbar { display:flex;align-items:center;gap:2px;padding:4px;border:1px solid var(--line);border-radius:10px;background:var(--float);box-shadow:var(--shadow); }@@ -569,7 +557,7 @@ input::selection, textarea::selection, .note-prose ::selection { background: var@keyframes note-panel-in { from { opacity:0; } }-.note-tab-indicator { position:absolute;inset-inline-start:0;bottom:-1px;height:2px;width:var(--tab-width,0px);border-radius:1px;background:var(--primary);transform:translateX(var(--tab-x,0px));pointer-events:none; }+.note-tab-indicator { position:absolute;inset-inline-start:0;bottom:-1px;height:2px;width:var(--tab-width,0px);border-radius:1px;background:var(--accent);transform:translateX(var(--tab-x,0px));pointer-events:none; }@media(prefers-reduced-motion:no-preference) {.note-layout[data-tab-pointer=true] .note-tab-indicator { transition:transform var(--dur-base) var(--ease-out),width var(--dur-base) var(--ease-out); }}@@ -662,7 +650,7 @@ input::selection, textarea::selection, .note-prose ::selection { background: var.note-record-action:hover:not(:disabled) { background:var(--control-hover); }.note-record-action:active:not(:disabled) { background:var(--control-pressed); }.note-record-action:disabled { opacity:.45; }-.note-record-action.primary { background:var(--primary);border-color:var(--primary);color:#FFFFFF;box-shadow:var(--shadow-soft); }+.note-record-action.primary { background:var(--primary);border-color:var(--primary);color:var(--primary-ink);box-shadow:var(--shadow-soft); }.note-record-action.primary:hover:not(:disabled) { background:var(--primary-hover); }.note-record-action.primary:active:not(:disabled) { box-shadow:none; }@media(prefers-reduced-motion:reduce) { .note-record-action { transition:none; } }@@ -696,7 +684,7 @@ input::selection, textarea::selection, .note-prose ::selection { background: var.transcript-find-close { opacity:0;transition:opacity var(--dur-micro) var(--ease-out); }.transcript-find[data-open=true] .transcript-find-close { opacity:1;transition-delay:var(--dur-micro); }::highlight(transcript-find) { background:var(--accent-soft);color:var(--ink); }-::highlight(transcript-find-current) { background:var(--primary);color:#FFFFFF; }+::highlight(transcript-find-current) { background:var(--primary);color:var(--primary-ink); }.transcript-find:dir(rtl) { clip-path:inset(-4px -600px -4px -4px); }.transcript-find:dir(rtl) .transcript-find-clip { transform:translateX(calc(32px - 100%)); }.transcript-find:dir(rtl) .transcript-search-field { transform:translateX(calc(100% - 32px)); }@@ -738,7 +726,6 @@ input::selection, textarea::selection, .note-prose ::selection { background: var}[data-testid="transcript-panel"] [data-testid="transcript-follow"] { bottom:calc(var(--playback-inset) + 8px); }-html:not(.widget) .bg-accent { background-color:var(--primary); }html:not(.widget) button:focus-visible, html:not(.widget) input:focus-visible { outline-color:var(--focus); }@media (prefers-reduced-motion:reduce) { .modal-button { transition:none; } }@@ -783,6 +770,12 @@ html:not(.widget) button:focus-visible, html:not(.widget) input:focus-visible {/* Name ink comes from the same folder token in both transcript surfaces. */:is(.line-who,.widget-preview-speaker)[data-folder-color] { color:var(--folder-ink); }+/* Keep violet names readable on the charcoal recorder and over highlighted transcript rows. */+:is(.line-who,.widget-preview-speaker)[data-folder-color=violet] { background:var(--bg);border-radius:4px; }+@media (prefers-color-scheme:light) {+ .widget-details > :is(span:first-child,svg) { filter:drop-shadow(0 0 1px var(--pill-ink)); }+ .widget-pill:focus-visible { outline-color:var(--pill-ink); }+}/* Calendar linking lives in the date popover; attendee editing stays in People. */.note-date-anchor { min-width:0;max-width:min(100%, 17rem); }diff --git a/app/src/renderer/src/windows/Prompt.tsx b/app/src/renderer/src/windows/Prompt.tsxindex cae44503..4190003d 100644--- a/app/src/renderer/src/windows/Prompt.tsx+++ b/app/src/renderer/src/windows/Prompt.tsx@@ -2,7 +2,7 @@ import { useEffect, useState } from 'react'import { X } from '../components/Icons'import type { PromptView } from '../../../shared/types'import { t } from '../../../shared/i18n'-import macIcon from '../../../../build/icon.png'+import { AppIcon } from '../components/Logo'/** The small card that offers to take notes when a call starts, and asks whether to stop when it ends. */export function Prompt() {@@ -28,7 +28,7 @@ export function Prompt() {onFocusCapture={() => setFocused(true)} onBlurCapture={e => { if (!e.currentTarget.contains(e.relatedTarget)) setFocused(false) }}>{start && <span key={countdown} data-testid="prompt-countdown" className="call-prompt-countdown" aria-hidden="true" />}<div className="call-prompt-heading">- <img src={macIcon} alt="" className="call-prompt-icon" />+ <AppIcon className="call-prompt-icon" /><div className="min-w-0 flex-1"><p data-testid="prompt-heading" className="call-prompt-label">{start ? t('Take notes?') : t('Stop recording?')}</p><p data-testid="prompt-title" className="call-prompt-title" title={view.title || name}>{name}</p>diff --git a/app/src/renderer/src/workspace.css b/app/src/renderer/src/workspace.cssindex 6552617f..9681599c 100644--- a/app/src/renderer/src/workspace.css+++ b/app/src/renderer/src/workspace.css@@ -1,8 +1,8 @@/* Only chrome reveals the Mac's blurred backdrop; text and reading surfaces stay opaque. */-.workspace { position:relative;isolation:isolate;display:flex;height:100%;overflow:hidden;--sidebar-inset:10px;--nav-inset:11px;--workspace-footer-height:52px;--chrome-glass:color-mix(in srgb,var(--chrome) 85%,transparent);--sidebar-field:#FAFAFB;--sidebar-field-edge:#E8E8EB;--sidebar-selected:#E7E1EF;--reading-surface:linear-gradient(to bottom,transparent 52px,var(--bg) 52px);background:var(--chrome-glass); }+.workspace { position:relative;isolation:isolate;display:flex;height:100%;overflow:hidden;--sidebar-inset:10px;--nav-inset:11px;--workspace-footer-height:52px;--chrome-glass:color-mix(in srgb,var(--chrome) 85%,transparent);--sidebar-field:#FAFAFB;--sidebar-field-edge:#E8E8EB;--sidebar-selected:color-mix(in srgb,var(--accent) 7%,var(--chrome));--reading-surface:linear-gradient(to bottom,transparent 52px,var(--bg) 52px);background:var(--chrome-glass); }@media (prefers-reduced-transparency:reduce),(prefers-contrast:more) { .workspace { --chrome-glass:var(--chrome); } }/* 85% glass keeps a trace of the desktop without a light page behind the window washing the sidebar out; search is a filled field with a quiet edge. */-@media (prefers-color-scheme:dark) { .workspace { --sidebar-field:#2F2F31;--sidebar-field-edge:#363638;--sidebar-selected:#38313F; } }+@media (prefers-color-scheme:dark) { .workspace { --sidebar-field:#2F2F31;--sidebar-field-edge:#363638;--sidebar-selected:color-mix(in srgb,var(--accent) 13%,var(--chrome)); } }/* The Mac title bar is one opaque surface in the sidebar's colour, edge to edge, ruled off from the page; native glass remains below it. */:root:not([data-chrome=overlay]) .workspace { background:linear-gradient(var(--chrome) 0 52px,transparent 52px),var(--chrome-glass); }/* One stationary drag region; later no-drag controls cut holes in it for native clicks. */@@ -87,9 +87,9 @@.sidebar-collapsed .workspace-toolbar { padding-inline-start:68px; }.workspace[data-sidebar-motion=true] .workspace-toolbar { transition:padding-inline-start 200ms cubic-bezier(.22,1,.36,1); }.workspace button:focus-visible { outline:2px solid var(--focus);outline-offset:2px; }-.workspace-button.primary { background-color:var(--primary);background-image:linear-gradient(180deg,#FFFFFF14,transparent 55%,#0000000A);border-color:#00000014;color:#FFFFFF;box-shadow:inset 0 1px 0 #FFFFFF29,0 1px 2px #35006524; }+.workspace-button.primary { background-color:var(--primary);background-image:linear-gradient(180deg,#FFFFFF14,transparent 55%,#0000000A);border-color:#00000014;color:var(--primary-ink);box-shadow:inset 0 1px 0 #FFFFFF29,0 1px 2px #00000024; }.workspace-button.primary:hover:not(:disabled) { background-color:var(--primary-hover); }-.workspace-button.primary:active:not(:disabled) { background-image:none;box-shadow:inset 0 1px 2px #35006533; }+.workspace-button.primary:active:not(:disabled) { background-image:none;box-shadow:inset 0 1px 2px #00000033; }.recording-split { display:flex;min-width:0;max-width:min(100%,276px); }.recording-main { flex:0 1 auto;min-width:0; }.recording-main>svg { flex:none; }@@ -106,10 +106,10 @@.workspace-toolbar[data-recording-return=true] { gap:16px;padding-inline-end:17px; }.workspace-toolbar[data-recording-return=true][data-note=true] { padding-inline-end:62px; }.workspace-toolbar[data-recording-return=true] .workspace-breadcrumb { flex:1;overflow:hidden; }-.workspace-recording-link { position:relative;flex:none;display:flex;align-items:center;justify-content:center;gap:9px;min-width:86px;height:30px;padding:0 12px;border:1px solid #5200BC;border-radius:9px;background:linear-gradient(180deg,#7A1AFF,#6F00FF 65%,#6600EB);color:#FFFFFF;box-shadow:inset 0 1px 0 #FFFFFF33,0 1px 3px #39008026;font-size:12px;font-weight:500;white-space:nowrap;transition:box-shadow var(--dur-micro) ease; }+.workspace-recording-link { position:relative;flex:none;display:flex;align-items:center;justify-content:center;gap:9px;min-width:86px;height:30px;padding:0 12px;border:1px solid color-mix(in srgb,var(--primary) 82%,black);border-radius:9px;background:linear-gradient(180deg,#FFFFFF14,transparent 65%,#0000000A),var(--primary);color:var(--primary-ink);box-shadow:inset 0 1px 0 #FFFFFF33,0 1px 3px #00000026;font-size:12px;font-weight:500;white-space:nowrap;transition:box-shadow var(--dur-micro) ease; }.recording-return-time { font-variant-numeric:tabular-nums;min-width:32px;text-align:center; }-.workspace-recording-link:hover { filter:brightness(1.06);box-shadow:inset 0 1px 0 #FFFFFF40,0 2px 5px #39008033; }-.workspace-recording-link:active { filter:brightness(.96);box-shadow:inset 0 1px 3px #39008033; }+.workspace-recording-link:hover { filter:brightness(1.06);box-shadow:inset 0 1px 0 #FFFFFF40,0 2px 5px #00000033; }+.workspace-recording-link:active { filter:brightness(.96);box-shadow:inset 0 1px 3px #00000033; }.workspace-recording-link[data-paused=true] { background:var(--accent-soft);border-color:color-mix(in srgb,var(--accent) 22%,transparent);color:var(--accent);box-shadow:var(--shadow-soft); }.workspace:dir(rtl) .workspace-toolbar[data-recording-return=true][data-note=true] { padding-left:185px; }.workspace:dir(rtl).sidebar-collapsed .workspace-toolbar[data-recording-return=true][data-note=true] { padding-left:185px; }@@ -150,7 +150,7 @@.native-meeting-card .meeting-meta { grid-column:-2; }.meeting-content { display:flex;align-items:center;gap:12px;min-width:0; }.meeting-identity { display:grid;place-items:center;width:30px;height:30px;flex:none;border-radius:7px;background:var(--control);color:var(--written);border:1px solid transparent;font-size:10px;font-weight:600; }-.meeting-identity.recording { color:#FFFFFF;background:var(--primary);border-color:transparent; }+.meeting-identity.recording { color:var(--primary-ink);background:var(--primary);border-color:transparent; }.meeting-description { min-width:0;flex:1; }.meeting-description strong { display:block;font-weight:500;font-size:13px;line-height:19px;letter-spacing:-.1px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }.meeting-description>span { display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;line-height:16px;margin-top:2px;color:var(--muted); }@@ -182,7 +182,7 @@.native-library:has(>.library-empty)>:not(.library-empty) { flex-shrink:0; }.empty-state { flex:1;display:grid;place-items:center;min-width:0;padding-block:24px 48px;text-align:center; }.empty-state-content { width:100%;max-width:310px; }-.empty-tile { width:64px;height:64px;margin:0 auto 16px;display:grid;place-items:center;border:1px solid var(--line);border-radius:14px;background:var(--float);color:var(--written);box-shadow:0 1px 2px #17171A0A,0 10px 28px -12px #2A1A4A24;position:relative; }+.empty-tile { width:64px;height:64px;margin:0 auto 16px;display:grid;place-items:center;border:1px solid var(--line);border-radius:14px;background:var(--float);color:var(--written);box-shadow:0 1px 2px #17171A0A,0 10px 28px -12px color-mix(in srgb,var(--accent) 8%,transparent);position:relative; }.empty-tile::before { content:"";position:absolute;inset:5px;border:1px solid var(--line);border-radius:9px;opacity:.45;pointer-events:none; }@media (prefers-color-scheme:dark) { .empty-tile { box-shadow:0 1px 2px #00000033,0 14px 32px -10px #00000080; } }.agenda-status[role=alert] { display:grid;justify-items:start; }@@ -208,8 +208,8 @@.agenda-week span { font-size:10px;line-height:14px;color:var(--muted); }.agenda-week b { display:grid;place-items:center;font-size:11px;font-weight:500;width:26px;height:26px;border-radius:6px;border:1px solid transparent; }.agenda-week button:not([aria-pressed=true]):not([aria-current=date]):hover b { background:var(--accent-soft); }-.agenda-week [aria-pressed=true] b { color:var(--accent);background:var(--accent-soft);border-color:transparent; }-.agenda-week [aria-current=date] b { color:#FFFFFF;background:var(--primary); }+.agenda-week [aria-current=date]:not([aria-pressed=true]) b { color:var(--accent);border-color:currentColor; }+.agenda-week [aria-pressed=true] b { color:var(--primary-ink);background:var(--primary); }.agenda-day { display:flex;align-items:baseline;gap:9px;margin-bottom:0; }.agenda-day h3 { font-size:13px;font-weight:600; }.agenda-day>span { font-size:11px;color:var(--muted); }@@ -357,7 +357,7 @@/* Folder glyphs and speaker names share these theme-aware inks. */[data-folder-color] { color-scheme:light dark;--folder-ink:var(--written);--folder-tint:var(--control); }.widget [data-folder-color] { color-scheme:dark; }-[data-folder-color=violet] { --folder-ink:light-dark(#7434CA,#B995FF); }+[data-folder-color=violet] { --folder-ink:var(--accent); }[data-folder-color=blue] { --folder-ink:light-dark(#2868BA,#87B5F4); }[data-folder-color=teal] { --folder-ink:light-dark(#157D80,#72CECE); }[data-folder-color=green] { --folder-ink:light-dark(#388044,#92C88A); }@@ -380,7 +380,8 @@.folder-icon-grid { display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;margin-bottom:20px; }.folder-icon-grid button { display:grid;place-items:center;height:38px;border:1px solid transparent;border-radius:8px;background:transparent;transition:background var(--dur-micro) ease,border-color var(--dur-micro) ease; }.folder-icon-grid button:hover { background:var(--control); }-.folder-icon-grid button[aria-checked=true] { border-color:var(--accent);background:var(--accent-soft); }+.folder-icon-grid button[aria-checked=true] { background:var(--primary); }+.folder-icon-grid button[aria-checked=true] .folder-glyph { color:var(--primary-ink); }.folder-color-grid { display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:6px; }.folder-color-grid button { display:grid;place-items:center;height:30px;border:1px solid transparent;border-radius:50%; }.folder-color-grid button span { width:18px;height:18px;border-radius:50%;background:var(--folder-ink); }@@ -466,7 +467,7 @@ body:has(.chat-panel[open]) .app-toast-viewport:dir(rtl) { --toast-x:440px; }.ask-composer { flex:none;min-width:0;container-type:inline-size; }.ask-box { position:relative;min-width:0;border:1px solid var(--line);border-radius:12px;background:var(--float); }/* Composers are never lit; a short tapered flare invites typing instead. */-.ask-tracer { position:absolute;inset:-1px;width:calc(100% + 2px);height:calc(100% + 2px);overflow:visible;pointer-events:none;opacity:0;fill:none;stroke:var(--primary);stroke-width:3;stroke-linecap:round;filter:drop-shadow(0 0 4px color-mix(in srgb,var(--primary) 70%,transparent)) drop-shadow(0 0 10px color-mix(in srgb,var(--primary) 35%,transparent)); }+.ask-tracer { position:absolute;inset:-1px;width:calc(100% + 2px);height:calc(100% + 2px);overflow:visible;pointer-events:none;opacity:0;fill:none;stroke:var(--accent);stroke-width:3;stroke-linecap:round;filter:drop-shadow(0 0 4px color-mix(in srgb,var(--accent) 70%,transparent)) drop-shadow(0 0 10px color-mix(in srgb,var(--accent) 35%,transparent)); }.ask-box:dir(rtl) > .ask-tracer { transform:scaleX(-1);transform-origin:center; }@media (prefers-reduced-motion:reduce) { .ask-tracer { display:none; } }.ask-field { padding:12px; }@@ -478,16 +479,16 @@ body:has(.chat-panel[open]) .app-toast-viewport:dir(rtl) { --toast-x:440px; }.ask-box:has(textarea[aria-disabled=true]) { background:var(--card); }.ask-box textarea[aria-disabled=true] { cursor:not-allowed;color:var(--muted); }.ask-box textarea[aria-disabled=true]:focus-visible { outline:2px solid var(--focus);outline-offset:2px;border-radius:3px; }-.ask-toolbar-button:hover:not(:disabled) { background:var(--control);color:var(--ink); }-.ask-toolbar-button:active:not(:disabled) { background:var(--control-hover); }+.ask-toolbar-button:not(.ask-send):hover:not(:disabled) { background:var(--control);color:var(--ink); }+.ask-toolbar-button:not(.ask-send):active:not(:disabled) { background:var(--control-hover); }.ask-toolbar-button:disabled { color:var(--muted);opacity:.45; }-/* A small violet orb: two pre-blurred layers turn under a veil that keeps the white arrow readable; still until hovered. */-.ask-send { position:relative;isolation:isolate;overflow:hidden;background:var(--primary);color:#FFFFFF;transition:transform 120ms ease-out;--orb-play:paused; }-.ask-send::after { content:"";position:absolute;inset:0;pointer-events:none;border-radius:inherit;background:rgb(111 0 255 / .74);box-shadow:inset 0 0 0 1px #CCB6FF44; }+/* A small violet orb: two pre-blurred layers turn under a veil that keeps the arrow readable; still until hovered. */+.ask-send { position:relative;isolation:isolate;overflow:hidden;background:var(--primary);color:var(--primary-ink);transition:transform 120ms ease-out;--orb-play:paused; }+.ask-send::after { content:"";position:absolute;inset:0;pointer-events:none;border-radius:inherit;background:color-mix(in srgb,var(--primary) 74%,transparent);box-shadow:inset 0 0 0 1px #FFFFFF44; }.ask-send svg { position:relative;z-index:1; }.orb-material { position:absolute;inset:0;overflow:hidden;border-radius:inherit;pointer-events:none;background:var(--primary);isolation:isolate; }-.orb-material::before,.orb-material::after { content:"";position:absolute;inset:-35%;pointer-events:none;background:radial-gradient(ellipse at 27% 32%,#CCB6FF 0 12%,#AF8BFF 24%,transparent 52%),radial-gradient(ellipse at 75% 68%,#7142E8 0 18%,transparent 50%);filter:blur(3px);animation:orb-turn 18s linear infinite;animation-play-state:var(--orb-play);transform:rotate(22deg);opacity:.92; }-.orb-material::after { background:radial-gradient(ellipse at 68% 26%,#FFFFFF 0 3%,#CCB6FF 13%,transparent 40%),radial-gradient(ellipse at 23% 72%,var(--accent) 0 13%,#7142E8 29%,transparent 54%);animation-name:orb-counter;animation-duration:27s;opacity:.8; }+.orb-material::before,.orb-material::after { content:"";position:absolute;inset:-35%;pointer-events:none;background:radial-gradient(ellipse at 27% 32%,#FFFFFFA6 0 12%,#FFFFFF70 24%,transparent 52%),radial-gradient(ellipse at 75% 68%,#00000024 0 18%,transparent 50%);filter:blur(3px);animation:orb-turn 18s linear infinite;animation-play-state:var(--orb-play);transform:rotate(22deg);opacity:.92; }+.orb-material::after { background:radial-gradient(ellipse at 68% 26%,#FFFFFF 0 3%,#FFFFFF80 13%,transparent 40%),radial-gradient(ellipse at 23% 72%,var(--primary) 0 13%,#00000024 29%,transparent 54%);animation-name:orb-counter;animation-duration:27s;opacity:.8; }@keyframes orb-turn { from { transform:rotate(22deg); } to { transform:rotate(382deg); } }@keyframes orb-counter { from { transform:rotate(-28deg); } to { transform:rotate(-388deg); } }.ask-box:not([data-busy=true]) .ask-send:not(:disabled):is(:hover,[data-focus-ring]) { --orb-play:running;transform:scale(1.04); }@@ -501,10 +502,12 @@ body:has(.chat-panel[open]) .app-toast-viewport:dir(rtl) { --toast-x:440px; }.ask-stop:active:not(:disabled) { background:var(--control-pressed); }.ask-scope-group { display:flex;align-items:center;gap:1px;min-width:0;max-width:calc(100% - 40px); }.ask-scope { display:flex;align-items:center;gap:6px;min-width:0;max-width:100%;height:28px;padding:0 8px;border:0;border-radius:14px;color:var(--muted);font-size:12px;white-space:nowrap; }-.ask-scope-selected { background:var(--control);border-radius:8px;border-start-end-radius:0;border-end-end-radius:0; }-.ask-scope-clear { flex:none;display:flex;align-items:center;justify-content:center;width:26px;height:28px;border-start-end-radius:8px;border-end-end-radius:8px;background:var(--control);color:var(--muted); }-.ask-scope-selected:hover:not(:disabled),.ask-scope-clear:hover:not(:disabled) { background:var(--control-hover);color:var(--ink); }+.ask-scope-selected { border-radius:8px;border-start-end-radius:0;border-end-end-radius:0; }+.ask-scope-clear { flex:none;display:flex;align-items:center;justify-content:center;width:26px;height:28px;border-start-end-radius:8px;border-end-end-radius:8px; }+.ask-scope-selected,.ask-scope-clear { background:var(--primary);color:var(--primary-ink); }+.ask-scope-selected:hover:not(:disabled),.ask-scope-clear:hover:not(:disabled) { background:var(--primary-hover); }.ask-scope-selected:disabled,.ask-scope-clear:disabled { opacity:.45; }+.ask-scope-selected .folder-glyph { color:inherit; }.ask-picker h3:has(.text-action) { display:flex;align-items:center;justify-content:space-between; }.ask-scope-label { display:flex;min-width:0; }.ask-scope-name { min-width:0;overflow:hidden;text-overflow:ellipsis; }@@ -588,7 +591,7 @@ body:has(.chat-panel[open]) .app-toast-viewport:dir(rtl) { --toast-x:440px; }/* a color here too: the shimmering Thinking… line paints its text through a transparent fill */.ask-conversation ::selection { background:var(--accent-soft);color:var(--ink); }-@media (prefers-color-scheme:dark) { .ask-conversation ::selection { background:#8055B8;color:#FFFFFF; } }+@media (prefers-color-scheme:dark) { .ask-conversation ::selection { background:var(--primary);color:var(--primary-ink); } }.native-library { scrollbar-gutter:stable; }.native-library:has(.library-empty) { display:flex;flex-direction:column; }@@ -622,7 +625,7 @@ body:has(.chat-panel[open]) .app-toast-viewport:dir(rtl) { --toast-x:440px; }.native-library { --meeting-selection-tint:6%; }@media (prefers-color-scheme:dark) { .native-library { --meeting-selection-tint:9%; } }-.native-library .native-meeting-row[data-selected=true],.native-library .native-meeting-row[data-selected=true]:hover { background:color-mix(in srgb,var(--primary) var(--meeting-selection-tint),var(--bg)); }+.native-library .native-meeting-row[data-selected=true],.native-library .native-meeting-row[data-selected=true]:hover { background:color-mix(in srgb,var(--accent) var(--meeting-selection-tint),var(--bg)); }.native-meeting-row[data-selected=true]+.native-meeting-row[data-selected=true] { border-top-left-radius:0;border-top-right-radius:0; }.native-meeting-row[data-selected=true]:has(+.native-meeting-row[data-selected=true]) { border-bottom-left-radius:0;border-bottom-right-radius:0; }.native-library:has([data-selecting=true]) { padding-bottom:100px; }@@ -635,7 +638,7 @@ body:has(.chat-panel[open]) .app-toast-viewport:dir(rtl) { --toast-x:440px; }.meeting-selection-folder { position:relative; }.meeting-selection-menu { position:absolute;width:240px;max-width:calc(100vw - 16px);max-height:min(320px,60vh);overflow:auto;border:1px solid var(--line); }.meeting-selection-bar button:focus-visible { outline:2px solid var(--focus);outline-offset:2px; }-.meeting-drag-count { border-radius:5px;padding:2px 6px;background:var(--primary);color:#FFFFFF;font-size:11px; }+.meeting-drag-count { border-radius:5px;padding:2px 6px;background:var(--primary);color:var(--primary-ink);font-size:11px; }/* This confirmation and its Settings shortcut stay on one line. */.app-toast[data-kind=recording-deleted-toast] { inset-inline-start:auto;width:max-content;max-width:calc(100vw - 40px); }diff --git a/app/test/builderConfig.test.ts b/app/test/builderConfig.test.tsindex d0541c41..567cc2c5 100644--- a/app/test/builderConfig.test.ts+++ b/app/test/builderConfig.test.ts@@ -31,6 +31,10 @@ it("only Windows and Linux carry the colour tray icons (the Mac's package keepsconst block = (name: string) => config.match(new RegExp(`^${name}:\\n((?: .*\\n|\\n)*)`, 'm'))?.[1] ?? ''for (const os of ['win', 'linux']) expect(block(os)).toContain('filter: ["tray-color*.png", "tray-recording*.png"]')expect(config.split(/^win:$/m)[0]).not.toContain('tray-color')+ for (const state of ['color', 'recording']) for (const theme of ['', '-dark']) for (const [scale, size] of [['', 16], ['@2x', 32]] as const) {+ const png = readFileSync(join(__dirname, '../resources', `tray-${state}${theme}${scale}.png`))+ expect([png.readUInt32BE(16), png.readUInt32BE(20)]).toEqual([size, size])+ }})it("only Windows and Linux carry the speed check's clip: a Mac never times its speech model", () => {diff --git a/app/test/flatButtons.test.ts b/app/test/flatButtons.test.tsindex 3a9b2b2c..7b97da83 100644--- a/app/test/flatButtons.test.ts+++ b/app/test/flatButtons.test.ts@@ -21,9 +21,16 @@ it('keeps a flat face on bordered controls, including selected, paused and proce}})-it('retains the original recording primary and its divider', () => {+it('uses one saturated fill and white ink for controls while standalone accents follow the theme', () => {+ const values = (token: string) => [...styles.matchAll(new RegExp('(?:^|[;{\\s])' + token + ':\\s*([^;]+);', 'g'))].map(match => match[1])+ expect(values('--primary')).toEqual(['#6F00FF'])+ expect(values('--primary-ink')).toEqual(['#FFFFFF'])+ expect(values('--accent')).toEqual(['#6F00FF', '#B780FF'])+})++it('retains the recording primary gradient, pressed depth and divider', () => {expect(styles).toMatch(/\.workspace-button\.primary \{[^}]*background-image:linear-gradient\(180deg,#FFFFFF14,transparent 55%,#0000000A\);border-color:#00000014;/)- expect(styles).toMatch(/\.workspace-button\.primary:active:not\(:disabled\) \{[^}]*box-shadow:inset 0 1px 2px #35006533;/)+ expect(styles).toMatch(/\.workspace-button\.primary:active:not\(:disabled\) \{[^}]*box-shadow:inset 0 1px 2px #00000033;/)expect(styles).toMatch(/\.primary\.recording-chevron \{[^}]*border-inline-start:1px solid #FFFFFF26;/)})diff --git a/app/test/speakerColors.test.ts b/app/test/speakerColors.test.tsindex de230349..50d35455 100644--- a/app/test/speakerColors.test.ts+++ b/app/test/speakerColors.test.ts@@ -22,9 +22,16 @@ it('uses the seven folder inks on the note and always-dark preview', async () =>const css = readFileSync(new URL('../src/renderer/src/workspace.css', import.meta.url), 'utf8')expect(SPEAKER_COLORS).toEqual(['violet', 'blue', 'teal', 'green', 'amber', 'orange', 'rose'])const inks = [...css.matchAll(/\[data-folder-color=(\w+)\] \{ --folder-ink:light-dark\((#[\dA-F]{6}),(#[\dA-F]{6})\); \}/g)]- expect(inks.map(m => m[1])).toEqual(SPEAKER_COLORS)+ expect(css).toContain('[data-folder-color=violet] { --folder-ink:var(--accent); }')+ expect(['violet', ...inks.map(m => m[1])]).toEqual(SPEAKER_COLORS)expect(css).toContain('.widget [data-folder-color] { color-scheme:dark; }')- const palettes = [inks.map(m => m[2]), inks.map(m => m[3])]+ const theme = readFileSync(new URL('../src/renderer/src/styles.css', import.meta.url), 'utf8')+ const accents = [...theme.matchAll(/--accent: (#[\dA-F]{6});/g)].map(match => match[1])+ expect(accents).toEqual(['#6F00FF', '#B780FF'])+ expect(theme).toContain(':is(.line-who,.widget-preview-speaker)[data-folder-color=violet] { background:var(--bg)')+ const violetBackgrounds = [...theme.matchAll(/--bg: (#[\dA-F]{6});/g)].map(match => match[1])+ expect(violetBackgrounds).toEqual(['#FFFFFF', '#18191D', '#FFFFFF', '#1B1B1D'])+ const palettes = accents.map((accent, i) => [accent, ...inks.map(m => m[i + 2])])const luminance = (hex: string) => {const rgb = [1, 3, 5].map(i => parseInt(hex.slice(i, i + 2), 16) / 255).map(c => c <= .04045 ? c / 12.92 : ((c + .055) / 1.055) ** 2.4)return rgb[0] * .2126 + rgb[1] * .7152 + rgb[2] * .0722@@ -33,9 +40,12 @@ it('uses the seven folder inks on the note and always-dark preview', async () =>for (const [i, palette] of palettes.entries()) {expect(palette).toHaveLength(7)// Names sit outside bubbles: note canvas and a lighter worst-case dark preview.- for (const bg of i === 0 ? ['#FFFFFF'] : ['#242426', '#333335', '#39393C']) for (const colour of palette) {- const a = luminance(colour), b = luminance(bg)- expect((Math.max(a, b) + .05) / (Math.min(a, b) + .05), `${colour} on ${bg}`).toBeGreaterThanOrEqual(4.5)+ const surfaces = i === 0 ? ['#FFFFFF'] : ['#242426', '#333335', '#39393C']+ for (const [index, colour] of palette.entries()) {+ for (const background of index === 0 ? [violetBackgrounds[i], violetBackgrounds[i + 2]] : surfaces) {+ const a = luminance(colour), b = luminance(background)+ expect((Math.max(a, b) + .05) / (Math.min(a, b) + .05), `${colour} on ${background}`).toBeGreaterThanOrEqual(4.5)+ }}}})diff --git a/app/test/tray.test.ts b/app/test/tray.test.tsindex cc6cf1a1..11ec5fba 100644--- a/app/test/tray.test.ts+++ b/app/test/tray.test.ts@@ -6,6 +6,7 @@ vi.mock('electron', () => ({systemPreferences: { getUserDefault: vi.fn(() => false) },powerMonitor: { on: vi.fn(), off: vi.fn() },Menu: { buildFromTemplate: (items: unknown) => items },+ nativeTheme: { get shouldUseDarkColors() { return false }, on: vi.fn(), off: vi.fn() },nativeImage: { createFromPath: (path: string) => ({ path, setTemplateImage: vi.fn() }) },Tray: class {on = vi.fn()@@ -21,7 +22,7 @@ vi.mock('electron', () => ({vi.mock('../src/main/meeting', () => ({ activeMeeting: () => state.meeting, onMeetingChange: (fn: () => void) => { state.change = fn } }))vi.mock('../src/main/capture', () => ({ recordingPaused: () => state.paused, onRecordingEvent: (fn: typeof state.recording) => { state.recording = fn } }))vi.mock('../src/shared/i18n', async original => ({ ...await original<typeof import('../src/shared/i18n')>(), onLanguage: (fn: () => void) => { state.language = fn } }))-import { app, powerMonitor, systemPreferences } from 'electron'+import { app, nativeTheme, powerMonitor, systemPreferences } from 'electron'const basename = (p: string) => p.split(/[\\/]/).at(-1)import { createTray } from '../src/main/tray'@@ -143,6 +144,26 @@ it('Windows and Linux: a colour icon that turns to the recording one, the time iexpect(tray.accelerators()).toEqual({ 'Settings…': 'Ctrl+,' })})+it.each(['linux', 'win32'])('updates the visible %s icon on appearance and recording changes', os => {+ const theme = vi.mocked(nativeTheme)+ const appearance = vi.spyOn(theme, 'shouldUseDarkColors', 'get')+ appearance.mockReturnValue(true)+ try {+ const tray = createTray({ show: true, os, ...actions() })+ const icon = state.trays[0]+ const update = theme.on.mock.lastCall![1] as () => void+ expect(basename(icon.image.path)).toBe('tray-color-dark.png')+ state.meeting = { id: 'm1', title: 'Standup' }; state.change()+ expect(basename(icon.setImage.mock.lastCall[0].path)).toBe('tray-recording-dark.png')+ appearance.mockReturnValue(false); update()+ expect(basename(icon.setImage.mock.lastCall[0].path)).toBe('tray-recording.png')+ tray.setVisible(false)+ appearance.mockReturnValue(true); update()+ state.paused = true; tray.setVisible(true)+ expect(basename(state.trays[1].image.path)).toBe('tray-color-dark.png')+ } finally { appearance.mockRestore() }+})+it('Linux without a tray host (GNOME without its extension) says no icon is shown, so closing minimises', async () => {const tray = createTray({ show: true, os: 'linux', host: async () => false, ...actions() })expect(tray.shown()).toBe(true)