Skip to content

ci(gui): render every window to screenshots on all three systems - #137

Closed
xevrion wants to merge 16 commits into
mainfrom
ci/gui-screenshots
Closed

xevrion wants to merge 16 commits into
mainfrom
ci/gui-screenshots

Conversation

@xevrion

@xevrion xevrion commented Nov 20, 2026

Copy link
Copy Markdown
Owner

Adds crates/gui/examples/screenshots.rs and a screenshots workflow that runs it on ubuntu-24.04 (under Xvfb), macos-15 and windows-2025, uploading the PNGs as screenshots-<os> artifacts kept for 14 days.

The example opens the real windows through the app's own winit backend setup with Slint's software renderer (SLINT_BACKEND=winit-software) and saves Window::take_snapshot() for each state: the main window (start, opened with the contents and space plan, no space, running, failed, done), every Settings section and the Reset prompt, About, and the right-click window running and done. Each in light and dark, in en, es, hi and zh_CN, at the default size, plus the minimum size for the main and Settings windows.

Why: the GUI is only ever built in CI, so this is a way to see what each system actually draws, in every language, without building locally.

The workflow runs on workflow_dispatch and on pull requests that touch crates/gui/**. It is not a required check and ci.yml is unchanged. The Linux job installs fonts-noto-core and fonts-noto-cjk so Hindi and Chinese render.

Stacks on #136 (the Settings window), so this diff includes it until that merges.

# Conflicts:
#	crates/gui/src/main_window.rs
#	crates/gui/src/task_window.rs
#	crates/gui/src/work.rs
#	crates/gui/translations/es/LC_MESSAGES/hatchzip-gui.po
#	crates/gui/translations/hi/LC_MESSAGES/hatchzip-gui.po
#	crates/gui/translations/zh_CN/LC_MESSAGES/hatchzip-gui.po
#	crates/gui/ui/app.slint
@xevrion

xevrion commented Nov 21, 2026

Copy link
Copy Markdown
Owner Author

Included in #138, which carried these commits with the screenshot program updated for the polish.

@xevrion xevrion closed this Nov 21, 2026
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