Skip to content

Any GPU, and a theme file for the look and layout - #4

Merged
BBareth merged 2 commits into
mainfrom
feature/any-gpu-and-themes
Nov 29, 2026
Merged

BBareth merged 2 commits into
mainfrom
feature/any-gpu-and-themes

Conversation

@BBareth

@BBareth BBareth commented Nov 29, 2026

Copy link
Copy Markdown
Owner

What changes

  • Any GPU. The GPU helper picks an adapter through DXGI. An NVIDIA card is still read through NVML (watts against the board limit); anything else, or any card with [gpu] source = "wddm", is read through WDDM, the kernel statistics Task Manager uses: load, VRAM, and where the driver reports them, temperature, clock, power share and fan RPM. [gpu] adapter picks a card by number or name on multi-GPU machines.
  • Theme file. %APPDATA%\Vitals\theme.toml holds colours, fonts, sizes, thresholds, columns, and the order and rows of every section. It reloads on save, as does config.toml. Built-in themes: default, light, compact, strip.
  • vitals.exe --preview out.png renders the panel with sample readings, for checking a theme without the overlay. CI renders every built-in theme and uploads the PNGs.
  • GPU temperature falls back to HWiNFO / LibreHardwareMonitor when the driver keeps it to itself. The CPU and GPU model can be shown as a row.
  • No helper process runs while the GPU section is switched off.

Checks

  • cargo check, clippy -D warnings and fmt --check for x86_64-pc-windows-msvc locally; theme and config tests run locally through a scratch crate.
  • CI on windows-latest runs the full test suite, both helper smoke tests and the theme previews.
  • Not run on real AMD or Intel hardware.

🤖 Generated with Claude Code

BBareth and others added 2 commits November 29, 2026 18:32
The GPU section was NVIDIA-only. The helper process now picks an adapter
through DXGI and reads it through NVML when it is an NVIDIA card, or
through the WDDM statistics Task Manager uses for everything else: AMD,
Intel and NVIDIA alike, with no extra install.

Colours, fonts, sizes, thresholds and the order and rows of every
section move out of constants into theme.toml, which reloads on save.
config.toml reloads on save too. Four built-in themes, and
'vitals.exe --preview out.png' renders a theme to a PNG with sample
readings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@BBareth
BBareth merged commit 1f9b464 into main Nov 29, 2026
1 check passed
@BBareth
BBareth deleted the feature/any-gpu-and-themes branch November 29, 2026 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant