usage 0.31.1
新功能 1 項
心電圖面板主題登場,用量高低化為即時跳動波形
在日常盯著各家模型額度時,你現在能用醫院監視器風格的畫面掌握消耗狀況。⟦像看跑車儀表板上的動態轉速表,以前查用量只能盯著單純的數字進度,現在消耗節奏直接化為起伏波形,用量越凶波峰跳得越急。⟧新加入的心電圖(Heart Monitor)主題採用深色網格背景。每一列額度旁邊都有一條持續捲動的心電圖與等寬大字讀數,當用量越高,波峰會長得越高且跳動得越快。原本的 50% 與 80% 警示及危險配色,以及 80% 記號都完整保留。如果你在系統中開啟了「減少動態效果」,波形動畫就會貼心暫停。這項主題在 macOS 與 Windows 都能使用,讓可選的面板總數增加到 16 款。
官方原文
**Heart Monitor panel theme.** A hospital-monitor look on a dark grid: every quota row scrolls an ECG trace whose peaks grow taller and faster as usage rises, next to a large monospace readout. The 50% / 80% warning and danger colors and the 80% mark still apply, and the animation stops when Reduce Motion is on. Available on macOS and Windows; the panel count is now 16.
修正 1 項
Windows 面板視窗精準貼合內容,放大文字不再冒出多餘捲軸
當你在 Windows 調大文字大小,開啟面板不會再看到擠在邊緣的垂直捲軸。⟦照片接連放大兩次,若相框只照第一次尺寸做,邊緣仍會被擠住;按最後尺寸做才裝得下。⟧這是先前視窗問題([#153])的後續改進。若 Windows「文字大小」非 100%,會在顯示縮放外疊加 WebView2 縮放倍率(如 125% 乘 109% 達 1.3625)。舊版 GetDpiForWindow 未計入這層放大,使視窗比內容矮約 8% 而冒出捲軸,隱藏卡片也沒用。現在頁面會回報內容高度與 devicePixelRatio(實際顯示倍率),面板依此換算視窗大小、工作區、已存位置與可讀性下限,未回報前則退回顯示縮放。針對 pywebview 呼叫 resize() 與 move() 重複乘上縮放的問題,也依兩者比值補正。
官方原文
Size the Windows panel from the scale its page is really rendered at, so it no longer scrolls when Windows' "Text size" is not 100% (a follow-up to [#153](https://github.com/aqua5230/usage/issues/153)). Text size multiplies WebView2's device pixel ratio on top of the display scale (125% × 109% = 1.3625), but GetDpiForWindow does not include it, so a window sized with the display scale alone came out about 8% shorter than its content: a scrollbar appeared although the screen had room to spare, and hiding a card did not help. The panel page now reports its devicePixelRatio together with its content height, and the window size, work area, saved position and legibility floor are converted with it, falling back to the display scale until the page has reported one. pywebview's resize() / move() multiply by the display scale themselves, so they are corrected by the ratio between the two.