Repository navigation
Conversation
…missing default folder, wrap switch labels
…i-settings-window
…e the test a real default folder
# 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
…i/gui-screenshots
Owner
Author
|
Included in #138, which carried these commits with the screenshot program updated for the polish. |
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.
Adds
crates/gui/examples/screenshots.rsand ascreenshotsworkflow that runs it on ubuntu-24.04 (under Xvfb), macos-15 and windows-2025, uploading the PNGs asscreenshots-<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 savesWindow::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_dispatchand on pull requests that touchcrates/gui/**. It is not a required check andci.ymlis 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.