手機端跟上「紙」配色;側欄新訊息點改用強調色;FEATURES.md 寫進配色規則

- mobile :root/深色代幣全換紙系:米白 #faf9f6、暖墨 #25221f、黏土橘
  accent、暖黑深色三階、圖表六色同桌面(同序同家族)
- 側欄「新訊息」小點從寫死的藍 #1680f3 改成強調色(跟主題走)
- FEATURES.md:第 32 節開頭寫進配色規則(殼全灰階、黃=需要你、
  紅=危險、顏色只出現在圖表),新訊息點/顏色選中圈兩處「藍色」文字更新

已驗證: cargo test 501 全綠;手機端 headless Chrome 渲染新代幣正常
(淺色平均 229,228,225 暖白/深色 50,49,47 暖黑),圖表卡、stats 卡照樣畫出
未驗證: 手機實機(Safari iOS 的 color-mix 於引導動畫點點——支援度 Safari 15+,
使用者環境未測);Bot 顏色 10 色(頭像系統)沒動,和強調色的搭配未逐一目視
This commit is contained in:
daniel wang 2026-11-16 17:17:41 +08:00
parent 9a90888e05
commit 723074f50b
3 changed files with 28 additions and 23 deletions

View File

@ -533,7 +533,7 @@ AnyBot 是一個桌面聊天 App,介面和運作方式照 Grok Bot 重做。
- 「Bot 名稱」。 - 「Bot 名稱」。
- 「Bot 描述」:提示「它負責做什麼?」。 - 「Bot 描述」:提示「它負責做什麼?」。
- 「頭像」:12 種形狀排成一列,每個 28 px,沒選的顯示灰色,滑過顯示名稱(第 32 節)。 - 「頭像」:12 種形狀排成一列,每個 28 px,沒選的顯示灰色,滑過顯示名稱(第 32 節)。
- 顏色:10 個 24 px 圓點,選中的有藍色外圈。 - 顏色:10 個 24 px 圓點,選中的有一圈強調色外框。
- 「AI 供應商與模型」 - 「AI 供應商與模型」
- 供應商下拉選單,換供應商時模型會自動換成那家的預設模型。 - 供應商下拉選單,換供應商時模型會自動換成那家的預設模型。
- 模型名稱輸入框,提示「模型名稱」。 - 模型名稱輸入框,提示「模型名稱」。
@ -1532,7 +1532,7 @@ computer_use_screenshot、click、mouse_move、mouse_button(按住/放開)
- 失敗:眼睛變一字、搖一次頭,一滴汗滑下來後停住(之後不再動,不耗電)。 - 失敗:眼睛變一字、搖一次頭,一滴汗滑下來後停住(之後不再動,不耗電)。
- 其他步驟(指令、檔案、記憶…)目前還是看著旁邊那句話;道具顏色太接近頁面(深色模式的黑臉、淺色模式的白臉)時會往文字顏色調亮或調暗。 - 其他步驟(指令、檔案、記憶…)目前還是看著旁邊那句話;道具顏色太接近頁面(深色模式的黑臉、淺色模式的白臉)時會往文字顏色調亮或調暗。
- **需要你允許**:不再是蓋住整個視窗的彈出視窗,改成固定在輸入框上方的黃色卡片,上面的聊天照樣看得到,下面的輸入框照樣可以打字告訴它怎麼改。輸入框空著時 Enter 允許、Esc 拒絕(卡片出現 0.6 秒後才算,免得原本要按的 Enter 誤答);游標在輸入框裡也一樣(以前輸入框先把 Enter 當成「送出」拿走,框是空的什麼都沒送出,也沒有允許)。框裡有字時 Enter 照樣是送出。要你親自處理的步驟(接管畫面)還是聊天裡的卡片。 - **需要你允許**:不再是蓋住整個視窗的彈出視窗,改成固定在輸入框上方的黃色卡片,上面的聊天照樣看得到,下面的輸入框照樣可以打字告訴它怎麼改。輸入框空著時 Enter 允許、Esc 拒絕(卡片出現 0.6 秒後才算,免得原本要按的 Enter 誤答);游標在輸入框裡也一樣(以前輸入框先把 Enter 當成「送出」拿走,框是空的什麼都沒送出,也沒有允許)。框裡有字時 Enter 照樣是送出。要你親自處理的步驟(接管畫面)還是聊天裡的卡片。
- **黃色只代表「需要你」**:允許卡片、臉上的黃點、側邊欄 Bot 上的黃點、設定裡「更新」旁的黃點(有新版)。有新訊息還是藍色小點。 - **黃色只代表「需要你」**:允許卡片、臉上的黃點、側邊欄 Bot 上的黃點、設定裡「更新」旁的黃點(有新版)。有新訊息是強調色(黏土橘)小點。
- **標題列**:Bot 的名字在左邊(按一下開對話詳細資訊),右邊「分享」和「⋯」不再有圓框;圖示線條粗一點(2.25)。 - **標題列**:Bot 的名字在左邊(按一下開對話詳細資訊),右邊「分享」和「⋯」不再有圓框;圖示線條粗一點(2.25)。
- **新對話**:Bot 的臉放大、一句「嗨,我是 …」和它的描述,下面三個可以直接點的開頭(點了把字放進輸入框)。 - **新對話**:Bot 的臉放大、一句「嗨,我是 …」和它的描述,下面三個可以直接點的開頭(點了把字放進輸入框)。
- **設定**:左邊分頁只有文字,選中的黑底白字;每組設定一張白色細框卡片,一列一件事(左邊名稱、右邊控制項,名稱下最多一行小字,其餘說明在「?」裡);選項是分段按鈕,開關是黑軌白鈕。「一般」的名稱改成白話(聊天的顏色、用意思找記憶、Bot 可以翻的資料夾)。「整合」分成三頁(訊息管道、連接器、技能);訊息管道先列「已連接」(標記、名稱 · 種類、誰回覆、狀態、開關、⋯ 裡移除),「新增管道」是八個方塊,點了才在下面打開那一種的表單。權限頁的「直接操作」「自動審核」也是開關。 - **設定**:左邊分頁只有文字,選中的黑底白字;每組設定一張白色細框卡片,一列一件事(左邊名稱、右邊控制項,名稱下最多一行小字,其餘說明在「?」裡);選項是分段按鈕,開關是黑軌白鈕。「一般」的名稱改成白話(聊天的顏色、用意思找記憶、Bot 可以翻的資料夾)。「整合」分成三頁(訊息管道、連接器、技能);訊息管道先列「已連接」(標記、名稱 · 種類、誰回覆、狀態、開關、⋯ 裡移除),「新增管道」是八個方塊,點了才在下面打開那一種的表單。權限頁的「直接操作」「自動審核」也是開關。
@ -1848,6 +1848,11 @@ computer_use_screenshot、click、mouse_move、mouse_button(按住/放開)
## 32. 外觀:頭像、顏色、主題、字型 ## 32. 外觀:頭像、顏色、主題、字型
### 配色(「紙」:和手機端同一套)
- 淺色:米白紙底、側欄深一階、卡片純白;文字是帶暖調的黑。深色:暖黑三階(不藍黑)。
- 強調色(連結、選中、新訊息點、focus)是黏土橘;殼本身幾乎全灰階,**黃色只代表「需要你」**,紅只代表危險,圖表才有意識地用色(一套暖家族六色,見第 27 節頁面圖表)。
### 頭像 ### 頭像
- 12 種形狀:圓角方、圓球、膠囊、蛋、六角、寶石、雲、拱門、星星、愛心、盾牌、石頭。 - 12 種形狀:圓角方、圓球、膠囊、蛋、六角、寶石、雲、拱門、星星、愛心、盾牌、石頭。

