[PR #7682] [MERGED] launcher: Home's Packs and Screenshots tabs in glass #7757

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

📋 Pull Request Information

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

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


📝 Commits (2)

  • 1ed6cdc launcher: Home's head and the top bar under 1280 px (glass)
  • 43fbc4c launcher: Home's Packs and Screenshots tabs in glass

📊 Changes

19 files changed (+493 additions, -40 deletions)

View changed files

📝 launcher/lang/de.json (+8 -1)
📝 launcher/lang/es.json (+8 -1)
📝 launcher/lang/fr.json (+8 -1)
📝 launcher/lang/ja.json (+8 -1)
📝 launcher/lang/pl.json (+8 -1)
📝 launcher/lang/pt-br.json (+8 -1)
📝 launcher/lang/ru.json (+8 -1)
📝 launcher/lang/tr.json (+8 -1)
📝 launcher/lang/uk.json (+8 -1)
📝 launcher/lang/zh.json (+8 -1)
📝 launcher/src/frame.rs (+10 -2)
📝 launcher/src/glass_home.rs (+11 -7)
📝 launcher/src/glass_home_lists.rs (+9 -5)
➕ launcher/src/glass_home_packs.rs (+317 -0)
📝 launcher/src/glass_home_tabs.rs (+9 -2)
📝 launcher/src/glass_ui.rs (+35 -0)
📝 launcher/src/main.rs (+5 -0)
📝 launcher/src/packs_page.rs (+11 -8)
📝 launcher/src/screenshots_page.rs (+6 -6)

📄 Description

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

Redesign 8 of the series that ports Anthony S.'s launcher mockup (playhorizon.dev/launcher) 1:1 to the GPUI launcher. Design reviewer: dezer-x.

Base and stack:

  • on main, after #7658 (Worlds, Multiplayer);
  • carries #7679's commit (Home's head under 1280 px), because the Screenshots grid needs the window width it adds. That commit is identical, so it merges away once #7679 lands.

In the dark appearance, Home's Packs and Screenshots tabs become the mockup's Packs and Screenshots.

What it is

  • Packs:
    • one ROW per resource pack, then per shader pack: its 36 px picture, the name, "Resource pack · on";
    • the Toggle (40×24, round; the accent with the on-accent knob while on, white at 14 % with a 70 % knob while off) turns it on or off in options.txt, as before.
  • Screenshots:
    • the count over the grid (h-8);
    • the pictures 16:9, round at 12, 4 across from 1280 px (xl:grid-cols-4) and 2 below, gaps 12 × 16, each with its file name (12 px at 60 %);
    • a click opens the viewer.
  • Empty states: the mockup's sentences.

Side by side

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

screenshots

packs

Packs, close up: the mockup on top; the launcher; the launcher with a row under the pointer.

packs close

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

  • Packs:
    • Open folder and + Add pack… (QUIET) after "2 packs in Horizon", the mockup's InstanceMods header.
    • Dropping packs on the tab adds them; the list lights at 6 % while a file is over it.
    • Remove (🗑 ICON_BUTTON, under the pointer) moves a pack to the trash on its second click, red as the menus' Delete.
    • Shader packs after the resource packs ("Shader pack · on"), and a pack's own description after its state.
    • The line "The game is running: change packs in its own menus…"; the toggles dim then.
  • Screenshots:
    • the folder button, a 32 px ICON_BUTTON where the mockup has its blur toggle;
    • Show all N past 8 pictures, so a big folder doesn't decode hundreds of images.
  • The Sculk card stays in the sidebar.

Gaps, to settle with dezer-x

  • No blur (privacy) toggle for screenshots. The launcher has no such setting yet.
  • No 1.04 zoom on a hovered screenshot, and the toggle's knob doesn't slide (200 ms in the mockup): GPUI Fast has no transform on an element.
  • A pack without pack.png gets a plain tile with the package icon; the mockup draws generated pixel art.
  • Pack names are the file names as the game shows them (Faithful 32x.zip); the mockup's demo drops the .zip.
  • The screenshot viewer keeps its current look; it is ported with the dialogs.

Unchanged: the light appearance; the Mods and Console tabs (next PR).

Self-check

pr_ready (tools/pr_ready.py on ludovics-mac-mini, against origin/main at 057bcfcd1, 2 min 13 s)

Check Result
Scope ⚠️ 22 files, +1215 −81; 1296 lines of code: over 500, split it if it can ship in parts
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 612 passed (1 min 59 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 ✅ (2 s)
launcher clippy ✅ (4 s)
launcher tests ✅ 452 passed (7 s)
Parity ➖ 18 affected, to run in CI (no vanilla data here): 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)

The Scope line counts the PRs below this one in the stack. This PR alone (the last commit): 468 insertions(+), 31 deletions(-), of which 70 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/7682 **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-packs` --- ### 📝 Commits (2) - [`1ed6cdc`](https://github.com/horizon-rust/horizon/commit/1ed6cdc8aa6f0378575c24219bdf0112245bd74e) launcher: Home's head and the top bar under 1280 px (glass) - [`43fbc4c`](https://github.com/horizon-rust/horizon/commit/43fbc4cd5ae6d0730dbc8777f6a2af592cedf2bf) launcher: Home's Packs and Screenshots tabs in glass ### 📊 Changes **19 files changed** (+493 additions, -40 deletions) <details> <summary>View changed files</summary> 📝 `launcher/lang/de.json` (+8 -1) 📝 `launcher/lang/es.json` (+8 -1) 📝 `launcher/lang/fr.json` (+8 -1) 📝 `launcher/lang/ja.json` (+8 -1) 📝 `launcher/lang/pl.json` (+8 -1) 📝 `launcher/lang/pt-br.json` (+8 -1) 📝 `launcher/lang/ru.json` (+8 -1) 📝 `launcher/lang/tr.json` (+8 -1) 📝 `launcher/lang/uk.json` (+8 -1) 📝 `launcher/lang/zh.json` (+8 -1) 📝 `launcher/src/frame.rs` (+10 -2) 📝 `launcher/src/glass_home.rs` (+11 -7) 📝 `launcher/src/glass_home_lists.rs` (+9 -5) ➕ `launcher/src/glass_home_packs.rs` (+317 -0) 📝 `launcher/src/glass_home_tabs.rs` (+9 -2) 📝 `launcher/src/glass_ui.rs` (+35 -0) 📝 `launcher/src/main.rs` (+5 -0) 📝 `launcher/src/packs_page.rs` (+11 -8) 📝 `launcher/src/screenshots_page.rs` (+6 -6) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Redesign 8 of the series that ports Anthony S.'s launcher mockup (playhorizon.dev/launcher) 1:1 to the GPUI launcher. Design reviewer: dezer-x. Base and stack: - on main, after #7658 (Worlds, Multiplayer); - carries #7679's commit (Home's head under 1280 px), because the Screenshots grid needs the window width it adds. That commit is identical, so it merges away once #7679 lands. In the dark appearance, Home's **Packs** and **Screenshots** tabs become the mockup's `Packs` and `Screenshots`. ## What it is - **Packs:** - one `ROW` per resource pack, then per shader pack: its 36 px picture, the name, "Resource pack · on"; - the `Toggle` (40×24, round; the accent with the on-accent knob while on, white at 14 % with a 70 % knob while off) turns it on or off in options.txt, as before. - **Screenshots:** - the count over the grid (`h-8`); - the pictures 16:9, round at 12, 4 across from 1280 px (`xl:grid-cols-4`) and 2 below, gaps 12 × 16, each with its file name (12 px at 60 %); - a click opens the viewer. - **Empty states:** the mockup's sentences. ## Side by side Left: the mockup in Chrome at 1280×768. Right: the launcher at 1280×800 with the title bar cut. The demo screenshots and packs are the mockup's own, in a scratch home. ![screenshots](https://raw.githubusercontent.com/horizon-rust/horizon/screenshots/launcher-redesign-4/pr8-packs/side-shots.png) ![packs](https://raw.githubusercontent.com/horizon-rust/horizon/screenshots/launcher-redesign-4/pr8-packs/side-packs.png) Packs, close up: the mockup on top; the launcher; the launcher with a row under the pointer. ![packs close](https://raw.githubusercontent.com/horizon-rust/horizon/screenshots/launcher-redesign-4/pr8-packs/check-packs.png) ## Not in the mockup, kept (real features, fitted to its patterns) - **Packs:** - **Open folder** and **+ Add pack…** (`QUIET`) after "2 packs in Horizon", the mockup's `InstanceMods` header. - Dropping packs on the tab adds them; the list lights at 6 % while a file is over it. - **Remove** (🗑 `ICON_BUTTON`, under the pointer) moves a pack to the trash on its second click, red as the menus' Delete. - **Shader packs** after the resource packs ("Shader pack · on"), and a pack's own description after its state. - The line "The game is running: change packs in its own menus…"; the toggles dim then. - **Screenshots:** - the folder button, a 32 px `ICON_BUTTON` where the mockup has its blur toggle; - **Show all N** past 8 pictures, so a big folder doesn't decode hundreds of images. - The Sculk card stays in the sidebar. ## Gaps, to settle with dezer-x - **No blur (privacy) toggle** for screenshots. The launcher has no such setting yet. - **No 1.04 zoom** on a hovered screenshot, and **the toggle's knob doesn't slide** (200 ms in the mockup): GPUI Fast has no transform on an element. - **A pack without `pack.png`** gets a plain tile with the package icon; the mockup draws generated pixel art. - **Pack names** are the file names as the game shows them (`Faithful 32x.zip`); the mockup's demo drops the `.zip`. - **The screenshot viewer** keeps its current look; it is ported with the dialogs. Unchanged: the light appearance; the Mods and Console tabs (next PR). ## Self-check **pr_ready** (`tools/pr_ready.py` on ludovics-mac-mini, against origin/main at 057bcfcd1, 2 min 13 s) | Check | Result | | --- | --- | | Scope | ⚠️ 22 files, +1215 −81; 1296 lines of code: over 500, split it if it can ship in parts | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 612 passed (1 min 59 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 | ✅ (2 s) | | launcher clippy | ✅ (4 s) | | launcher tests | ✅ 452 passed (7 s) | | Parity | ➖ 18 affected, to run in CI (no vanilla data here): 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) | The Scope line counts the PRs below this one in the stack. This PR alone (the last commit): 468 insertions(+), 31 deletions(-), of which 70 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:48 +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#7757
No description provided.