[PR #173] [MERGED] Game menus (Horizon style) in the new design language #2375

Closed
opened 2026-11-02 15:55:26 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/173
Author: @ludovic111
Created: 10/14/2026
Status: ✅ Merged
Merged: 10/14/2026
Merged by: @ludovic111

Base: main ← Head: feat/design-menus


📝 Commits (3)

  • 7df75b9 Restyle the game's Horizon menus in the new design language
  • 2094fb5 Describe the game menus' sidebar and plates as built
  • 5763ec7 Game menus: AA veils over bright backdrops, a whole wordmark on the home page

📊 Changes

4 files changed (+288 additions, -257 deletions)

View changed files

📝 crates/horizon-client/src/front.rs (+95 -112)
📝 crates/horizon-client/src/options_horizon.rs (+6 -19)
📝 crates/horizon-client/src/ui_theme.rs (+180 -122)
📝 docs/design-system.md (+7 -4)

📄 Description

Stacked on #168 (launcher). Restyles only Horizon's own menu style (what HORIZON_MENU_STYLE=horizon and "Menu style: Horizon" show). Vanilla's classic screens and the HUD are untouched.

What changes (in the shared components of ui_theme.rs, so every Horizon screen follows):

  • Sidebar: the mark and a name, then text items on a soft sliding pill. No tinted panel.
  • Controls: pill buttons; one violet action; an ink pill for the selected segment; a 36×20 switch; a thin ink slider; borderless fields with an accent focus ring.
  • Lists: settings, worlds and servers are numbered index lists with 1 px rules. Page titles are in Geist display size; status lines are in mono capitals.

Round 2

  • Backdrop scrim: the veil is now 0.90 on every page and in a world, and 0.80 on the home page (which still shows more of the world). Home's secondary text is drawn in ink_soft. Muted text over the backdrop is #9fa3ae. A test in horizon-theme holds every pair to AA over a backdrop of luminance 0.77 (bare veil and a selected row's plate). The title backdrop is always the snowy ice spikes (measured brightest 0.49). Measured on these captures, the lowest text contrast is muted 6.5:1 on the deeper pages and ink_soft 8:1 on home.
  • Home wordmark: now whole, as wide as the content column and above the footnote, instead of cut off at the bottom right.
  • Extras page (#135, merged): rebased onto it. It is built from the same components, so it follows the new style with no extra code (zoom and minimap rows, numbered, with cost lines). Its in-game overlays (FPS counter, keystrokes, minimap) are HUD-side drawing and were left as #135/#136 made them.

Checks: clippy clean, 470 client lib tests pass (Mac mini). Screenshots are from a Linux build on vscreen, HORIZON_NO_AUDIO=1, 1280×800.

The Extras page

extras

Round 1 → round 2

title

options-video

worlds

pause

Before (main) → after

title

title

worlds

worlds

create-world

create-world

multiplayer

multiplayer

options-video

options-video

options-audio

options-audio

options-controls

options-controls

options-accessibility

options-accessibility

options-language

options-language

options-chat

options-chat

options-interface

options-interface

pause

pause

Vanilla's classic screens: unchanged

classic-title
classic-options

Draft: nothing merges before Ludovic says yes.

🤖 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/173 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/14/2026 **Status:** ✅ Merged **Merged:** 10/14/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/design-menus` --- ### 📝 Commits (3) - [`7df75b9`](https://github.com/horizon-rust/horizon/commit/7df75b9d3b3dd0e0923ea5185da8f8b091f6fb1e) Restyle the game's Horizon menus in the new design language - [`2094fb5`](https://github.com/horizon-rust/horizon/commit/2094fb58ad1729338747c1887b07a4da55fe15d9) Describe the game menus' sidebar and plates as built - [`5763ec7`](https://github.com/horizon-rust/horizon/commit/5763ec7e58485c51428e337d60b7e838bf1ca0ec) Game menus: AA veils over bright backdrops, a whole wordmark on the home page ### 📊 Changes **4 files changed** (+288 additions, -257 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/front.rs` (+95 -112) 📝 `crates/horizon-client/src/options_horizon.rs` (+6 -19) 📝 `crates/horizon-client/src/ui_theme.rs` (+180 -122) 📝 `docs/design-system.md` (+7 -4) </details> ### 📄 Description Stacked on #168 (launcher). Restyles **only Horizon's own menu style** (what `HORIZON_MENU_STYLE=horizon` and "Menu style: Horizon" show). Vanilla's classic screens and the HUD are untouched. **What changes** (in the shared components of `ui_theme.rs`, so every Horizon screen follows): - **Sidebar:** the mark and a name, then text items on a soft sliding pill. No tinted panel. - **Controls:** pill buttons; one violet action; an ink pill for the selected segment; a 36×20 switch; a thin ink slider; borderless fields with an accent focus ring. - **Lists:** settings, worlds and servers are **numbered index lists** with 1 px rules. Page titles are in Geist display size; status lines are in mono capitals. **Round 2** - **Backdrop scrim:** the veil is now **0.90** on every page and in a world, and **0.80** on the home page (which still shows more of the world). Home's secondary text is drawn in ink_soft. Muted text over the backdrop is #9fa3ae. A test in `horizon-theme` holds every pair to **AA over a backdrop of luminance 0.77** (bare veil and a selected row's plate). The title backdrop is always the snowy ice spikes (measured brightest 0.49). Measured on these captures, the lowest text contrast is muted 6.5:1 on the deeper pages and ink_soft 8:1 on home. - **Home wordmark:** now whole, as wide as the content column and above the footnote, instead of cut off at the bottom right. - **Extras page (#135, merged):** rebased onto it. It is built from the same components, so it follows the new style with no extra code (zoom and minimap rows, numbered, with cost lines). Its in-game overlays (FPS counter, keystrokes, minimap) are HUD-side drawing and were left as #135/#136 made them. Checks: clippy clean, 470 client lib tests pass (Mac mini). Screenshots are from a Linux build on vscreen, `HORIZON_NO_AUDIO=1`, 1280×800. ### The Extras page ![extras](https://raw.githubusercontent.com/ludovic111/horizon/df5300a6af551eca0b565a000c8057cff44b386e/round2/menus/options-extras.png) ### Round 1 → round 2 ![title](https://raw.githubusercontent.com/ludovic111/horizon/64d53bb1d5d8163ef2eea0c8e0196f8549c668c5/round2/menus/title-round1-round2.png) ![options-video](https://raw.githubusercontent.com/ludovic111/horizon/64d53bb1d5d8163ef2eea0c8e0196f8549c668c5/round2/menus/options-video-round1-round2.png) ![worlds](https://raw.githubusercontent.com/ludovic111/horizon/64d53bb1d5d8163ef2eea0c8e0196f8549c668c5/round2/menus/worlds-round1-round2.png) ![pause](https://raw.githubusercontent.com/ludovic111/horizon/64d53bb1d5d8163ef2eea0c8e0196f8549c668c5/round2/menus/pause-round1-round2.png) ### Before (main) → after **title** ![title](https://raw.githubusercontent.com/ludovic111/horizon/64d53bb1d5d8163ef2eea0c8e0196f8549c668c5/round2/menus/title-before-after.png) **worlds** ![worlds](https://raw.githubusercontent.com/ludovic111/horizon/64d53bb1d5d8163ef2eea0c8e0196f8549c668c5/round2/menus/worlds-before-after.png) **create-world** ![create-world](https://raw.githubusercontent.com/ludovic111/horizon/64d53bb1d5d8163ef2eea0c8e0196f8549c668c5/round2/menus/create-world-before-after.png) **multiplayer** ![multiplayer](https://raw.githubusercontent.com/ludovic111/horizon/64d53bb1d5d8163ef2eea0c8e0196f8549c668c5/round2/menus/multiplayer-before-after.png) **options-video** ![options-video](https://raw.githubusercontent.com/ludovic111/horizon/64d53bb1d5d8163ef2eea0c8e0196f8549c668c5/round2/menus/options-video-before-after.png) **options-audio** ![options-audio](https://raw.githubusercontent.com/ludovic111/horizon/64d53bb1d5d8163ef2eea0c8e0196f8549c668c5/round2/menus/options-audio-before-after.png) **options-controls** ![options-controls](https://raw.githubusercontent.com/ludovic111/horizon/64d53bb1d5d8163ef2eea0c8e0196f8549c668c5/round2/menus/options-controls-before-after.png) **options-accessibility** ![options-accessibility](https://raw.githubusercontent.com/ludovic111/horizon/64d53bb1d5d8163ef2eea0c8e0196f8549c668c5/round2/menus/options-accessibility-before-after.png) **options-language** ![options-language](https://raw.githubusercontent.com/ludovic111/horizon/64d53bb1d5d8163ef2eea0c8e0196f8549c668c5/round2/menus/options-language-before-after.png) **options-chat** ![options-chat](https://raw.githubusercontent.com/ludovic111/horizon/64d53bb1d5d8163ef2eea0c8e0196f8549c668c5/round2/menus/options-chat-before-after.png) **options-interface** ![options-interface](https://raw.githubusercontent.com/ludovic111/horizon/64d53bb1d5d8163ef2eea0c8e0196f8549c668c5/round2/menus/options-interface-before-after.png) **pause** ![pause](https://raw.githubusercontent.com/ludovic111/horizon/64d53bb1d5d8163ef2eea0c8e0196f8549c668c5/round2/menus/pause-before-after.png) ### Vanilla's classic screens: unchanged ![classic-title](https://raw.githubusercontent.com/ludovic111/horizon/64d53bb1d5d8163ef2eea0c8e0196f8549c668c5/classic/title-before-after.png) ![classic-options](https://raw.githubusercontent.com/ludovic111/horizon/64d53bb1d5d8163ef2eea0c8e0196f8549c668c5/classic/options-before-after.png) **Draft: nothing merges before Ludovic says yes.** 🤖 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-02 15:55:26 +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#2375
No description provided.