usage 0.29.34
新功能 2 項
選單列數字與供應商標記更容易辨認
⟦把選單列(menu bar,畫面頂端顯示資訊的一條列)想成放在不同牆色前的指示牌:文字和標記得靠粗細與輪廓看清楚,不能只靠原本顏色。⟧百分比維持原有點數,但改為粗體,整條列約增加 5 點;在淺色桌布前也較容易一眼讀到。供應商標記(provider marks,標示服務來源的小圖樣)則改成單色範本影像,會跟著選單列外觀變化:淺色時顯黑,深色時顯白。它們不再倚賴顏色細節,Codex 標記不會在選單列大小縮成模糊一團;也與一向採同樣畫法的 critters 相符。標記大小現在為 14 至 16 點。
官方原文
**The menu bar percentages are now bold.** They were drawn at the menu bar's own point size in regular weight, which left them lighter than everything around them — hard to read at a glance over a light wallpaper. Same size, bold weight; the strip grows by about 5 points.
**The provider marks in the menu bar are now monochrome and follow the menu bar's own appearance.** The color art had to work against whatever wallpaper was behind it, and the Codex mark in particular collapsed into an indistinct blob at menu bar size because its detail came from color rather than shape. The marks are now template images — the system tints them black on a light menu bar and white on a dark one, so they stay legible everywhere, and they match the critters, which have always been drawn this way. They are also 14 to 16 points now.
程式搬進分區後,也逐項核對啟動清單
⟦整理倉庫,搬盒子進分區後仍得核對出貨清單與新架位,否則開門後才發現找不到貨。⟧散在 repository root 的 77 個模組,歸進 packages(套件,程式的可匯入資料夾)。menubar/、loaders/、wintray/、discussion/、tui/、updates/ 六個資料夾收進 42 個,root 剩 35 個。這只改 import paths(匯入路徑,程式尋找其他程式碼的位置)。行為不變。虛擬環境外的檔案沒搬;狀態列 hooks(掛鉤,特定事件發生時被觸發的小程式)仍留頂層,因為 usage setup 會複製到家目錄,由系統 Python 執行。main.py 以字串載入模組,搜尋找不到;搬走後,字串可能指向空處,測試仍通過,App 卻無法啟動。新增測試讀取 main.py,比對呼叫的模組屬性與內容。
官方原文
**The 77 modules that sat loose in the repository root are now grouped into packages.** menubar/, loaders/, wintray/, discussion/, tui/, and updates/ absorbed 42 of them; the root is down to 35. Nothing moved that runs outside the virtualenv — the status line hooks are still plain files at the top level, because usage setup copies them into the user's home directory to run under the system Python. Behavior is unchanged; only import paths moved.
**A test now guards the modules that main.py loads by name.** Those loads are plain strings, so no search finds them and a moved module leaves the string pointing at nothing while the whole suite still passes and the app fails to launch. The test reads main.py and checks every attribute it calls on such a module against that module's actual contents.