[PR #4382] [MERGED] Launcher: Home's hero in the night look (R4) #5597

Closed
opened 2026-11-03 05:13:40 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4382
Author: @ludovic111
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @ludovic111

Base: main ← Head: feat/launcher-night-home


📝 Commits (4)

  • bbc9c46 Launcher: Home's hero in the night look (R4)
  • 95825f8 Launcher: translate Folder and Version, drop the strings Home no longer has
  • c7cc6e1 Launcher: Home says Ready to play only when Play would start the game
  • 486e300 Merge remote-tracking branch 'origin/main' into feat/launcher-night-home

📊 Changes

13 files changed (+495 additions, -337 deletions)

View changed files

📝 docs/design-system.md (+5 -0)
📝 launcher/lang/de.json (+3 -3)
📝 launcher/lang/es.json (+3 -3)
📝 launcher/lang/fr.json (+3 -3)
📝 launcher/lang/pl.json (+3 -3)
📝 launcher/lang/ru.json (+3 -3)
📝 launcher/lang/uk.json (+3 -3)
📝 launcher/lang/zh.json (+3 -3)
➕ launcher/src/home.rs (+332 -0)
📝 launcher/src/instances_page.rs (+1 -1)
📝 launcher/src/main.rs (+54 -314)
📝 launcher/src/shell.rs (+81 -0)
📝 launcher/src/theme.rs (+1 -1)

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

Ludovic has seen the screenshots and approved it (2026-10-30). First of a stack of four that lands in order: #4382, #4391, #4392, #4399.

Redesign step R4 (plan R0, screen 1): Home's hero in the night look. R3 (#4032) is merged; Ludovic approved its style on 2026-10-30 ("R3 style OK → go on to R4").

What

  • launcher/src/home.rs (new) holds Home's top:
    • State line: a 6 px square in the state's colour, then what plays and its state:
      "Minecraft: Java Edition 26.3 · Horizon Nightly · ba6344a · Needs preparing" (a Java instance:
      "Minecraft: Java Edition 1.21.1 · Fabric 0.16.9 · Ready"), plus the players online when known.
    • Title: the selected instance's name in the display cut (was "Horizon" or "Minecraft").
    • Played line: "41 h 06 min in total · last played today".
    • The update line and the one-time ping notice, restyled (notice on a night plate).
  • One action row: Play (the main action: night::PLAY tall, accent, cut in one step), the version
    picker (Horizon instances; a raised control as tall as Play), Mods and Folder (quiet buttons).
    "Host a server" goes: Servers is in the top bar since R3.
  • Card on the right (Horizon instances): a release's notes in one line under "What's new", and
    Join a friend (the invite field and Join), which leaves the rows below. A Nightly's notes are a build
    line ("main (ba6344a), built from nightly/build-…"), so a Nightly shows only Join a friend.
  • shell::action: night buttons (main, raised, quiet) for R4 and the next screens. Hover layers are
    built only while hovered, as in R3.
  • The picker names a Nightly as "Nightly · ba6344a"; its menu keeps the full tags.
  • Unchanged: play_press, every click handler, the owner gate, the rows below the hero (Instance,
    Resources, Minecraft folder, account; they move with R7's instance page).
  • i18n: "Folder" and "Version" in the 7 languages; strings Home no longer uses removed.
  • docs/design-system.md "Night": a paragraph on Home.

Next (own PRs): R4b, Play's steps while getting ready (screen 3); R5, the sign-in sheet.

Screenshots (real launcher, scratch homes, 1280×800 at 1x, Mac mini)

  • ~/builds/horizon/launcher-redesign-3/r4-home-night-1280x800.png, r4-home-dawn-1280x800.png
  • Java instance: ~/builds/horizon/launcher-redesign-3/r4-java-home-night-1280x800.png
  • before (R3): ~/builds/horizon/launcher-redesign-3/r3-merged-home-night.png

Performance (Mac mini M4 Pro, launcher CPU over 45 s at rest after 15 s, release, interleaved)

Build Idle CPU (% of one core) RSS
R3 (main since #4032) 0.84 / 0.80 / 0.89 116–118 MB
R4 0.82 / 0.91 / 0.89 116–117 MB

No new clock: the sky's half-second beat stays the only one. Raw: ~/builds/horizon/launcher-redesign-3/perf-r4.txt.

Self-check

pr_ready (tools/pr_ready.py on ludovics-mac-mini, against origin/main at d5f484c89, 4 min 0 s)

Check Result
Scope ⚠️ 13 files, +495 −337; 827 lines of code: over 500, split it if it can ship in parts
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 480 passed (1 min 0 s)
rustfmt ➖ no Rust change
clippy ➖ no Rust change
tests ➖ no crate touched
doc tests ➖ no crate touched
content root tests ➖ content root untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ✅ (1 s)
launcher clippy ✅ (1 min 19 s)
launcher tests ✅ 280 passed (1 min 40 s)
Parity ➖ 1 affected, to run in CI (no vanilla data here): lan_integration
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/4382 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/launcher-night-home` --- ### 📝 Commits (4) - [`bbc9c46`](https://github.com/horizon-rust/horizon/commit/bbc9c46c17a8da48e1de7275defd3286f4f432dd) Launcher: Home's hero in the night look (R4) - [`95825f8`](https://github.com/horizon-rust/horizon/commit/95825f818ce2fb1dafe775952f4c4afb0e906c35) Launcher: translate Folder and Version, drop the strings Home no longer has - [`c7cc6e1`](https://github.com/horizon-rust/horizon/commit/c7cc6e1256f05bb2a388d056f7a48e63b6a3a4d1) Launcher: Home says Ready to play only when Play would start the game - [`486e300`](https://github.com/horizon-rust/horizon/commit/486e3001d73934331a400e64342f30a565e7cbd9) Merge remote-tracking branch 'origin/main' into feat/launcher-night-home ### 📊 Changes **13 files changed** (+495 additions, -337 deletions) <details> <summary>View changed files</summary> 📝 `docs/design-system.md` (+5 -0) 📝 `launcher/lang/de.json` (+3 -3) 📝 `launcher/lang/es.json` (+3 -3) 📝 `launcher/lang/fr.json` (+3 -3) 📝 `launcher/lang/pl.json` (+3 -3) 📝 `launcher/lang/ru.json` (+3 -3) 📝 `launcher/lang/uk.json` (+3 -3) 📝 `launcher/lang/zh.json` (+3 -3) ➕ `launcher/src/home.rs` (+332 -0) 📝 `launcher/src/instances_page.rs` (+1 -1) 📝 `launcher/src/main.rs` (+54 -314) 📝 `launcher/src/shell.rs` (+81 -0) 📝 `launcher/src/theme.rs` (+1 -1) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Ludovic has seen the screenshots and approved it (2026-10-30). First of a stack of four that lands in order: #4382, #4391, #4392, #4399. Redesign step R4 (plan R0, screen 1): Home's hero in the night look. R3 (#4032) is merged; Ludovic approved its style on 2026-10-30 ("R3 style OK → go on to R4"). ## What - **`launcher/src/home.rs`** (new) holds Home's top: - **State line:** a 6 px square in the state's colour, then what plays and its state: "Minecraft: Java Edition 26.3 · Horizon Nightly · ba6344a · Needs preparing" (a Java instance: "Minecraft: Java Edition 1.21.1 · Fabric 0.16.9 · Ready"), plus the players online when known. - **Title:** the selected instance's name in the display cut (was "Horizon" or "Minecraft"). - **Played line:** "41 h 06 min in total · last played today". - The update line and the one-time ping notice, restyled (notice on a night plate). - **One action row:** Play (the main action: `night::PLAY` tall, accent, cut in one step), the version picker (Horizon instances; a raised control as tall as Play), Mods and Folder (quiet buttons). "Host a server" goes: Servers is in the top bar since R3. - **Card on the right** (Horizon instances): a release's notes in one line under "What's new", and Join a friend (the invite field and Join), which leaves the rows below. A Nightly's notes are a build line ("main (ba6344a), built from nightly/build-…"), so a Nightly shows only Join a friend. - **`shell::action`**: night buttons (main, raised, quiet) for R4 and the next screens. Hover layers are built only while hovered, as in R3. - The picker names a Nightly as "Nightly · ba6344a"; its menu keeps the full tags. - Unchanged: `play_press`, every click handler, the owner gate, the rows below the hero (Instance, Resources, Minecraft folder, account; they move with R7's instance page). - i18n: "Folder" and "Version" in the 7 languages; strings Home no longer uses removed. - `docs/design-system.md` "Night": a paragraph on Home. Next (own PRs): R4b, Play's steps while getting ready (screen 3); R5, the sign-in sheet. ## Screenshots (real launcher, scratch homes, 1280×800 at 1x, Mac mini) - `~/builds/horizon/launcher-redesign-3/r4-home-night-1280x800.png`, `r4-home-dawn-1280x800.png` - Java instance: `~/builds/horizon/launcher-redesign-3/r4-java-home-night-1280x800.png` - before (R3): `~/builds/horizon/launcher-redesign-3/r3-merged-home-night.png` ## Performance (Mac mini M4 Pro, launcher CPU over 45 s at rest after 15 s, release, interleaved) | Build | Idle CPU (% of one core) | RSS | |---|---|---| | R3 (main since #4032) | 0.84 / 0.80 / 0.89 | 116–118 MB | | **R4** | **0.82 / 0.91 / 0.89** | 116–117 MB | No new clock: the sky's half-second beat stays the only one. Raw: `~/builds/horizon/launcher-redesign-3/perf-r4.txt`. ## Self-check **pr_ready** (`tools/pr_ready.py` on ludovics-mac-mini, against origin/main at d5f484c89, 4 min 0 s) | Check | Result | | --- | --- | | Scope | ⚠️ 13 files, +495 −337; 827 lines of code: over 500, split it if it can ship in parts | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 480 passed (1 min 0 s) | | rustfmt | ➖ no Rust change | | clippy | ➖ no Rust change | | tests | ➖ no crate touched | | doc tests | ➖ no crate touched | | content root tests | ➖ content root untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ✅ (1 s) | | launcher clippy | ✅ (1 min 19 s) | | launcher tests | ✅ 280 passed (1 min 40 s) | | Parity | ➖ 1 affected, to run in CI (no vanilla data here): lan_integration | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:13:40 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#5597
No description provided.