A team of long-lived bots for DeepSeek Harness, with main bots, bot-to-bot messages and group chats.
Dim the caption band and buttons with a dialog's mask
Fei24111de9ceeec841
diff --git a/app/src/preload.cjs b/app/src/preload.cjsindex 348388d6..cfdf7c64 100644--- a/app/src/preload.cjs+++ b/app/src/preload.cjs@@ -32,6 +32,9 @@ function frameless(height, mica) {const root = document.documentElementroot.dataset.windowsTitlebar = ''root.style.setProperty('--dsh-windows-titlebar-height', `${height}px`)+ // DSH keeps the dialog mask off the caption band, which then stays bright above a dimmed+ // page; here the band is part of the page, so the mask covers it too.+ root.style.setProperty('--dsh-frame-chrome-top', '0px')let themeconst sendTheme = () => {const value = root.getAttribute('data-ds-theme-source')@@ -60,6 +63,23 @@ function captionColors(mica) {const [red, green, blue, alpha] = context.getImageData(0, 0, 1, 1).datareturn alpha === 0 ? undefined : `rgb(${red}, ${green}, ${blue})`}+ // The surface's color with the layers above the caption buttons (a dialog's mask) painted over it.+ const covered = (base, frame) => {+ const layers = []+ for (const element of document.elementsFromPoint(innerWidth - 1, 1)) {+ if (frame !== null && (element === frame || element.contains(frame) || frame.contains(element))) break+ for (const pseudo of ['::after', null, '::before']) layers.push(getComputedStyle(element, pseudo).backgroundColor)+ }+ context.clearRect(0, 0, 1, 1)+ context.fillStyle = base+ context.fillRect(0, 0, 1, 1)+ for (const color of layers.reverse()) {+ context.fillStyle = color+ context.fillRect(0, 0, 1, 1)+ }+ const [red, green, blue] = context.getImageData(0, 0, 1, 1).data+ return `rgb(${red}, ${green}, ${blue})`+ }const column = () => {if (!mica) return document.querySelector('div[class*="_sidebarCol"]')const right = document.querySelector('div[class*="_rightbarCol"]')@@ -75,7 +95,7 @@ function captionColors(mica) {}for (let element = start; element !== null; element = element.parentElement) {const color = opaque(getComputedStyle(element).backgroundColor)- if (color !== undefined) return [color, opaque(getComputedStyle(element).color)]+ if (color !== undefined) return [covered(color, frame ?? null), opaque(getComputedStyle(element).color)]}return undefined}@@ -93,8 +113,15 @@ function captionColors(mica) {sent = currentipcRenderer.send('ds-bot:caption-colors', ...colors)}- const observer = new MutationObserver(send)- observer.observe(document.body, { attributes: true, attributeFilter: ['data-ds-dark-theme', 'style'] })+ // A dialog mounts anywhere in the page, which changes all the time; one look per frame.+ let queued = false+ const queue = () => {+ if (queued) return+ queued = true+ requestAnimationFrame(() => { queued = false; send() })+ }+ const observer = new MutationObserver(queue)+ observer.observe(document.body, { attributes: true, attributeFilter: ['data-ds-dark-theme', 'style'], childList: true, subtree: true })observer.observe(document.head, { childList: true, subtree: true, characterData: true })observer.observe(document.documentElement, { attributes: true, attributeFilter: ['data-ds-theme-source', 'style'] })// A stylesheet link is added before it loads; its rules apply without another mutation.diff --git a/docs/plans/2026-10-16-desktop-app.md b/docs/plans/2026-10-16-desktop-app.mdindex 238b2245..03cffebd 100644--- a/docs/plans/2026-10-16-desktop-app.md+++ b/docs/plans/2026-10-16-desktop-app.md@@ -30,6 +30,7 @@- Windows:窗口无边框,和 DSH Desktop 一样。标题栏并进页面,系统的最小化、最大化、关闭按钮留在右上角,颜色和它下面的界面一致,跟着主题变。拖标题栏移动窗口,双击最大化。- Windows 11(22H2 及以后):侧栏用 Mica 材质,一直通到窗口顶部;对话区也到顶,左上角是圆角,系统按钮在对话区上。Windows 10 上标题栏和侧栏同色、不透明。+- 弹出对话框时,标题栏和系统按钮跟页面一起变暗。- 页面仍是 DSH 网页前端的网页模式,快捷键和网页版一样。- macOS:系统标题栏。@@ -130,4 +131,4 @@- 2026-10-20:Windows 上窗口无边框,Windows 11 上侧栏用 Mica;macOS 仍用系统标题栏,Issue #362。- 2026-10-20:macOS 改发 zip,不再发 dmg:macOS 26 上用 Safari 下载的未签名 dmg(arm64、x64,本机和 CI 打的都一样)显示「已损坏」,打不开;dmg 做 ad-hoc 签名也不行;zip 只被 Gatekeeper 拦下,可以「仍要打开」,Issue #351。- 2026-10-20:设置里能换总工作区和数据位置;中文界面里「团队工作区」改叫「总工作区」,Issue #364。-- 2026-10-20:窗口改为加载引擎的本机地址,不再用 `dsh-app://app`:DSH 的账号登录把页面地址当作浏览器登录完回来的地址,只接受本机 http 地址。DSH 打开的登录窗口交给系统浏览器,Issue #376。+- 2026-10-20:窗口改为加载引擎的本机地址,不再用 `dsh-app://app`:DSH 的账号登录把页面地址当作浏览器登录完回来的地址,只接受本机 http 地址。DSH 打开的登录窗口交给系统浏览器,Issue #376。弹出对话框时标题栏一起变暗。