[PR #7613] [MERGED] launcher: the redesign's Home head (glass look) #7716

Closed
opened 2026-11-03 07:22:28 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/7613
Author: @ludovic111
Created: 11/2/2026
Status: ✅ Merged
Merged: 11/2/2026
Merged by: @ludovic111

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


📝 Commits (1)

  • 1b7a297 launcher: the redesign's Home head (glass look)

📊 Changes

15 files changed (+1189 additions, -81 deletions)

View changed files

📝 launcher/lang/de.json (+20 -1)
📝 launcher/lang/es.json (+20 -1)
📝 launcher/lang/fr.json (+20 -1)
📝 launcher/lang/ja.json (+20 -1)
📝 launcher/lang/pl.json (+20 -1)
📝 launcher/lang/pt-br.json (+20 -1)
📝 launcher/lang/ru.json (+20 -1)
📝 launcher/lang/tr.json (+20 -1)
📝 launcher/lang/uk.json (+20 -1)
📝 launcher/lang/zh.json (+20 -1)
➕ launcher/src/glass_home.rs (+788 -0)
📝 launcher/src/glass_ui.rs (+107 -0)
📝 launcher/src/instance_icons.rs (+1 -1)
📝 launcher/src/main.rs (+90 -69)
📝 launcher/src/scrollbar.rs (+3 -1)

📄 Description

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

Redesign 5 of the series that ports Anthony S.'s launcher mockup (playhorizon.dev/launcher) 1:1 to the GPUI launcher. Design reviewer: dezer-x. Stacked on #7566 (glass shell), which is stacked on #7538 → #7489 → #7447.

In the dark appearance, Home's banner becomes the mockup's HomeView head. The tabs below it are still the current ones; the tabbed glass panel and its tabs come next.

What it is

launcher/src/glass_home.rs, wired to the launcher's real state and actions:

  • Edition tabs (Tabs size sm): Rust Edition with Horizon's mark tile, Java Edition with the grass block from the player's own Minecraft install (never shipped). The instance's own edition is lit.
  • Title and played line: the instance's icon (56) and its name in Bricolage at 64 px. Under them:
    • "You've played for 41 h 06 min! Last played today.";
    • "Playing for 12 min now. Have fun!" while the game runs;
    • "You haven't played this one yet…" before the first game.
  • Play group:
    • Play (the current prepare-then-play rules); Update when the launcher's version has a newer one; Stop while the game runs;
    • while busy, the progress fill with "Preparing 34%", "Updating 60%" or "Starting…".
    • Its ⋯ menu: Prepare / Prepare again, Play without updating, Create or Remove the desktop shortcut, and Copy the launch command.
  • Version picker: "Version" over the build, and a chevron that turns. The list ticks the build in use, then ends with Manage versions.
  • Mods big icon: opens the instance's Mods tab.
  • Folder button: its ⋯ shows under the pointer. The menu offers Open the instance folder, Open the screenshots folder, and Choose the Minecraft folder (Horizon).
  • Join a friend: the 340-wide field, with its icon and Join inside.
  • Scrollbar: the glass scrollbar now lies over the page margin, as an overlay scrollbar does. The right column then ends 32 px from the window edge, as in the mockup.

Side by side

Left: the mockup in Chrome at 1280×768. Right: the launcher at 1280×800, title bar cut. The launcher shows real scratch-home data; its instance isn't prepared and nobody owns the game, so Play is dimmed.

Home
home

Play ⋯ menu
play menu

Version picker
picker

Folder ⋯ menu (the mockup capture has no open folder menu)
folder menu

Not in the mockup, kept

  • The playing-now count and the official SMP count, after the played line, same style (links as before).
  • Manage versions at the end of the version list (opens Versions).
  • The preparation steps (bar, what is downloading, time left) under the head while preparing.
  • The Sculk card in the sidebar, unchanged (sponsor).

Gaps, to settle with dezer-x

  • Java edition:
    • The edition tabs can't switch an instance between Rust and Java: an instance's edition is set when it is made. The other tab shows in the mockup's disabled style.
    • Java instances have no version picker: their Minecraft version is chosen when they are made.
    • Java instances have no Verify game files: the launcher has no verify yet.
  • Version list notes: they show the tag, or "Newest · follows updates". The mockup shows release dates, which the launcher does not keep for installed builds.
  • Starting: shows no percentage, because the launcher has none to show.
  • Folder menu: has no "Open the game folder". A Horizon instance's folder is its game folder.
  • Folder ⋯: pops in. The mockup slides it open over 200 ms.
  • Action row: stays on one line. At 1280 px the mockup's flex-wrap would wrap it when the folder ⋯ shows, moving the ⋯ from under the pointer.
  • Name letter-spacing: the title's -0.035em tracking isn't applied, because GPUI has no letter-spacing.
  • Home background picture: the setting isn't drawn in the glass look yet. It belongs to the Settings PR.
  • Old banner content: the hero's "What's new" card and its version state line are gone. They come back as the Patch log in the Overview tab (next PR); readiness shows in the sidebar row.

Self-check

pr_ready (tools/pr_ready.py on ludovics-mac-mini, against origin/main at 2e540fe37, 3 min 44 s)

Check Result
Scope ⚠️ 72 files, +4631 −120; 4710 lines of code: over 500, split it if it can ship in parts
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 612 passed (2 min 10 s)
rustfmt ✅ (7 s)
clippy ✅ (2 s)
tests: horizon-theme ✅ 12 passed
doc tests ✅ 0 passed
content root tests ➖ content root untouched
mod API up to date ➖ native hooks untouched
tokens.css up to date ✅
launcher rustfmt ✅ (1 s)
launcher clippy ✅ (5 s)
launcher tests ✅ 452 passed (7 s)
Parity ➖ 137 affected, to run in CI (no vanilla data here): ambient_sound, anvil_turtle_egg, armor_stand_frost, armor_stand_turtle_egg, arrow, arrow_wind_charge, audio_attributes, auto_jump, block_entity_anim, block_entity_render, block_entity_tickers, block_particles and 125 more
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

The Scope line counts the PRs below this one in the stack. This PR alone: +1189 −81, of which 210 lines are translations. The menus and the head ship together: shipped apart, half would be unused code.

🤖 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/7613 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 11/2/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/launcher-glass-home` --- ### 📝 Commits (1) - [`1b7a297`](https://github.com/horizon-rust/horizon/commit/1b7a297ac44f3542c5f235d63370302926ddf6c0) launcher: the redesign's Home head (glass look) ### 📊 Changes **15 files changed** (+1189 additions, -81 deletions) <details> <summary>View changed files</summary> 📝 `launcher/lang/de.json` (+20 -1) 📝 `launcher/lang/es.json` (+20 -1) 📝 `launcher/lang/fr.json` (+20 -1) 📝 `launcher/lang/ja.json` (+20 -1) 📝 `launcher/lang/pl.json` (+20 -1) 📝 `launcher/lang/pt-br.json` (+20 -1) 📝 `launcher/lang/ru.json` (+20 -1) 📝 `launcher/lang/tr.json` (+20 -1) 📝 `launcher/lang/uk.json` (+20 -1) 📝 `launcher/lang/zh.json` (+20 -1) ➕ `launcher/src/glass_home.rs` (+788 -0) 📝 `launcher/src/glass_ui.rs` (+107 -0) 📝 `launcher/src/instance_icons.rs` (+1 -1) 📝 `launcher/src/main.rs` (+90 -69) 📝 `launcher/src/scrollbar.rs` (+3 -1) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Redesign 5 of the series that ports Anthony S.'s launcher mockup (playhorizon.dev/launcher) 1:1 to the GPUI launcher. Design reviewer: dezer-x. Stacked on #7566 (glass shell), which is stacked on #7538 → #7489 → #7447. In the dark appearance, Home's banner becomes the mockup's `HomeView` head. The tabs below it are still the current ones; the tabbed glass panel and its tabs come next. ## What it is `launcher/src/glass_home.rs`, wired to the launcher's real state and actions: - **Edition tabs** (`Tabs` size sm): Rust Edition with Horizon's mark tile, Java Edition with the grass block from the player's own Minecraft install (never shipped). The instance's own edition is lit. - **Title and played line:** the instance's icon (56) and its name in Bricolage at 64 px. Under them: - "You've played for 41 h 06 min! Last played today."; - "Playing for 12 min now. Have fun!" while the game runs; - "You haven't played this one yet…" before the first game. - **Play group:** - Play (the current prepare-then-play rules); Update when the launcher's version has a newer one; Stop while the game runs; - while busy, the progress fill with "Preparing 34%", "Updating 60%" or "Starting…". - Its ⋯ menu: Prepare / Prepare again, Play without updating, Create or Remove the desktop shortcut, and Copy the launch command. - **Version picker:** "Version" over the build, and a chevron that turns. The list ticks the build in use, then ends with Manage versions. - **Mods big icon:** opens the instance's Mods tab. - **Folder button:** its ⋯ shows under the pointer. The menu offers Open the instance folder, Open the screenshots folder, and Choose the Minecraft folder (Horizon). - **Join a friend:** the 340-wide field, with its icon and Join inside. - **Scrollbar:** the glass scrollbar now lies over the page margin, as an overlay scrollbar does. The right column then ends 32 px from the window edge, as in the mockup. ## Side by side Left: the mockup in Chrome at 1280×768. Right: the launcher at 1280×800, title bar cut. The launcher shows real scratch-home data; its instance isn't prepared and nobody owns the game, so Play is dimmed. **Home** ![home](https://raw.githubusercontent.com/horizon-rust/horizon/screenshots/launcher-redesign-4/pr5-home/side-home2.png) **Play ⋯ menu** ![play menu](https://raw.githubusercontent.com/horizon-rust/horizon/screenshots/launcher-redesign-4/pr5-home/side-playmenu.png) **Version picker** ![picker](https://raw.githubusercontent.com/horizon-rust/horizon/screenshots/launcher-redesign-4/pr5-home/side-picker.png) **Folder ⋯ menu** (the mockup capture has no open folder menu) ![folder menu](https://raw.githubusercontent.com/horizon-rust/horizon/screenshots/launcher-redesign-4/pr5-home/foldermenu-crop.png) ## Not in the mockup, kept - The **playing-now count** and the **official SMP count**, after the played line, same style (links as before). - **Manage versions** at the end of the version list (opens Versions). - The **preparation steps** (bar, what is downloading, time left) under the head while preparing. - The **Sculk card** in the sidebar, unchanged (sponsor). ## Gaps, to settle with dezer-x - **Java edition:** - The edition tabs can't switch an instance between Rust and Java: an instance's edition is set when it is made. The other tab shows in the mockup's disabled style. - Java instances have no version picker: their Minecraft version is chosen when they are made. - Java instances have no Verify game files: the launcher has no verify yet. - **Version list notes:** they show the tag, or "Newest · follows updates". The mockup shows release dates, which the launcher does not keep for installed builds. - **Starting:** shows no percentage, because the launcher has none to show. - **Folder menu:** has no "Open the game folder". A Horizon instance's folder is its game folder. - **Folder ⋯:** pops in. The mockup slides it open over 200 ms. - **Action row:** stays on one line. At 1280 px the mockup's `flex-wrap` would wrap it when the folder ⋯ shows, moving the ⋯ from under the pointer. - **Name letter-spacing:** the title's -0.035em tracking isn't applied, because GPUI has no letter-spacing. - **Home background picture:** the setting isn't drawn in the glass look yet. It belongs to the Settings PR. - **Old banner content:** the hero's "What's new" card and its version state line are gone. They come back as the Patch log in the Overview tab (next PR); readiness shows in the sidebar row. ## Self-check **pr_ready** (`tools/pr_ready.py` on ludovics-mac-mini, against origin/main at 2e540fe37, 3 min 44 s) | Check | Result | | --- | --- | | Scope | ⚠️ 72 files, +4631 −120; 4710 lines of code: over 500, split it if it can ship in parts | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 612 passed (2 min 10 s) | | rustfmt | ✅ (7 s) | | clippy | ✅ (2 s) | | tests: horizon-theme | ✅ 12 passed | | doc tests | ✅ 0 passed | | content root tests | ➖ content root untouched | | mod API up to date | ➖ native hooks untouched | | tokens.css up to date | ✅ | | launcher rustfmt | ✅ (1 s) | | launcher clippy | ✅ (5 s) | | launcher tests | ✅ 452 passed (7 s) | | Parity | ➖ 137 affected, to run in CI (no vanilla data here): ambient_sound, anvil_turtle_egg, armor_stand_frost, armor_stand_turtle_egg, arrow, arrow_wind_charge, audio_attributes, auto_jump, block_entity_anim, block_entity_render, block_entity_tickers, block_particles and 125 more | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | The Scope line counts the PRs below this one in the stack. This PR alone: +1189 −81, of which 210 lines are translations. The menus and the head ship together: shipped apart, half would be unused code. 🤖 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 07:22:28 +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#7716
No description provided.