Repository navigation
refactor(gui): split Main.qml into a Cryo module, add demo mode and a tour - #32
Merged
Merged
Conversation
… 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
3 tasks done
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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, withThemeandAmbientsingletons and one file per component and section.Main.qmlis 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.pyrenders the GUI headless, scene by scene, for screenshots and a CPU sample. GPU path through a headless gamescope, software path through the offscreen platform.Type
Refactor plus test tooling. No daemon, hw, cli or socket protocol changes.
Checklist
uv sync --frozen, compileall, import smoke,cryoctl --help, version consistencyuv run pytest -q: 137 passed (114 existing, 23 new)tools/is notVerification
DemoDaemonis pinned to the engine: a test runs a realEngine.tick()with stubbed hardware and requires the demo frame to carry the same keys and value types.qmllintwarning about theAmbientsingleton declaration is unexplained, although the singleton works at runtime.Breaking changes
None.
🤖 Generated with Claude Code