feat(ui): align launcher typography and artwork with the brand guide #363
No reviewers
Labels
No labels
area/build
area/install
area/mods
area/saves
area/tooling
area/ui
area/updates
ci: approved
good first issue
gpu/amd
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
platform/linux
platform/steam-deck
platform/windows
priority
critical
priority
high
priority
low
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/LongshotLauncher!363
Loading…
Reference in a new issue
No description provided.
Delete branch "futondestroyer/LongshotLauncher:feat/launcher-brand-typography"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The Launcher needs consistent brand typography and artwork across Windows and Linux. Bundled regional glyphs keep localized display headings legible when the system font selection differs from the Launcher language.
What changed
--playarguments match. Preserve the other fields and leave customized or unreadable shortcuts alone.Testing
a32390e5is −0.015 em. Formatting, locked Windows Clippy, the builder contract, all 15 catalogs and all 46 pinned release fixtures passed. The Windows core run returned 226 passed, 12 failed and 3 ignored. Eleven failures are from the prior head. The additional release-instance test reported the same runninglongshot.exein isolated reruns on both this commit and51698327. Windows captures confirm the two-line Welcome title at 1280 × 800 and the complete Italian, Simplified Chinese and Traditional Chinese Home titles at 900 px. Final spacing screenshots51698327, based on6bc3e1af. Independent cold review covered the branding, typography and shortcut review changes at that revision. The latest catalog strings required no change to the generated regional font binaries.fd9081ec, and 3 ignored.51698327passed self-check and opened and closed cleanly withzh-Hans,zh-Hantandruin an isolated portable home. The local settings and portable marker were retained.fd9081ec. Russian Home and Settings use the four verified Inter faces with normal system font discovery. The Russian update banner and lower action buttons clip at 900 × 560 on main, the reviewed head and this revision. Exact-head screenshots and comparison--playtarget, and restored the older executable byte-for-byte on rollback. An installed-upgrade fixture correctly saved the Hero icon and preserved both Start menu destinations and the unrelated shortcut. The already-open Explorer view showed the correct desktop artwork after F5.--rollbackin a separate portable folder. It exited successfully, restored main byte-for-byte, retained the replaced executable and preserved the portable marker.Windows package size
These are local unsigned Windows x64 release builds using the same locked static-CRT target, version and ZIP settings. All executables passed self-check. Main advanced between the earlier baseline measurement and the PR heads. The four regional font assets total 1,194,952 bytes before packaging. Restoring the three additional Inter weights adds 1,184,040 bytes of font assets and the
51698327portable ZIP is 602,069 bytes larger than the reviewed head. The game runtime is outside this typography and shortcut change.21a83d2bfd9081ec51698327Still to test
Limits
Windows snapshots from
d68e27cbusing the same synthetic fixture in each pair. The left column uses installed Segoe UI Black. The right column uses the bundled Encode Sans Black at width 95. Settings is captured at the 900 px minimum width.With system font discovery disabled, the bundled Inter fallback supplies the checkmark, external-link arrow and Cyrillic Я.
Added matched Windows release size measurements and isolated Explorer upgrade and rollback evidence. The installed shortcut saves the correct Hero resource, with repaint of an already-open Explorer view still pending. The packaging dependency failure also occurs on main and is tracked in PR #368. The notification experiments stayed local.
d68e27cbe2f5893ed12aThe 900 px French Saves comparison uses identical synthetic save rows on current main
21a83d2band rebased PR headf5893ed1. Main is on the left, then the PR with installed Segoe UI Black and with forced Encode Sans Black.The active row has only its active star in the progress strip. Both PR faces keep its name and metadata readable. The right edge clips the Saves panel and close control on main as well as on the PR. This is an inherited narrow-window issue.
Rebased the unchanged branding patch to
21a83d2basf5893ed1. Refreshed the matched Windows package sizes, no-system-font probe, portable rollback and French Saves baseline comparison. The exact Windows core failures match main by name. Forgejo packages and the signed handoff are waiting for Ubuntu. PR #370 repairs the synthetic version fixture that stopped the previous packaging job.The Home headline spacing change is at
f70f0d3093396f397b557ff38681bfac2f35f7a4. Windows Slint captures compare the prior PR headf5893ed1at the same window sizes and with the same synthetic UI state. The reported letter collisions reproduced in the local fixture. The new spacing separates the letters in both Segoe UI Black and forced Encode. “Update ready.” remains two lines at 900 and 1280 px. The French title still fits, and the width cap keeps the Italian “Aggiornamento” whole at 1280 × 800 and 900 × 800.On en-US Windows, changing the Launcher catalog from
zh-Hanstozh-Hanttranslated the text. A separate test held the headline characters骨直令fixed. The rendered headline crops were pixel-identical across the two app language settings at 900 and 1280 px, in both display modes. The Slint text path does not pass the app locale to Parley's font fallback.With Windows font discovery on, Traditional Chinese rendered the full
更新準備就緒。at both widths. Simplified Chinese had a blank slot for绪in更新就绪。with both display choices. Exact main21a83d2breproduced the missing glyph. With discovery disabled, neither candidate headline displayed any Han glyphs. The fonts bundled in both revisions lack these characters. This isolates the existing dependency on system CJK coverage and selection. The forced Encode and discovery-disabled runs use Windows Slint. Native Linux and Steam Deck checks remain pending, as does Ubuntu CI.This update combines the Encode-only display direction, the regional Noto CJK glyphs and the −0.045 em tracking preview on
4dab51a61773cafe93a92e10b88107d2093d7219. The rendered preview has the same source tree. The captures use synthetic data in Windows Slint at 100% scale. On Home, “Update ready.” stays on two lines with all 12 solid-fill glyph components separate at both widths.The Simplified and Traditional Chinese headlines render fully at 900 and 1280 px on en-US Windows. Their headline pixels match with system font discovery enabled and disabled. The Japanese and Korean headlines match under both configurations at 900 px. The same Han text changes glyph shape when the Launcher switches from Simplified to Traditional and returns to the original pixels when it switches back. Windows Slint provides this evidence. Linux and Steam Deck visuals remain pending.
The final display tracking is −0.025 em at
fd9081ecc0ac1f0464301fb3ec5061204c60d12a, including shared headings and the Home update hero. The Windows contact sheet is captured from this exact revision at 1280 × 800. Windows release self-check and the portable GUI smoke passed in both Chinese settings.On en-US Windows, the Simplified and Traditional Chinese Home headlines rendered fully and produced identical headline pixels with Windows font discovery enabled or disabled at 900 and 1280 px. The Japanese and Korean headlines also matched at 900 px. Switching only the Launcher language produced different glyph forms for identical input and switching back restored the original rendering.
The earlier Linux packaging run built the candidate and reproduced the missing synthetic ownership record. PR #370 addresses that fixture and the separate Windows-under-Wine Xvfb failure. Native Linux and Steam Deck typography checks remain pending.
WIP: feat(ui): align launcher typography and artwork with the brand guideto feat(ui): align launcher typography and artwork with the brand guideVerdict: Request changes. The type, the regional CJK faces and the icons are a clear gain, but large headings now lose the bottoms of g, j, p, q and y, the Russian launcher loses its bundled typeface, and portable launchers overwrite a desktop shortcut the player changed.
For a player, the launcher gets its brand typefaces, East Asian display headings that no longer depend on the system's fonts, and the new logo and desktop icon. The size cost is stated (EXE +743 KB over the earlier main baseline) and reasonable. The three points below are regressions against main, and each has a small fix.
Reviewed:
fd9081ecc0acagainst6bc3e1af35a0(main, the merge base). All changed Rust, Slint, Python, shell, rc and build code read, with the code around it, the description and comments, and Slint 1.19.1's text code. The SVGs were skimmed. The font binaries were parsed for coverage, names and metrics, not rebuilt; the licence texts and icon binaries were not read. Nothing from the PR was run (a code review).Fixed in this review: nothing; the points below change layout or behaviour.
Checked and fine:
Typography.display-familyfollowsLocale.language, whichi18n::bindsets;register_inter_fallbackruns after each window is created, and calling it twice is harmless.on_bundled_license.ExtractIconExWindex selects the resource, an old launcher without Hero falls back to 0, the handle is destroyed, and only a link to this executable or the named backup is touched. The Start menu link keeps icon 0.access.rs: on Windows outside testslegacy_answeronly returnsSilence, so gating the two variants changes no decision.build.rsnow rebuilds the resource when an icon changes. The font generator pins its inputs by SHA-256 and downloads nothing.Blocking (to change before merge)
ui/game-controls.slint:47andui/widgets.slint:231:line-height-factor: 0.92on the sharedPosterTitleandStateTitlecuts off descenders. Slint's defaultoverflow: clipclips a Text to its own box. Encode's line is 1.25 em with a 0.22 em descent; the factor takes 0.05 em off the bottom, leaving 0.17 em, while the face's g reaches 0.23, j 0.238 and p, q, y 0.22. The PR's own capture shows it: in "Building your game." (Build progress comparison, Encode side, earlier head) the g, y and g end in a hard flat edge, and the Build panel of the exact-head contact sheet looks the same at its smaller scale. That is about 3 px at 60 px and 5 px at 90 px. It also hits "Game launching.", "Game is running.", "Opened in Steam.", "The build stopped.", "Your game is ready." and mod names. Main had no factor on these two components; only Home had one, with a height correction for exactly this, which Home keeps here. Drop the factor from the shared components or move Home's height correction into them.src/main.rs:164,ui/main.slint:99andui/widgets.slint:3: the Russian launcher loses its bundled typeface. Longshot Display and Atkinson have no Cyrillic glyph at all, and Russian is a shipped catalog. Slint's chain is the named family, then SystemUi, then SansSerif (FALLBACK_FAMILIES), and Inter is appended to the end of SansSerif. So Russian renders in Segoe UI on Windows and in whatever fontconfig gives for system-ui on Linux, mixed with Atkinson or Encode for Latin words and digits. Inter is reached only where none of those has the glyph, and then as Regular alone, even for 900-weight headings. On main all of it is Inter at 400, 600, 700 and 900. The glyph test with font discovery disabled doesn't show the normal case, and no Russian capture is posted. The CJK pattern already fits: use"Inter"forbody-familyanddisplay-familywhenLocale.language == "ru"and keep the four Inter imports (or bundle a Cyrillic display face). Please post Russian Home and Settings captures with font discovery on.src/update/windows.rs:285withsrc/update/shortcuts.rs:181: every portable start without--playrewritesDesktop\Longshot.lnkwhenever its icon isn't exactly this executable's Hero.writebuilds a new link, so a player's own icon is reset at each start, and so are the arguments and any hotkey: a hand-madeLongshot.lnkthat opens the launcher becomes one that starts the game. Main changes a portable launcher's desktop link only when the player toggles the setting. Refresh only a link the launcher wrote: its icon path is this executable or the backup, its index is 0 or -2, and its arguments are--play. Add a test with a custom icon and one with other arguments. The same check covers the new calls inapplyand the rollback.Suggestions (the author may take or leave)
ui/saves.slint:81: the save row's new width rule isn't in What changed. Please add it, or split it out, since it reads as a layout fix of its own.src/game/steam/access.rsis a different topic. The description explains it, but a small PR of its own would unblock Windows Clippy sooner.Inter-SemiBold,Inter-BoldandInter-Blackbecome unused files: remove them.append_fallbacksfor Hani per language looks like the place to fix it later.make_display_cjk.py.Testing: the author's Windows runs (self-check, portable smoke, Slint sweep, shortcut fixtures) are detailed and posted, and don't cover points 1 to 3. CI on this head: lint and title pass; "Rust formatting, lint and tests" and "Release packages and stable upgrades" are still waiting to run and must pass. No Linux or Steam Deck run of this head exists, and the font chain differs there, so one Linux capture of Home, Build progress and Settings (English, Chinese, Russian) holds the merge too.
Overlaps and merge order: no duplicate found. #366 and #292 touch
widgets.slint,saves.slintandmain.slint; #317 toucheshome.slintandmain.slint; #271 touchesmain.slint. Whichever lands second rebases. #370 (WIP) repairs the packaging smoke this PR's CI needs, so it should go first.@ -159,0 +161,4 @@let mut fonts = shared_collection();if let Some(inter) = fonts.family_by_name("Inter") {fonts.append_generic_families(GenericFamily::SansSerif, std::iter::once(inter.id()));Blocking 2: this appends Inter to SansSerif, which Slint tries after the named family and SystemUi. Neither new face has Cyrillic, so Russian renders in Segoe UI (Windows) or system-ui (Linux), with Inter last and Regular only. Main had Inter at four weights.
@ -135,0 +178,4 @@return Ok(());}let icon = desktop_icon_index(exe);if !targets_current || read_icon(path)? != (exe.to_owned(), icon) {Blocking 3: also true for a custom icon the player set, and
writereplaces the link's icon, arguments and hotkey. Refresh only a link the launcher wrote (icon path and index,--play).@ -44,2 +45,3 @@font-size: 58px;letter-spacing: -2.5px;letter-spacing: Typography.display-tracking * self.font-size;line-height-factor: 0.92;Blocking 1: this takes 0.05 em off the bottom of the box, and Slint clips the text to the box, so g, j, p, q and y lose their ends (visible in the posted "Building your game." capture). Drop it here, or move Home's height correction into this component.
@ -217,2 +229,3 @@font-size: 64px;letter-spacing: -3px;letter-spacing: Typography.display-tracking * self.font-size;line-height-factor: 0.92;Blocking 1: the same for
StateTitle. Home restores the half-leading with its ownheight; the two uses in mods.slint don't.The changes requested in the review are addressed at
51698327543e1dc527972fac236dc120e61ccf43.PosterTitleand sharedStateTitleuse Slint's default leading. The actual Build progress and Mod details renders show the full descenders at 900 and 1280 px. Home retains its own leading and height correction, and its English headline crop matches the previous head pixel for pixel at both widths. Tracking stays at −0.025 em.--playarguments before touching a link. It saves in place. All eight native Windows shortcut tests passed, including custom icons and arguments, malformed links, preservation of the hotkey and working directory, upgrade and rollback.The description now documents the Saves title and metadata width adjustment. A local character-map audit confirmed every current East Asian catalog glyph in the four regional faces.
At 900 × 560 in Russian, the update banner and bottom action buttons clip on exact main, the reviewed head and this revision. The update CTA starts at the same position on main and this revision. The reviewed head starts that button 16 px farther left and shows a little more of its label. The bottom action buttons show slightly more on this revision than on the reviewed head.
@review
Recommendation: Approve. The Windows captures and shortcut fixtures show the new branding working, but the native Linux visual check and release CI are still pending. Existing Linux installations also retain the old application-menu icon after an ordinary update. Nothing blocking is left: what remains is for the author before merging (below). Recommend approval; not approved on the forge.
The launcher gains bundled brand typography, regional display glyphs and new artwork. The current Windows portable ZIP is about 602 KB larger than the reviewed PR build; the existing Linux menu icon is not refreshed on update.
Should fix (1): not blocking, but worth doing before merging.
src/desktop.rs:58: The new Linux menu artwork is written only when the menu entry is installed or explicitly registered, so ordinary updates leave existing installations with the old icon. (more on the line) Do: Refresh the owned menu icon on an installed upgrade, without overwriting an entry owned by another program, and cover the upgrade path in a test.Testing before merging (1) (the change behaves the same on every system: one run of the change itself is enough; it doesn't hold the recommendation)
ui/main.slint:88: The new bundled typography and artwork need a native Linux visual check. (more on the line) Do: Check the current AppImage on Linux, including localized Home, Build and Settings headings, the desktop icon, and Chinese headings without system CJK fonts.@fixcan do L1.Checks: Still running:
CI / Rust formatting, lint and tests (pull_request),CI / Release packages and stable upgrades (pull_request).More: does it help, other systems, switches, what was read
Does it help: Yes for the Windows typography and shortcut behavior shown in the author's captures and fixtures. Linux and Steam Deck rendering remain unverified; this is not a performance change.
Other systems: Windows shortcut migration, rollback and localized rendering have reported fixture or visual evidence. Linux AppImage rendering, font fallback without system CJK fonts, desktop artwork and Steam Deck visuals remain to be checked. The change does not affect the game runtime.
Switches: None added, changed or removed.
Reviewed:
5169832754against6bc3e1af35: Read the repository rules, commit history and diff, shortcut implementation and tests, Linux and Windows installation paths, desktop entry code, font and icon generators, font source notes and changed Slint hunks. Skimmed the SVG artwork and recorded runs; font and icon binaries and license texts were not independently parsed or rebuilt. Not every changed code file was read in full.; nothing run (a code review).Checked and fine:
Testing: No code or tests were run for this review. The author reports Windows visual checks, eight native shortcut tests and release self-checks; Linux visual checks and the two CI jobs remain pending.
Overlaps and merge order: PR #370 repairs Linux packaging and upgrade fixtures; its integration and complete Ubuntu rerun are pending.
Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.
@ -56,3 +56,3 @@"[Desktop Entry]\nType=Application\nName=Longshot Launcher\nComment=Install Longshot's builder, build the game from your own copy, and play\nExec={quoted}\nTryExec={image}\nIcon={icon}\nTerminal=false\nCategories=Game;\nStartupWMClass=longshot-launcher\n");write(&self.icon, include_bytes!("../assets/longshot.png"), false)?;write(L1 (should fix): The new Linux menu artwork is written only when the menu entry is installed or explicitly registered, so ordinary updates leave existing installations with the old icon.
When: A player updates an installed AppImage from main. The updater replaces the AppImage, and Linux startup updates the version receipt without calling Menu::install; the existing desktop entry still points to the previously written longshot-launcher.png.
Do: Refresh the owned menu icon on an installed upgrade, without overwriting an entry owned by another program, and cover the upgrade path in a test.
@ -83,6 +85,17 @@ export {export { ShortcutTrustWindow } from "shortcut-trust.slint";export { SetupWindow } from "setup.slint";export { ProfileSwatch } from "player-model.slint";import "../assets/fonts/LongshotDisplay-Black.ttf";L2 (should fix): The new bundled typography and artwork need a native Linux visual check.
When: Linux users may see different font discovery, glyph fallback or layout behavior from the Windows captures; no native Linux result is reported for this head.
Do: Check the current AppImage on Linux, including localized Home, Build and Settings headings, the desktop icon, and Chinese headings without system CJK fonts.
Display tracking is set to −0.015 em at
a32390e563e6bc154e1f0431f970b83a96d2af00for the header wordmark, shared display headings and Home hero. The Welcome screen at 1280 × 800 keeps its two-line heading. At 900 px, the Italian Home hero keeps “Aggiornamento” intact and both Chinese Home headings render in full.