[PR #7658] [MERGED] launcher: Home's Worlds and Multiplayer tabs in glass #7742

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

📋 Pull Request Information

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

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


📝 Commits (1)

  • 0fea17d launcher: Home's Worlds and Multiplayer tabs in glass

📊 Changes

17 files changed (+737 additions, -56 deletions)

View changed files

📝 launcher/lang/de.json (+6 -1)
📝 launcher/lang/es.json (+6 -1)
📝 launcher/lang/fr.json (+6 -1)
📝 launcher/lang/ja.json (+6 -1)
📝 launcher/lang/pl.json (+6 -1)
📝 launcher/lang/pt-br.json (+6 -1)
📝 launcher/lang/ru.json (+6 -1)
📝 launcher/lang/tr.json (+6 -1)
📝 launcher/lang/uk.json (+6 -1)
📝 launcher/lang/zh.json (+6 -1)
➕ launcher/src/glass_home_lists.rs (+461 -0)
📝 launcher/src/glass_home_tabs.rs (+6 -2)
📝 launcher/src/glass_ui.rs (+135 -2)
📝 launcher/src/main.rs (+34 -12)
📝 launcher/src/multiplayer_page.rs (+9 -6)
📝 launcher/src/servers_page.rs (+25 -17)
📝 launcher/src/worlds_page.rs (+7 -7)

📄 Description

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

Redesign 7 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 #7627 (tabbed panel) → #7613 → #7566 → #7538.

In the dark appearance, Home's Worlds and Multiplayer tabs become the mockup's Worlds and Multiplayer lists.

What it is

  • Rows (ROW): rounded-[12px] px-3 py-2.5, white at 6 % under the pointer with the 150 ms fade. Two lines: 14 px medium, then 13 px at 55 %.
  • Worlds:
    • a row plays its world;
    • its size (right, 13 px at 55 %) turns into Play › under the pointer, as in the mockup;
    • the empty state is the mockup's sentence.
  • Multiplayer: each saved server with Join (QUIET), dimmed while the game can't start.

Side by side

Left: the mockup in Chrome at 1280×768. Right: the launcher at 1280×800 with the title bar cut. The demo worlds and servers are the mockup's own, seeded into a scratch home.

Worlds, the first row under the pointer:
worlds

Multiplayer:
multiplayer

An instance without worlds:
empty

The launcher's own features, in the mockup's patterns (top to bottom):

  • a world's ⋯ menu;
  • a server row under the pointer;
  • Remove's second click;
  • the Add server line.

extras

Not in the mockup, kept (real features, fitted to its patterns)

  • A world's ⋯ menu. It uses the sidebar's ICON_BUTTON + POPOVER + MENU_ROW, and shows only under the pointer, so the row's end stays where the mockup puts it.
    • Its items: Back up, Copy, Data packs, Open folder, and Delete… (clicked twice, as the instance menu's Delete).
    • What the last action did shows as a line over the list, with Open backups after a backup. The mockup would toast it; the toast comes with the palette PR.
  • Dropping data packs on a world row still adds them (the row lights at 10 %).
  • The data packs panel keeps its current look under the row. It is ported with the Packs tab.
  • Remove a server:
    • a 🗑 ICON_BUTTON under the pointer (the mockup's InstanceMods pattern);
    • its second click is red, like the menus' "Click again to delete".
  • Add server:
    • a line "N servers in {instance}" with + Add server (QUIET with its icon), the mockup's InstanceMods header;
    • the fields are WIDE_FIELD (44 px, white at 7 %, 11 % focused, round at 12, no border), with the white SOLID Add;
    • while the list is empty, Add server is a link in the empty sentence, like Find mods.
  • The world's version (Survival · 26.3 · today): real data the mockup's demo lacks.
  • The game's own pictures (a world's icon.png, a server's favicon): a 36 px tile round at 9 (PixelIcon's size and tileRadius), shown when at least one row of the list has one. Rows without a picture get a plain tile then, so lines stay aligned.
  • The Horizon official server on top of the list: the launcher adds it, as the game does.

Gaps, to settle with dezer-x

  • No server status dot or player count (192.168.1.20 · 3 of 10). The launcher doesn't ping saved servers yet, so the rows show the address only; no dot rather than a made-up one.
  • Dates past two weeks stay ISO (2026-10-19); the mockup writes "Oct 19". Recent days say today / yesterday / 5 days ago, not "2 hours ago".
  • No tabular-nums on the sizes.
  • The pointer entering the window straight onto a row doesn't light it until it moves. This is the hover tracker the sidebar rows already use.

Unchanged: the light appearance; the Mods, Packs, Screenshots and Console tabs (next PRs). Sculk card kept in the sidebar.

Self-check

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

Check Result
Scope ⚠️ 32 files, +4229 −150; 4375 lines of code: over 500, split it if it can ship in parts
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 612 passed (2 min 44 s)
rustfmt ✅ (6 s)
clippy ✅ (1 s)
tests: horizon-theme ✅ 12 passed
doc tests ✅ 0 passed (1 s)
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 ✅ (1 s)
launcher tests ✅ 452 passed (3 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: 737 insertions(+), 56 deletions(-), of which 50 lines are translations.

🤖 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/7658 **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-lists` --- ### 📝 Commits (1) - [`0fea17d`](https://github.com/horizon-rust/horizon/commit/0fea17d09629fcef6c3183ae01e7c210c70cee16) launcher: Home's Worlds and Multiplayer tabs in glass ### 📊 Changes **17 files changed** (+737 additions, -56 deletions) <details> <summary>View changed files</summary> 📝 `launcher/lang/de.json` (+6 -1) 📝 `launcher/lang/es.json` (+6 -1) 📝 `launcher/lang/fr.json` (+6 -1) 📝 `launcher/lang/ja.json` (+6 -1) 📝 `launcher/lang/pl.json` (+6 -1) 📝 `launcher/lang/pt-br.json` (+6 -1) 📝 `launcher/lang/ru.json` (+6 -1) 📝 `launcher/lang/tr.json` (+6 -1) 📝 `launcher/lang/uk.json` (+6 -1) 📝 `launcher/lang/zh.json` (+6 -1) ➕ `launcher/src/glass_home_lists.rs` (+461 -0) 📝 `launcher/src/glass_home_tabs.rs` (+6 -2) 📝 `launcher/src/glass_ui.rs` (+135 -2) 📝 `launcher/src/main.rs` (+34 -12) 📝 `launcher/src/multiplayer_page.rs` (+9 -6) 📝 `launcher/src/servers_page.rs` (+25 -17) 📝 `launcher/src/worlds_page.rs` (+7 -7) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Redesign 7 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 #7627 (tabbed panel) → #7613 → #7566 → #7538. In the dark appearance, Home's **Worlds** and **Multiplayer** tabs become the mockup's `Worlds` and `Multiplayer` lists. ## What it is - **Rows** (`ROW`): `rounded-[12px] px-3 py-2.5`, white at 6 % under the pointer with the 150 ms fade. Two lines: 14 px medium, then 13 px at 55 %. - **Worlds:** - a row plays its world; - its size (right, 13 px at 55 %) turns into **Play ›** under the pointer, as in the mockup; - the empty state is the mockup's sentence. - **Multiplayer:** each saved server with **Join** (`QUIET`), dimmed while the game can't start. ## Side by side Left: the mockup in Chrome at 1280×768. Right: the launcher at 1280×800 with the title bar cut. The demo worlds and servers are the mockup's own, seeded into a scratch home. Worlds, the first row under the pointer: ![worlds](https://raw.githubusercontent.com/horizon-rust/horizon/screenshots/launcher-redesign-4/pr7-lists/side-worlds.png) Multiplayer: ![multiplayer](https://raw.githubusercontent.com/horizon-rust/horizon/screenshots/launcher-redesign-4/pr7-lists/side-mp.png) An instance without worlds: ![empty](https://raw.githubusercontent.com/horizon-rust/horizon/screenshots/launcher-redesign-4/pr7-lists/side-empty.png) The launcher's own features, in the mockup's patterns (top to bottom): - a world's ⋯ menu; - a server row under the pointer; - Remove's second click; - the Add server line. ![extras](https://raw.githubusercontent.com/horizon-rust/horizon/screenshots/launcher-redesign-4/pr7-lists/extras.png) ## Not in the mockup, kept (real features, fitted to its patterns) - **A world's ⋯ menu.** It uses the sidebar's `ICON_BUTTON` + `POPOVER` + `MENU_ROW`, and shows only under the pointer, so the row's end stays where the mockup puts it. - Its items: Back up, Copy, Data packs, Open folder, and Delete… (clicked twice, as the instance menu's Delete). - What the last action did shows as a line over the list, with Open backups after a backup. The mockup would toast it; the toast comes with the palette PR. - **Dropping data packs on a world row** still adds them (the row lights at 10 %). - **The data packs panel** keeps its current look under the row. It is ported with the Packs tab. - **Remove a server:** - a 🗑 `ICON_BUTTON` under the pointer (the mockup's `InstanceMods` pattern); - its second click is red, like the menus' "Click again to delete". - **Add server:** - a line "N servers in {instance}" with **+ Add server** (`QUIET` with its icon), the mockup's `InstanceMods` header; - the fields are `WIDE_FIELD` (44 px, white at 7 %, 11 % focused, round at 12, no border), with the white `SOLID` Add; - while the list is empty, Add server is a link in the empty sentence, like Find mods. - **The world's version** (`Survival · 26.3 · today`): real data the mockup's demo lacks. - **The game's own pictures** (a world's `icon.png`, a server's favicon): a 36 px tile round at 9 (`PixelIcon`'s size and `tileRadius`), shown when at least one row of the list has one. Rows without a picture get a plain tile then, so lines stay aligned. - **The Horizon official server** on top of the list: the launcher adds it, as the game does. ## Gaps, to settle with dezer-x - **No server status dot or player count** (`192.168.1.20 · 3 of 10`). The launcher doesn't ping saved servers yet, so the rows show the address only; no dot rather than a made-up one. - **Dates** past two weeks stay ISO (`2026-10-19`); the mockup writes "Oct 19". Recent days say today / yesterday / 5 days ago, not "2 hours ago". - **No `tabular-nums`** on the sizes. - The pointer entering the window straight onto a row doesn't light it until it moves. This is the hover tracker the sidebar rows already use. Unchanged: the light appearance; the Mods, Packs, Screenshots and Console tabs (next PRs). Sculk card kept in the sidebar. ## Self-check **pr_ready** (`tools/pr_ready.py` on ludovics-mac-mini, against origin/main at 9f8eaba80, 4 min 1 s) | Check | Result | | --- | --- | | Scope | ⚠️ 32 files, +4229 −150; 4375 lines of code: over 500, split it if it can ship in parts | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 612 passed (2 min 44 s) | | rustfmt | ✅ (6 s) | | clippy | ✅ (1 s) | | tests: horizon-theme | ✅ 12 passed | | doc tests | ✅ 0 passed (1 s) | | 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 | ✅ (1 s) | | launcher tests | ✅ 452 passed (3 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: 737 insertions(+), 56 deletions(-), of which 50 lines are translations. 🤖 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:23:30 +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#7742
No description provided.