usage

usage 0.29.21

工具與目錄
在這頁

新功能 3 項

01

Windows 額度面板不再高出一截

Windows 使用者打開額度面板時,畫面不會再像穿了大一號外套。面板(popover,浮在原畫面上的小視窗)曾沿用舊的高度數字;在網頁內容回報實際高度前,八個面板會高出 17 到 24 點。現在 Windows 的備援高度表已對齊 Mac 的重新校準結果,程式也留下數字來源註記,之後調整不易漏改。就像先拿錯尺寸的相框,照片尺寸一量到才換掉;現在相框一開始就合身。

官方原文

**Windows quota panels opened taller than their content.** wintray.py's PANEL_HEIGHTS still held the numbers from before 64a7c0b recalibrated the Mac panel heights; that commit missed the Windows fallback table, so eight panels rendered 17–24pt too tall for the brief window before the WebView reports its real content height. The numbers now match, with a comment recording where they come from so the next recalibration doesn't miss this table too.

02

新增額度卡,原本排序照樣保留

你排好額度卡片的順序後,新增來源不會把整份排序洗回預設。額度卡(quota card,顯示各項使用額度的卡片)原先要求已儲存順序的長度和預設清單完全一致;多一張新卡時,舊順序就被當成無效。現在只拒絕重複或不存在的識別碼(id,用來辨認項目的代號);少掉的新卡會接在原順序最後。像書架多買一本書,不必把整櫃重排,只把新書放到最後。

官方原文

**Adding a new quota card silently reset everyone's saved card order.** _valid_quota_card_order() required the saved order's length to match the current default list exactly, so a newly added card (a fourth quota source, say) made every existing saved order look invalid and quietly fall back to default. It now only rejects duplicate or unknown ids; an order that's missing a newer card gets that card appended instead of the whole preference being discarded.

03

命令列狀態列換上青綠與藍色

看命令列(CLI,用文字指令操作的介面)時,專案名稱、分支和數值標籤換成青綠與藍的配色。使用百分比依嚴重程度顯示的顏色沒有改。這不是功能或判斷方式改了,而是同一張儀表板換了表面:你讀到的資訊與警示顏色都照舊,只有原本綠、藍、洋紅混用的幾個標籤改成了新的色調。因此看見青綠與藍時,不代表數值的嚴重程度跟著改變;百分比的顏色規則仍和之前相同。

官方原文

**The CLI status line moved to a cooler color palette.** The project name, branch, and metric labels shifted from the original green/blue/magenta mix to a teal-and-blue variant; usage-percentage colors by severity are unchanged.