繁體中文

新功能

心電圖面板主題登場,用量高低化為即時跳動波形

在日常盯著各家模型額度時,你現在能用醫院監視器風格的畫面掌握消耗狀況。

新加入的心電圖(Heart Monitor)主題採用深色網格背景。每一列額度旁邊都有一條持續捲動的心電圖與等寬大字讀數,當用量越高,波峰會長得越高且跳動得越快。原本的 50% 與 80% 警示及危險配色,以及 80% 記號都完整保留。如果你在系統中開啟了「減少動態效果」,波形動畫就會貼心暫停。這項主題在 macOS 與 Windows 都能使用,讓可選的面板總數增加到 16 款。

問題修復

Windows 面板視窗精準貼合內容,放大文字不再冒出多餘捲軸

當你在 Windows 調大文字大小,開啟面板不會再看到擠在邊緣的垂直捲軸。

這是先前視窗問題([#153])的後續改進。若 Windows「文字大小」非 100%,會在顯示縮放外疊加 WebView2 縮放倍率(如 125% 乘 109% 達 1.3625)。舊版 GetDpiForWindow 未計入這層放大,使視窗比內容矮約 8% 而冒出捲軸,隱藏卡片也沒用。現在頁面會回報內容高度與 devicePixelRatio(實際顯示倍率),面板依此換算視窗大小、工作區、已存位置與可讀性下限,未回報前則退回顯示縮放。針對 pywebview 呼叫 resize() 與 move() 重複乘上縮放的問題,也依兩者比值補正。

English

FEATURE

Heart Monitor popover theme debuts, turning quota usage into live pulsing waveforms

When keeping an eye on model quotas each day, you can now track consumption with a hospital-monitor style interface.

The newly added Heart Monitor theme features a dark grid background. Next to each quota row is a continuously scrolling ECG trace alongside large monospace readings; as usage rises, the peaks grow taller and pulse faster. The original warning and danger color schemes for 50% and 80%, along with the 80% marker, are fully preserved. If you have "Reduce Motion" enabled in your system settings, the waveform animation pauses automatically. This theme is available on macOS and Windows, bringing the total number of selectable themes to 16.

BUGFIX

Windows popover window fits content accurately, eliminating unwanted scrollbars when scaling text

When you increase text size on Windows, opening the popover will no longer display a vertical scrollbar crammed against the edge.

This is a follow-up improvement to a previous window issue ([#153]). If Windows "Text size" is not 100%, WebView2 zoom is compounded on top of display scaling, such as 125% multiplied by 109% reaching 1.3625. The legacy GetDpiForWindow did not account for this extra scaling layer, leaving the window roughly 8% shorter than its content and causing scrollbars to appear even if cards were hidden. The page now reports content height and devicePixelRatio (effective display scale), which the popover uses to calculate window dimensions, workspace, saved positions, and readability floors, falling back to display scale before reporting occurs. To address pywebview redundantly multiplying scaling on resize() and move() calls, values are corrected using the ratio between both scales.

原始 CHANGELOG

Original changelog心電圖面板主題登場,用量高低化為即時跳動波形
**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.
Original changelogWindows 面板視窗精準貼合內容,放大文字不再冒出多餘捲軸
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.