Commit Graph

4 Commits

Author SHA1 Message Date
王性驊 5845986227 字體改成 Apple 的(SF Pro+蘋方,粗體用半粗),回答不再用宋體;設定左邊每頁加圖示;「模型」改成供應商圖塊(不再是設定旁邊再一排清單);「個人資料與用量」改成數字列+大數字+長條+彩色比例條,不再一整片字。
- 字體(src/main.rs):Mac 上介面和讀的文字都用系統的 SF Pro(可變字體,400/600)加蘋方 PingFang TC(Regular/Semibold),跟 macOS 自己一樣;沒有蘋方的電腦用包在 App 裡的思源黑體。蘋方 78MB 只讀一次共用。思源宋體拿掉(App 小 16MB)。手機的 --font-read 改成跟介面同一種,標題 600。
- 設定左邊分頁:原本就配好的圖示畫出來(齒輪、人、星光、格子、螢幕、盾牌、保險庫、麥克風、雲);拿掉分頁和內容之間的線(底色已經分開)。
- 模型(新 src/app/models_ui.rs):每家一塊圖塊——服務的圖案(src/icons.rs provider_mark,自己畫的簡單圖形,不是任何人的商標圖檔)、名字、「● 可以用/還沒設定」、雲端/本機;點進去才是金鑰和網址,上面「‹ 模型」回來。從聊天、搜尋設定跳來直接進那一家。
- 個人資料與用量(src/app/me_ui.rs):五張有框的卡(兩三欄)→ 一條淡底沒有框的數字列(細節在滑過);最活躍的一天放到熱度格子旁邊一行;用量:大數字 token(新讀、寫、快取在滑過)、呼叫和花費一行、每天的長條、「依模型/依 Bot」切換(依模型一條彩色比例條,每列有服務圖案;依 Bot 每列有頭像)。示範截圖有一年的假資料(ANYBOT_SHOT_TAB=me)。
- 數字:過千萬不帶小數(3,699萬,不是 3699.0萬),整數不寫「.0」。
- 修:任務頁兩個任務同一毫秒開頭時 id 一樣,兩張卡搶同一個按鍵(版面檢查在變慢後抓到);卡片 id 加上它在清單裡的位置。

已驗證: cargo test 876 個全過(含 layout_audit::、featuremap::、stats::);clippy 沒有新警告;desktop-shot 看過聊天(中英混排基準線對齊)、設定一般、模型圖塊、個人資料上半和用量(捲下去)。
未驗證: 手機頁面的字體只改了 CSS,沒有在真的 iPhone 上看;Windows/Linux 的思源黑體備案沒有實機跑;版面檢查變慢(約 40 秒 → 100 秒,每個畫面都載入蘋方)。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Uirha2uBHmbnuWBhNzjbJm
2026-11-22 08:35:28 +08:00
王性驊 7b1ec67754 design: 一套設計規格(電腦和手機同值)+讀的文字改成 Claude/Notion 的文件樣式
依 Claude 的設計原則:定一套字級並守住、卡片樣式按角色用、重複的元素一致。

- 字型:只留思源黑體(介面)+新加思源宋體(回答、頁面內文和標題,SIL OFL);
  拿掉粉圓體和「系統字型」選項、粉圓單一粗細的「粗體畫兩次」補丁;Mermaid 圖改用思源黑體;
  fonts/OFL.txt 補上思源黑體/宋體的版權
- 規格(theme.rs fs/sp/radius、手機 :root --fs-* --sp-* --r-*):字級 12/13/14/16/18/22/28、
  閱讀行高 1.7、間距 4–32、圓角 6/10/14;桌面 253 個寫死字級、166 個寫死圓角換成規格名稱,
  手機 167 個字級、79 個圓角、19 個色碼換成變數
- 看守測試:桌面和手機數字要一樣;畫面程式裡不准再寫死字級和圓角,寫死的顏色只准減少(88)
- 讀的文字:聊天 16 px 宋體行高 27、頁面同;標題 # 22 / ## 18 / ### 16;表格只有橫細線、
  表頭灰色粗體、數字欄靠右;提示框淡底無邊條只有小標上色;程式碼淡底無框;數字卡只留細框
- 頁面視窗:宋體大標題、一行小字資訊、現況當開頭段落、結論是安靜的提示框;目錄收成一行
  「▸ 目錄 · N 節」(⌘F 展開);刪除移到左邊,不再貼著「完成」;閱讀欄 680
- 圓餅圖拿掉黑色外圈、字照規格

已驗證: cargo test 518 全過(含排版檢查、規格比對、看守測試;看守測試故意放一個寫死字級確認會擋)、
clippy 21=基線;桌面頁面、聊天、表格原解析度截圖目視;手機 390 px 深淺截圖、node 圖表 65/通知 9
未驗證: 使用者機器上的實際視窗;iOS/Android 實機的宋體備援(手機用系統宋體,沒有就退回 serif)
2026-11-16 21:51:30 +08:00
王性驊 6a84abcaeb 外觀: the bot is the lead — its face over the input says what it is doing, its colour runs through the chat, requests dock above the input
- 思源黑體 (Noto Sans TC Regular, OFL, bundled) is the default font; 粉圓體 and the system font stay as choices
- the chat takes the bot's colour by default: the person's bubble, the send button, the chosen tile (a little of it)
- the bot's words sit on the page without a bubble; the person's bubble has its small corner toward them
- above the input: the bot's face, looking at the input when idle, up while it thinks, across at 「正在…」 while a
  step runs, at the person (yellow dot) when it needs them, smiling for 2 s when done, flat-eyed after an error
- 需要你允許 is a yellow card docked above the input instead of a pop-up over the window; Enter allows and Esc
  refuses while the input is empty, after the card has been up 0.6 s; yellow is the one colour for 「需要你」
- header: the name at the left, plain buttons without rings; icons drawn a little heavier (2.25)
- an empty chat: the face large, a line on what the bot is for, three things to start with
- screenshot hook ANYBOT_SHOT_CALM

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Uirha3QxSfoydRPM9mjj6d
2026-11-11 21:44:59 +08:00
王性驊 d7ee3f5db9 AnyBot: first commit of the working desktop app
Rust/egui rebuild of Grok Bot as of 2026-11-04: chat with streaming
providers (xAI, OpenAI, Claude, Gemini, OpenRouter, OpenCode Go, Ollama,
custom), tools and approvals, the bot's Docker computer, computer use on
macOS / Linux X11 / Wayland, AnyBot's browser with a full DevTools-based
toolset, the encrypted vault, pinned grid and sidebar sections, Markdown
with Mermaid diagrams, phone access through the relay, and the Linux
build and test scripts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Uirha3oEtWeHh58zA7ErHa
2026-11-04 16:51:51 +08:00