[PR #7566] [MERGED] launcher: the redesign's glass shell (sidebar, top bar, menus) #7676

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

📋 Pull Request Information

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

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


📝 Commits (2)

  • 6d0901e launcher: the redesign's glass shell (sidebar, top bar, menus)
  • 13bafe1 launcher: glass instance tiles without frames, Update available

📊 Changes

23 files changed (+1744 additions, -33 deletions)

View changed files

📝 THIRD_PARTY_NOTICES.md (+4 -0)
➕ crates/horizon-theme/icons/glass/discord.svg (+1 -0)
📝 crates/horizon-theme/src/lib.rs (+1 -0)
📝 launcher/lang/de.json (+9 -1)
📝 launcher/lang/es.json (+9 -1)
📝 launcher/lang/fr.json (+9 -1)
📝 launcher/lang/ja.json (+9 -1)
📝 launcher/lang/pl.json (+9 -1)
📝 launcher/lang/pt-br.json (+9 -1)
📝 launcher/lang/ru.json (+9 -1)
📝 launcher/lang/tr.json (+9 -1)
📝 launcher/lang/uk.json (+9 -1)
📝 launcher/lang/zh.json (+9 -1)
➕ launcher/src/frame.rs (+933 -0)
➕ launcher/src/glass.rs (+180 -0)
➕ launcher/src/glass_ui.rs (+334 -0)
📝 launcher/src/instances_page.rs (+20 -16)
📝 launcher/src/main.rs (+25 -2)
📝 launcher/src/microsoft.rs (+17 -0)
📝 launcher/src/scene.rs (+130 -0)

...and 3 more files

📄 Description

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

Redesign 4 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 #7538 (tokens, fonts, icons) → #7489 (pixel sunset) → #7447 (GPUI Fast 0.1.13).

In the dark appearance, the launcher's frame is now the mockup's: the glass sidebar, the top bar and their menus. The pages inside are still the current ones; Home and its tabs come next.

What it is

  • glass.rs: the frosted plates. GPUI Fast has no backdrop filter. The launcher draws its own background, so each plate paints a copy of the scene under it.
    • The copy goes through the mockup's filters: blur 24 and saturate 1.4 for plates; blur 48 and brightness 0.62 for menus.
    • It is cut into pieces once per window size, with the mockup's tint (hzl-glass / hzl-float) on top.
  • glass_ui.rs: the mockup's controls at its sizes, fills and 150 ms colour fades:
    • row, icon button, tab, menu row, popover, white button;
    • state dot, bar, Horizon's mark tile.
  • frame.rs: the sidebar.
    • Instances by section, with their real state: running, starting, needs preparing, Java version, native build…
    • The update card (shown while the launcher updates), Join the Discord, Sponsor and Website, and the version.
    • Each row's ⋮ menu runs the launcher's real actions: Edit…, Duplicate…, Open folder, Export…, Create or Remove a desktop shortcut, and Delete… (asked twice; the instance goes to the Trash).
  • frame.rs: the top bar. The tab strip, the profile chip and its menu (players, Manage accounts), Sign in with Microsoft (shown while no Microsoft account is signed in), and settings.
  • Unchanged: the light appearance keeps the current frame. The mockup has no light design.

The PR is over the 500-line guide (+1673). The plates, the controls and the frame only make sense together: shipped apart, the first two would be unused code, which clippy rejects.

Side by side

Left: the mockup in Chrome at 1280×768. Right: the launcher in a 1280×800 window, with the 32 pt title bar cut off. The mockup shows its demo data; the launcher shows real instances from a scratch home.

Home. The frame is ported in this PR; the page inside is still the current one.
home

Servers. The Sculk banner stays on this page, and the sidebar's Sculk card hides here, as before.
servers

Instance ⋮ menu. It sits at the button's right + 12 and top − 8, as in the mockup. Rows are 52 px; menu rows are 40 px.
row menu

Profile menu
profile menu

Row hover (white 5 %)
hover

Not in the mockup, kept

  • Sculk sponsor card (kept, sponsor). It sits in the sidebar foot above Join the Discord, with the same art, link, promo code and click behaviour, on every page except Servers (which has the banner). Anthony can design it later.
  • The sidebar's servers section. It lists the player's saved servers.
  • The Build log button in the top bar. It shows while a native build runs.
  • Ported modpacks in the instance list. They open the modpack page.

Gaps, to settle with dezer-x

  • The offline player head is an icon. The mockup loads a skin face from the web for offline names; the launcher shows real heads only for Microsoft accounts.
  • Duplicate… opens the copy dialog to name the copy. The mockup duplicates at once and shows a toast. The toast comes later in the series.
  • Horizon's own instance can't be deleted, so its Delete is greyed.
  • The update card shows only while the launcher updates itself. The mockup shows it all the time with a demo version.
  • The glass under the plates is the scene at t = 0. Clouds and fireflies moving behind a plate don't show through, while the mockup's live backdrop blur does show them.
  • Text is drawn by GPUI. It is a touch heavier than Chrome's greyscale antialiasing.
  • The keyboard focus ring is the launcher's, not the mockup's offset outline.
  • Sign in with Microsoft follows the mockup's button, not Microsoft's published sign-in button. Ludovic and Anthony to decide.
  • The light appearance keeps the current frame: the mockup has no light design.

Self-check

pr_ready (tools/pr_ready.py on ludovics-mac-mini, against origin/main at 7504abf07, 8 min 14 s)

Check Result
Scope ⚠️ 73 files, +3523 −142; 3624 lines of code: over 500, split it if it can ship in parts; mixes game, launcher
Cargo.lock ✅ changes with a Cargo.toml
Public tree ✅
Python tests ✅ 612 passed (3 min 54 s)
rustfmt ✅ (15 s)
clippy ✅ (2 min 37 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 ✅ (1 s)
launcher rustfmt ✅ (1 s)
launcher clippy ✅ (6 s)
launcher tests ✅ 452 passed (17 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)

pr_ready ran on the first commit. The second commit adds the frameless instance tiles (InstanceIcon: colour tile with the initial, round at 26 %, no outline) and the "Update available" state. On it, launcher clippy -D warnings and cargo test --release passed: 452 + 75 tests, i18n coverage included. The Scope line counts the three PRs below this one.

🤖 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/7566 **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-shell` --- ### 📝 Commits (2) - [`6d0901e`](https://github.com/horizon-rust/horizon/commit/6d0901e2aa8ddaaeedec2b6f9be85dba61319953) launcher: the redesign's glass shell (sidebar, top bar, menus) - [`13bafe1`](https://github.com/horizon-rust/horizon/commit/13bafe18f6f2da91d056f950647a183cf39d28fe) launcher: glass instance tiles without frames, Update available ### 📊 Changes **23 files changed** (+1744 additions, -33 deletions) <details> <summary>View changed files</summary> 📝 `THIRD_PARTY_NOTICES.md` (+4 -0) ➕ `crates/horizon-theme/icons/glass/discord.svg` (+1 -0) 📝 `crates/horizon-theme/src/lib.rs` (+1 -0) 📝 `launcher/lang/de.json` (+9 -1) 📝 `launcher/lang/es.json` (+9 -1) 📝 `launcher/lang/fr.json` (+9 -1) 📝 `launcher/lang/ja.json` (+9 -1) 📝 `launcher/lang/pl.json` (+9 -1) 📝 `launcher/lang/pt-br.json` (+9 -1) 📝 `launcher/lang/ru.json` (+9 -1) 📝 `launcher/lang/tr.json` (+9 -1) 📝 `launcher/lang/uk.json` (+9 -1) 📝 `launcher/lang/zh.json` (+9 -1) ➕ `launcher/src/frame.rs` (+933 -0) ➕ `launcher/src/glass.rs` (+180 -0) ➕ `launcher/src/glass_ui.rs` (+334 -0) 📝 `launcher/src/instances_page.rs` (+20 -16) 📝 `launcher/src/main.rs` (+25 -2) 📝 `launcher/src/microsoft.rs` (+17 -0) 📝 `launcher/src/scene.rs` (+130 -0) _...and 3 more files_ </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Redesign 4 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 #7538 (tokens, fonts, icons) → #7489 (pixel sunset) → #7447 (GPUI Fast 0.1.13). In the dark appearance, the launcher's frame is now the mockup's: the glass sidebar, the top bar and their menus. The pages inside are still the current ones; Home and its tabs come next. ## What it is - **`glass.rs`: the frosted plates.** GPUI Fast has no backdrop filter. The launcher draws its own background, so each plate paints a copy of the scene under it. - The copy goes through the mockup's filters: blur 24 and saturate 1.4 for plates; blur 48 and brightness 0.62 for menus. - It is cut into pieces once per window size, with the mockup's tint (`hzl-glass` / `hzl-float`) on top. - **`glass_ui.rs`: the mockup's controls** at its sizes, fills and 150 ms colour fades: - row, icon button, tab, menu row, popover, white button; - state dot, bar, Horizon's mark tile. - **`frame.rs`: the sidebar.** - Instances by section, with their real state: running, starting, needs preparing, Java version, native build… - The update card (shown while the launcher updates), Join the Discord, Sponsor and Website, and the version. - Each row's ⋮ menu runs the launcher's real actions: Edit…, Duplicate…, Open folder, Export…, Create or Remove a desktop shortcut, and Delete… (asked twice; the instance goes to the Trash). - **`frame.rs`: the top bar.** The tab strip, the profile chip and its menu (players, Manage accounts), Sign in with Microsoft (shown while no Microsoft account is signed in), and settings. - **Unchanged:** the light appearance keeps the current frame. The mockup has no light design. The PR is over the 500-line guide (+1673). The plates, the controls and the frame only make sense together: shipped apart, the first two would be unused code, which clippy rejects. ## Side by side Left: the mockup in Chrome at 1280×768. Right: the launcher in a 1280×800 window, with the 32 pt title bar cut off. The mockup shows its demo data; the launcher shows real instances from a scratch home. **Home.** The frame is ported in this PR; the page inside is still the current one. ![home](https://raw.githubusercontent.com/horizon-rust/horizon/screenshots/launcher-redesign-4/pr4-shell/side-home.png) **Servers.** The Sculk banner stays on this page, and the sidebar's Sculk card hides here, as before. ![servers](https://raw.githubusercontent.com/horizon-rust/horizon/screenshots/launcher-redesign-4/pr4-shell/side-servers.png) **Instance ⋮ menu.** It sits at the button's right + 12 and top − 8, as in the mockup. Rows are 52 px; menu rows are 40 px. ![row menu](https://raw.githubusercontent.com/horizon-rust/horizon/screenshots/launcher-redesign-4/pr4-shell/side-menu-row.png) **Profile menu** ![profile menu](https://raw.githubusercontent.com/horizon-rust/horizon/screenshots/launcher-redesign-4/pr4-shell/side-menu-profile.png) **Row hover** (white 5 %) ![hover](https://raw.githubusercontent.com/horizon-rust/horizon/screenshots/launcher-redesign-4/pr4-shell/side-hover-row.png) ## Not in the mockup, kept - **Sculk sponsor card** (kept, sponsor). It sits in the sidebar foot above Join the Discord, with the same art, link, promo code and click behaviour, on every page except Servers (which has the banner). Anthony can design it later. - **The sidebar's servers section.** It lists the player's saved servers. - **The Build log button** in the top bar. It shows while a native build runs. - **Ported modpacks** in the instance list. They open the modpack page. ## Gaps, to settle with dezer-x - The offline player head is an icon. The mockup loads a skin face from the web for offline names; the launcher shows real heads only for Microsoft accounts. - **Duplicate…** opens the copy dialog to name the copy. The mockup duplicates at once and shows a toast. The toast comes later in the series. - Horizon's own instance can't be deleted, so its Delete is greyed. - The update card shows only while the launcher updates itself. The mockup shows it all the time with a demo version. - The glass under the plates is the scene at t = 0. Clouds and fireflies moving behind a plate don't show through, while the mockup's live backdrop blur does show them. - Text is drawn by GPUI. It is a touch heavier than Chrome's greyscale antialiasing. - The keyboard focus ring is the launcher's, not the mockup's offset outline. - Sign in with Microsoft follows the mockup's button, not Microsoft's published sign-in button. Ludovic and Anthony to decide. - The light appearance keeps the current frame: the mockup has no light design. ## Self-check **pr_ready** (`tools/pr_ready.py` on ludovics-mac-mini, against origin/main at 7504abf07, 8 min 14 s) | Check | Result | | --- | --- | | Scope | ⚠️ 73 files, +3523 −142; 3624 lines of code: over 500, split it if it can ship in parts; mixes game, launcher | | Cargo.lock | ✅ changes with a Cargo.toml | | Public tree | ✅ | | Python tests | ✅ 612 passed (3 min 54 s) | | rustfmt | ✅ (15 s) | | clippy | ✅ (2 min 37 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 | ✅ (1 s) | | launcher rustfmt | ✅ (1 s) | | launcher clippy | ✅ (6 s) | | launcher tests | ✅ 452 passed (17 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) | pr_ready ran on the first commit. The second commit adds the frameless instance tiles (`InstanceIcon`: colour tile with the initial, round at 26 %, no outline) and the "Update available" state. On it, launcher clippy `-D warnings` and `cargo test --release` passed: 452 + 75 tests, i18n coverage included. The Scope line counts the three PRs below this one. 🤖 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:21:50 +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#7676
No description provided.