[PR #7778] [MERGED] launcher: the instance dialog in glass (redesign) #7818

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

📋 Pull Request Information

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

Base: main ← Head: feat/launcher-glass-instance-modal


📝 Commits (1)

  • 11abdd5 launcher: the instance dialog in glass

📊 Changes

21 files changed (+1323 additions, -56 deletions)

View changed files

📝 THIRD_PARTY_NOTICES.md (+11 -13)
➕ launcher/assets/logos/fabric.png (+0 -0)
➕ launcher/assets/logos/forge.png (+0 -0)
📝 launcher/assets/logos/neoforge.png (+0 -0)
📝 launcher/assets/logos/quilt.png (+0 -0)
📝 launcher/lang/de.json (+22 -1)
📝 launcher/lang/es.json (+22 -1)
📝 launcher/lang/fr.json (+22 -1)
📝 launcher/lang/ja.json (+22 -1)
📝 launcher/lang/pl.json (+22 -1)
📝 launcher/lang/pt-br.json (+22 -1)
📝 launcher/lang/ru.json (+22 -1)
📝 launcher/lang/tr.json (+22 -1)
📝 launcher/lang/uk.json (+22 -1)
📝 launcher/lang/zh.json (+22 -1)
➕ launcher/src/glass_instance.rs (+1003 -0)
📝 launcher/src/instance_icons.rs (+28 -20)
📝 launcher/src/instances_page.rs (+27 -5)
📝 launcher/src/main.rs (+11 -3)
📝 launcher/src/new_instance.rs (+1 -1)

...and 1 more files

📄 Description

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

The instance dialog (New instance… / Edit…) in the glass look, ported 1:1 from Anthony S.'s mockup (playhorizon.dev/launcher, horizon-site components/launcher/instance-modal.tsx). Design reviewer: dezer-x. Dark appearance only; the light look keeps today's dialog.

What it is

  • One glass plate round at 28 (max 1180 × 820) over the page scrimmed with #07050f at 50 %.
  • Left column (340 px, white at 3.5 %):
    • the instance as it will be: its icon at 88, its name in Bricolage 30, what it plays, the note;
    • the kind cards (Horizon / Vanilla / Modded, round 16, 12 % chosen, 4 % → 7 % hover);
    • Import a modpack… at the foot.
  • Right column:
    • the title (Bricolage at the mockup's clamp(1.6rem, 2.4vw, 2.1rem)) and the close button;
    • the sections at 36 px apart: Version (Horizon), Start from, Name and group (FIELD_LG: 48 px, white at 6 % → 10 %), Icon;
    • the foot (white at 3 %): where the folder goes, Cancel, and Create instance on the accent.
  • Version (Horizon): the installed Horizon versions, with Newest and a tick. Picking the newest keeps the instance following updates; another version pins it (Instance::version, the same as the Home version picker). Edit shows it too.
  • Icon: the instance's own mark, then the grass block (from the player's own prepared files) and the four loader logos, then the prepared blocks and items, then the 8 mockup colours with the name's initial, then Choose image…. A logo becomes the instance's picture.
  • Loader logos: all four of the mockup's logos (Fabric, Quilt, NeoForge, Forge) now ship in launcher/assets/logos/. Fabric and Forge are no longer fetched from their sites. Ludovic OK'd using them on 2026-11-02, and THIRD_PARTY_NOTICES.md is updated. The Modded card's note lists the loaders loaders::Kind knows (Prism's list: Fabric, Quilt, NeoForge, Forge, LiteLoader, filtered by Kind::parse), so Forge and NeoForge show up as soon as their backends land. No CurseForge.
  • Stacked PR (next): the Vanilla/Modded part in glass (Mojang's versions and the loader grid). Here those kinds still use the earlier rows inside the glass dialog.

Side by side (mockup left, launcher right, 1280 × 768)

Horizon
Horizon, scrolled to the icons
Edit

Not in the mockup, kept (real features)

  • The instance's own picture tile, when it has one.
  • The prepared blocks and items as icons.
  • Errors (e.g. "An instance needs a name.") take the folder line's place in the foot.
  • The Sculk sponsor card stays in the sidebar behind the dialog.

Gaps (the launcher can't do it, or GPUI can't)

  • No blur of the page behind the dialog: the plate shows the blurred scene, and the page is only dimmed.
  • No pop-in animation.
  • An existing instance can't change kind: Edit shows only its own kind card, and a Java instance's edit has no version or loader sections.
  • No "made from the name" pixel icon.
  • No Minecraft logo icon (Mojang's).
  • A new Horizon instance's name starts empty with the placeholder "My instance" (the mockup prefills "My Horizon").
  • Dates are ISO (2026-11-01, not "Nov 1").
  • No letter-spacing on the display font.
  • Size: about 1,000 lines in glass_instance.rs after rustfmt. The dialog is one view, and the Java part is split off into the next PR.

pr_ready (tools/pr_ready.py --quick on ludovics-mac-mini, against origin/main at 6beacfe91, 8 min 8 s)

Check Result
Scope ⚠️ 21 files, +1323 −56; 1355 lines of code: over 500, split it if it can ship in parts
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 614 passed (6 min 37 s)
rustfmt ➖ no Rust change
clippy ➖ no Rust change
tests ➖ no crate touched
doc tests ➖ no crate touched
content root tests ➖ content root untouched
mod API up to date ➖ native hooks untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ✅ (7 s)
launcher clippy ✅ (1 s)
launcher tests ✅ 452 passed (1 min 21 s)
Parity ➖ 18 affected, to run in CI (--quick): anvil_turtle_egg, armor_stand_frost, armor_stand_turtle_egg, arrow_wind_charge, boat_authority, boat_paddle_reset, boat_submerged, dragon_contacts, dragon_render, enchantment_components, fishing_hook_entities, inline_object and 6 more
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/7778 **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-instance-modal` --- ### 📝 Commits (1) - [`11abdd5`](https://github.com/horizon-rust/horizon/commit/11abdd59c122edfa3e22f6939fa24fde5f473cfb) launcher: the instance dialog in glass ### 📊 Changes **21 files changed** (+1323 additions, -56 deletions) <details> <summary>View changed files</summary> 📝 `THIRD_PARTY_NOTICES.md` (+11 -13) ➕ `launcher/assets/logos/fabric.png` (+0 -0) ➕ `launcher/assets/logos/forge.png` (+0 -0) 📝 `launcher/assets/logos/neoforge.png` (+0 -0) 📝 `launcher/assets/logos/quilt.png` (+0 -0) 📝 `launcher/lang/de.json` (+22 -1) 📝 `launcher/lang/es.json` (+22 -1) 📝 `launcher/lang/fr.json` (+22 -1) 📝 `launcher/lang/ja.json` (+22 -1) 📝 `launcher/lang/pl.json` (+22 -1) 📝 `launcher/lang/pt-br.json` (+22 -1) 📝 `launcher/lang/ru.json` (+22 -1) 📝 `launcher/lang/tr.json` (+22 -1) 📝 `launcher/lang/uk.json` (+22 -1) 📝 `launcher/lang/zh.json` (+22 -1) ➕ `launcher/src/glass_instance.rs` (+1003 -0) 📝 `launcher/src/instance_icons.rs` (+28 -20) 📝 `launcher/src/instances_page.rs` (+27 -5) 📝 `launcher/src/main.rs` (+11 -3) 📝 `launcher/src/new_instance.rs` (+1 -1) _...and 1 more files_ </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. The instance dialog (New instance… / Edit…) in the glass look, ported 1:1 from Anthony S.'s mockup (playhorizon.dev/launcher, horizon-site `components/launcher/instance-modal.tsx`). Design reviewer: dezer-x. Dark appearance only; the light look keeps today's dialog. **What it is** - One glass plate round at 28 (max 1180 × 820) over the page scrimmed with `#07050f` at 50 %. - Left column (340 px, white at 3.5 %): - the instance as it will be: its icon at 88, its name in Bricolage 30, what it plays, the note; - the kind cards (Horizon / Vanilla / Modded, round 16, 12 % chosen, 4 % → 7 % hover); - Import a modpack… at the foot. - Right column: - the title (Bricolage at the mockup's `clamp(1.6rem, 2.4vw, 2.1rem)`) and the close button; - the sections at 36 px apart: Version (Horizon), Start from, Name and group (`FIELD_LG`: 48 px, white at 6 % → 10 %), Icon; - the foot (white at 3 %): where the folder goes, Cancel, and Create instance on the accent. - **Version** (Horizon): the installed Horizon versions, with Newest and a tick. Picking the newest keeps the instance following updates; another version pins it (`Instance::version`, the same as the Home version picker). Edit shows it too. - **Icon**: the instance's own mark, then the grass block (from the player's own prepared files) and the four loader logos, then the prepared blocks and items, then the 8 mockup colours with the name's initial, then Choose image…. A logo becomes the instance's picture. - **Loader logos**: all four of the mockup's logos (Fabric, Quilt, NeoForge, Forge) now ship in `launcher/assets/logos/`. Fabric and Forge are no longer fetched from their sites. Ludovic OK'd using them on 2026-11-02, and THIRD_PARTY_NOTICES.md is updated. The Modded card's note lists the loaders `loaders::Kind` knows (Prism's list: Fabric, Quilt, NeoForge, Forge, LiteLoader, filtered by `Kind::parse`), so Forge and NeoForge show up as soon as their backends land. No CurseForge. - Stacked PR (next): the Vanilla/Modded part in glass (Mojang's versions and the loader grid). Here those kinds still use the earlier rows inside the glass dialog. **Side by side (mockup left, launcher right, 1280 × 768)** ![Horizon](https://raw.githubusercontent.com/horizon-rust/horizon/screenshots/launcher-redesign-4/pr-instance-modal/instance-modal-horizon.png) ![Horizon, scrolled to the icons](https://raw.githubusercontent.com/horizon-rust/horizon/screenshots/launcher-redesign-4/pr-instance-modal/instance-modal-horizon-icons.png) ![Edit](https://raw.githubusercontent.com/horizon-rust/horizon/screenshots/launcher-redesign-4/pr-instance-modal/instance-modal-edit.png) **Not in the mockup, kept (real features)** - The instance's own picture tile, when it has one. - The prepared blocks and items as icons. - Errors (e.g. "An instance needs a name.") take the folder line's place in the foot. - The Sculk sponsor card stays in the sidebar behind the dialog. **Gaps (the launcher can't do it, or GPUI can't)** - No blur of the page behind the dialog: the plate shows the blurred scene, and the page is only dimmed. - No pop-in animation. - An existing instance can't change kind: Edit shows only its own kind card, and a Java instance's edit has no version or loader sections. - No "made from the name" pixel icon. - No Minecraft logo icon (Mojang's). - A new Horizon instance's name starts empty with the placeholder "My instance" (the mockup prefills "My Horizon"). - Dates are ISO (2026-11-01, not "Nov 1"). - No letter-spacing on the display font. - Size: about 1,000 lines in `glass_instance.rs` after rustfmt. The dialog is one view, and the Java part is split off into the next PR. **pr_ready** (`tools/pr_ready.py --quick` on ludovics-mac-mini, against origin/main at 6beacfe91, 8 min 8 s) | Check | Result | | --- | --- | | Scope | ⚠️ 21 files, +1323 −56; 1355 lines of code: over 500, split it if it can ship in parts | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 614 passed (6 min 37 s) | | rustfmt | ➖ no Rust change | | clippy | ➖ no Rust change | | tests | ➖ no crate touched | | doc tests | ➖ no crate touched | | content root tests | ➖ content root untouched | | mod API up to date | ➖ native hooks untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ✅ (7 s) | | launcher clippy | ✅ (1 s) | | launcher tests | ✅ 452 passed (1 min 21 s) | | Parity | ➖ 18 affected, to run in CI (--quick): anvil_turtle_egg, armor_stand_frost, armor_stand_turtle_egg, arrow_wind_charge, boat_authority, boat_paddle_reset, boat_submerged, dragon_contacts, dragon_render, enchantment_components, fishing_hook_entities, inline_object and 6 more | | 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 07:24:38 +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#7818
No description provided.