Skip to content

A team of long-lived bots for DeepSeek Harness, with main bots, bot-to-bot messages and group chats.

Give the app's own pages the corners DSH gives the plugin's

AdamPlatin1232036299c73bc
diff --git a/app/src/page-card.css b/app/src/page-card.css
index b651d447..6e806aff 100644
--- a/app/src/page-card.css
+++ b/app/src/page-card.css
@@ -103,3 +103,10 @@
.dsb-card-btn,.dsb-card-btn:active{transition:background-color .12s,color .12s;scale:none}
.dsb-picker-up,.dsb-picker-up:active{transition:background-color .12s;scale:none}
}
+/* The corners DSH gives every element (dsh-client-ui-theme corner-shape.css), which all:unset
+ above takes off the card's controls, and which the start window does not have; last, so it
+ wins over all:unset. The up button stays a circle, as the plugin's icon buttons do. */
+@supports (corner-shape:superellipse(1.5)){
+ .dsb-card-layer,.dsb-card-layer *,.dsb-card-layer ::before,.dsb-card-layer ::after{corner-shape:superellipse(1.5)}
+ .dsb-card-layer .dsb-picker-up{corner-shape:round}
+}
diff --git a/app/src/start/start.css b/app/src/start/start.css
index 69e781be..6020dbfe 100644
--- a/app/src/start/start.css
+++ b/app/src/start/start.css
@@ -21,6 +21,9 @@
}
/* /springs */
+/* The corners DSH gives every element (dsh-client-ui-theme corner-shape.css), so the buttons here
+ are shaped like the plugin's; the circles stay round. */
+@supports (corner-shape:superellipse(1.5)){*,::before,::after{corner-shape:superellipse(1.5)}.whale-hit,.ripple,.drop{corner-shape:round}}
[hidden]{display:none!important}
html,body{margin:0;height:100%;background:transparent}
/* The stage hangs 45 px below the window until a card needs the sheet; body clips it rather
diff --git a/docs/design/ui-standard.md b/docs/design/ui-standard.md
index 4570be19..8104fe09 100644
--- a/docs/design/ui-standard.md
+++ b/docs/design/ui-standard.md
@@ -216,7 +216,7 @@ Bot 名字、提及用同一个颜色写字;纯黑读起来像标题,所以
| 999px | 胶囊形:标准按钮、标签页、顶部胶囊、开关 |
| 50% | 圆形:头像、圆形按钮、徽标、色块 |
-**真圆**:DSH 给所有元素设了 `corner-shape: superellipse(1.5)`,`border-radius: 50%` 会画成圆角方块。要真圆的地方(徽标、状态点)必须加 `corner-shape: round`。
+**真圆**:DSH 给所有元素设了 `corner-shape: superellipse(1.5)`,`border-radius: 50%` 会画成圆角方块。要真圆的地方(徽标、状态点)必须加 `corner-shape: round`。桌面应用自己的页面不在 DSH 里:启动窗口(`start.css`)和页内卡片、选择器(`page-card.css`,卡片的 `all:unset` 也会清掉它)自己设同样的 `superellipse(1.5)`,所以 999px 的按钮和插件里一样,是顶部胶囊那样的圆角矩形。
**现状偏差**(`2f9300d`):不在档位里的圆角约 20 处,集中在 `browser-pane.js`(9、7、5、3、2px,共 8 处)和 `usage-page.js`(9、5、3、14px、30%,共 7 处);另有 `sidebar.js` 14px、`secret-card.js` 5px、`member-status.js` 13px、`styles.js` 1px 和 `9999px` ×2。9 → 8 或 10;9999px → 999px;其余就近归入上表。用量页的图表元素(条、格)可以例外,写进注释。