View File

@ -20,34 +20,34 @@
/* The desktop app's colours (src/theme.rs, from the original's stylesheet), as on a phone: the /* The desktop app's colours (src/theme.rs, from the original's stylesheet), as on a phone: the
sidebar is the home, the chat is pushed on top, 對話詳細資訊 and 設定 are pushed on that. */ sidebar is the home, the chat is pushed on top, 對話詳細資訊 and 設定 are pushed on that. */
:root{ :root{
--pane:#fff;--chrome:#fcfcfc;--side:#f5f5f5;--elev:#fff;--hover:#1c1c1c0f;--active:#1c1c1c14; --pane:#faf9f6;--chrome:#f7f6f2;--side:#f2f0eb;--elev:#fff;--hover:#25221f0d;--active:#25221f15;
--primary:#1c1c1c;--on-primary:#fff;--text:#1c1c1c;--text2:#1c1c1cad;--text3:#1c1c1c8f;--text4:#1c1c1c66; --primary:#25221f;--on-primary:#fefcfa;--text:#25221f;--text2:#25221fb0;--text3:#25221f85;--text4:#25221f66;
--line:#1c1c1c1f;--line2:#1c1c1c14;--focus:#1e86fc;--accent:#1680f3;--accent-ink:#0b6dd3; --line:#25221f1a;--line2:#25221f14;--focus:#c06244;--accent:#c06244;--accent-ink:#a84f33;
--danger:#e72e3b;--ok:#10ab61;--warn:#da830e; --danger:#b42a2a;--ok:#2e7d3f;--warn:#b07f2e;
--bubble-user:#1c1c1c;--bubble-user-ink:#fff;--bubble-bot:#1c1c1c0f;--card:#fff;--attention:#ffc83d;--attention-bg:#fff6d6; --bubble-user:#25221f;--bubble-user-ink:#fefcfa;--bubble-bot:#25221f0d;--card:#fff;--attention:#d9a441;--attention-bg:#f6ecd9;
--spec:#ffffff59;--shadow:0 2px 8px -1px #0000000d,0 1px 2px #00000008,0 0 0 1px #e4e4e40a; --spec:#ffffff59;--shadow:0 2px 8px -1px #241f1a0d,0 1px 2px #241f1a08,0 0 0 1px #e0ddd40a;
/* 圖表色板(與桌面版 theme.rs chart_cat 同序): 藍紫青橙粉灰,低飽和 */ /* 圖表色板(與桌面版 theme.rs chart_cat 同序): 一個暖家族轉色相,低飽和 */
--cat1:#2383e2;--cat2:#9065b0;--cat3:#0f7b6c;--cat4:#d9730d;--cat5:#e06b9e;--cat6:#6e6c68; --cat1:#c06244;--cat2:#4f6f92;--cat3:#3e7c77;--cat4:#8a7a33;--cat5:#8a5a78;--cat6:#7a746c;
--grid:#1c1c1c12;--up:#0f7b6c; --grid:#25221f10;--up:#2e7d3f;
--font:-apple-system,BlinkMacSystemFont,"SF Pro Text","PingFang TC","Noto Sans TC","Segoe UI",system-ui,sans-serif; --font:-apple-system,BlinkMacSystemFont,"SF Pro Text","PingFang TC","Noto Sans TC","Segoe UI",system-ui,sans-serif;
--mono:ui-monospace,SFMono-Regular,Menlo,monospace; --mono:ui-monospace,SFMono-Regular,Menlo,monospace;
--safe-b:env(safe-area-inset-bottom);--safe-t:env(safe-area-inset-top); --safe-b:env(safe-area-inset-bottom);--safe-t:env(safe-area-inset-top);
} }
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){ @media (prefers-color-scheme: dark){:root:not([data-theme="light"]){
--pane:#161616;--chrome:#121212;--side:#0e0e0e;--elev:#1f1f1f;--hover:#f5f5f50f;--active:#f5f5f514; --pane:#1e1d1b;--chrome:#1b1a18;--side:#191817;--elev:#262422;--hover:#f2f0eb0f;--active:#f2f0eb14;
--primary:#f5f5f5;--on-primary:#121212;--text:#f5f5f5;--text2:#f5f5f5a8;--text3:#f5f5f58a;--text4:#f5f5f566; --primary:#f2f0eb;--on-primary:#1e1d1b;--text:#f2f0eb;--text2:#f2f0eba8;--text3:#f2f0eb8a;--text4:#f2f0eb66;
--line:#f5f5f51a;--line2:#f5f5f514;--focus:#1884fc;--accent:#1884fc;--accent-ink:#4d9bff; --line:#f2f0eb1a;--line2:#f2f0eb14;--focus:#d88366;--accent:#d88366;--accent-ink:#e2977d;
--danger:#fc2c3e;--bubble-user:#f5f5f52e;--bubble-user-ink:#f5f5f5;--bubble-bot:#f5f5f50a;--card:#252525;--attention:#ffc83d;--attention-bg:#3a3212; --danger:#e26e6e;--bubble-user:#f2f0eb2e;--bubble-user-ink:#f2f0eb;--bubble-bot:#f2f0eb0a;--card:#262422;--attention:#d9a441;--attention-bg:#38311f;
--spec:#ffffff0d;--shadow:none; --spec:#ffffff0d;--shadow:none;
--cat1:#529cca;--cat2:#b493e5;--cat3:#4dab9a;--cat4:#e3a062;--cat5:#f291c0;--cat6:#a09e9a;--grid:#f5f5f514;--up:#4dab9a; --cat1:#d88366;--cat2:#7f9dc0;--cat3:#6fae9c;--cat4:#c2b060;--cat5:#b78aa4;--cat6:#a09a92;--grid:#f2f0eb14;--up:#6fb97d;
}} }}
:root[data-theme="dark"]{ :root[data-theme="dark"]{
--pane:#161616;--chrome:#121212;--side:#0e0e0e;--elev:#1f1f1f;--hover:#f5f5f50f;--active:#f5f5f514; --pane:#1e1d1b;--chrome:#1b1a18;--side:#191817;--elev:#262422;--hover:#f2f0eb0f;--active:#f2f0eb14;
--primary:#f5f5f5;--on-primary:#121212;--text:#f5f5f5;--text2:#f5f5f5a8;--text3:#f5f5f58a;--text4:#f5f5f566; --primary:#f2f0eb;--on-primary:#1e1d1b;--text:#f2f0eb;--text2:#f2f0eba8;--text3:#f2f0eb8a;--text4:#f2f0eb66;
--line:#f5f5f51a;--line2:#f5f5f514;--focus:#1884fc;--accent:#1884fc;--accent-ink:#4d9bff; --line:#f2f0eb1a;--line2:#f2f0eb14;--focus:#d88366;--accent:#d88366;--accent-ink:#e2977d;
--danger:#fc2c3e;--bubble-user:#f5f5f52e;--bubble-user-ink:#f5f5f5;--bubble-bot:#f5f5f50a;--card:#252525;--attention:#ffc83d;--attention-bg:#3a3212; --danger:#e26e6e;--bubble-user:#f2f0eb2e;--bubble-user-ink:#f2f0eb;--bubble-bot:#f2f0eb0a;--card:#262422;--attention:#d9a441;--attention-bg:#38311f;
--spec:#ffffff0d;--shadow:none; --spec:#ffffff0d;--shadow:none;
--cat1:#529cca;--cat2:#b493e5;--cat3:#4dab9a;--cat4:#e3a062;--cat5:#f291c0;--cat6:#a09e9a;--grid:#f5f5f514;--up:#4dab9a; --cat1:#d88366;--cat2:#7f9dc0;--cat3:#6fae9c;--cat4:#c2b060;--cat5:#b78aa4;--cat6:#a09a92;--grid:#f2f0eb14;--up:#6fb97d;
} }
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent} *{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;height:100%;background:var(--pane);color:var(--text);font:15px/1.47 var(--font);-webkit-font-smoothing:antialiased;overscroll-behavior:none} html,body{margin:0;height:100%;background:var(--pane);color:var(--text);font:15px/1.47 var(--font);-webkit-font-smoothing:antialiased;overscroll-behavior:none}
@ -464,7 +464,7 @@ textarea.field{min-height:96px;line-height:1.5}
.stage{flex:1;position:relative;background:#000;display:flex;align-items:center;justify-content:center;overflow:hidden;touch-action:none} .stage{flex:1;position:relative;background:#000;display:flex;align-items:center;justify-content:center;overflow:hidden;touch-action:none}
.stage img{max-width:100%;max-height:100%;user-select:none;-webkit-user-select:none} .stage img{max-width:100%;max-height:100%;user-select:none;-webkit-user-select:none}
.stage .msg{color:#fff9;font-size:14px;padding:20px;text-align:center} .stage .msg{color:#fff9;font-size:14px;padding:20px;text-align:center}
.stage .tapdot{position:absolute;width:26px;height:26px;margin:-13px 0 0 -13px;border-radius:50%;background:#1884fc88;pointer-events:none;animation:fade .6s forwards} .stage .tapdot{position:absolute;width:26px;height:26px;margin:-13px 0 0 -13px;border-radius:50%;background:color-mix(in srgb,var(--accent) 53%,transparent);pointer-events:none;animation:fade .6s forwards}
@keyframes fade{to{opacity:0;transform:scale(1.8)}} @keyframes fade{to{opacity:0;transform:scale(1.8)}}
.tools{display:flex;gap:6px;padding:8px 10px calc(var(--safe-b) + 8px);overflow-x:auto;flex:none;background:var(--chrome)} .tools{display:flex;gap:6px;padding:8px 10px calc(var(--safe-b) + 8px);overflow-x:auto;flex:none;background:var(--chrome)}
.tools .btn{flex:none} .tools .btn{flex:none}

View File

@ -863,7 +863,7 @@ impl App {
if waiting { if waiting {
ui.painter().circle_filled(egui::pos2(rect.right() - 12.0, rect.center().y), 6.0, p.attention); ui.painter().circle_filled(egui::pos2(rect.right() - 12.0, rect.center().y), 6.0, p.attention);
} else if b.unread { } else if b.unread {
ui.painter().circle_filled(egui::pos2(rect.right() - 12.0, rect.center().y), 4.0, Color32::from_rgb(0x16, 0x80, 0xf3)); ui.painter().circle_filled(egui::pos2(rect.right() - 12.0, rect.center().y), 4.0, p.accent);
} }
if resp.clicked() { if resp.clicked() {
self.select_bot(ui.ctx(), id); self.select_bot(ui.ctx(), id);