Skip to content

refactor(gui): split Main.qml into a Cryo module, add demo mode and a tour - #32

Merged
I4cTime merged 2 commits into
mainfrom
feat/gui-groundwork
Nov 12, 2026
Merged

I4cTime merged 2 commits into
mainfrom
feat/gui-groundwork

Conversation

@I4cTime

@I4cTime I4cTime commented Nov 12, 2026

Copy link
Copy Markdown
Owner

Summary

Groundwork for the upcoming "cryo feel" pass. No visible change and no behaviour change in the real app.

  • Main.qml (one 1872-line file) is split into a QML module, qml/Cryo, with Theme and Ambient singletons and one file per component and section. Main.qml is now 94 lines.
  • cryo-gui --demo [--scenario idle|load|guard|gaming|cycle] runs the full GUI against a scripted daemon (DemoDaemon) on any machine, with no cryod and no Alienware hardware. Every control responds; nothing touches the real socket or real settings.
  • tools/tour.py renders the GUI headless, scene by scene, for screenshots and a CPU sample. GPU path through a headless gamescope, software path through the offscreen platform.
  • A GUI smoke test loads the window offscreen and fails on any QML warning. CI installs the Qt runtime libraries so the test runs there instead of skipping.

Type

Refactor plus test tooling. No daemon, hw, cli or socket protocol changes.

Checklist

  • uv sync --frozen, compileall, import smoke, cryoctl --help, version consistency
  • uv run pytest -q: 137 passed (114 existing, 23 new)
  • No em dashes added (count is 0)
  • Wheel built and inspected: all 39 GUI files are packaged, tools/ is not

Verification

  • Pixel parity across 13 tour scenes, original QML against the split, outside the regions that animate (fan rotors, badge pulse, keyboard preview): 0 difference on the software renderer. On OpenGL the difference is 1 LSB on about a hundred pixels, the same size as between two runs of the original QML.
  • CPU sample (idle scene, focused, 20 s): 8.9 to 11.6 percent of one core before, 10.6 to 11.3 after. Within run-to-run noise.
  • DemoDaemon is pinned to the engine: a test runs a real Engine.tick() with stubbed hardware and requires the demo frame to carry the same keys and value types.
  • Not covered: the split GUI has not been run against the live daemon on real hardware by hand; the tour and tests use the scripted daemon only. One qmllint warning about the Ambient singleton declaration is unexplained, although the singleton works at runtime.

Breaking changes

None.

🤖 Generated with Claude Code

I4cTime and others added 2 commits November 11, 2026 22:28
… tour

Main.qml was one 1872-line file with its colour tokens on the window.
It is now a thin shell over a QML module (qml/Cryo) with Theme and
Ambient singletons and one file per component and section. No pixel
changes: tour shots before and after match on the software renderer and
differ only by GPU run-to-run noise (1 LSB) on OpenGL.

cryo-gui --demo runs the full GUI against a scripted daemon
(DemoDaemon) on any machine, with scenarios and a feed/set_state API.
A test pins its telemetry frame to a real engine tick so it cannot
drift. tools/tour.py renders scenes headless (gamescope for the GPU
path, offscreen for software) and can sample CPU use.

A GUI smoke test loads the window offscreen and fails on any QML
warning; CI installs the Qt runtime libraries so it runs there.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_0137cahar5LBoYMf2fiDkt4v
Review follow-up. A runner image that lost a Qt library would have
skipped the GUI tests and stayed green; on CI the import now raises.
The smoke fixture also asserts that no QML warning was emitted while
tearing down the engine and the bridge.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_0137cahar5LBoYMf2fiDkt4v
@I4cTime
I4cTime merged commit e9e12c8 into main Nov 12, 2026
1 check passed
@I4cTime
I4cTime deleted the feat/gui-groundwork branch November 12, 2026 06:17
I4cTime added a commit that referenced this pull request Nov 12, 2026
…36)

Version bump. The release gathers #32-#35: the desktop app split into
a Cryo QML module with a demo mode and a screenshot tour; the feel
pass (window frost and backdrop washes that follow the heat, the
Thermal Guard flash freeze, ice panels and vector icons, the living
mark, rolling digits, three synthesized sound sets, Frost's one-line
status, four styles with an accent override on a new Settings view);
a missing libusb-1.0 reading as "no lighting" instead of a crash
loop; and the downloadable installer bundle with the release workflow
that builds, attests and attaches it.


Claude-Session: https://claude.ai/code/session_0137cahar5LBoYMf2fiDkt4v

Co-authored-by: Claude Fable 5.2 <[email protected]>
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