[PR #4783] [CLOSED] fix(launcher): replace language segment bar with dropdown menu #5847

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4783
Author: @josegil1909
Created: 10/30/2026
Status: ❌ Closed

Base: main ← Head: fix/4752-language-dropdown


📝 Commits (1)

  • 9de02dd fix(launcher): replace language segment bar with dropdown menu

📊 Changes

2 files changed (+112 additions, -11 deletions)

View changed files

📝 launcher/src/language_page.rs (+108 -11)
📝 launcher/src/main.rs (+4 -0)

📄 Description

🤖 Opened by josegil1909's AI agent (Google Antigravity), not by josegil1909 personally.

Fixes #4752

Problem

In Settings -> Launcher -> Language, the 9-option horizontal segments(...) control (System, English, Français, Русский, Deutsch, 简体中文, Español, Українська, Polski) has .flex_none() and requires ~850 px of width. At the default/minimum window width (960 px, where the Settings card content area is ~632 px wide), the segment bar crushes the left .flex_1().min_w_0() text column to a few pixels wide, causing the title and description to wrap vertically 1–3 characters per line while the segment bar floats vertically centered across a huge card.

Fix

Replace the 9-option horizontal segment bar in launcher/src/language_page.rs with a compact dropdown trigger button and a gpui::deferred(menu).with_priority(1) popup list (matching the pattern used by the account switcher in launcher/src/switch_page.rs and the version picker in launcher/src/main.rs).

Checks

  • python3 tools/check_public_tree.py: passed
  • cargo fmt --manifest-path launcher/Cargo.toml --check: passed
  • cargo test --manifest-path launcher/Cargo.toml --lib i18n::tests: 5 passed
  • cargo test --manifest-path launcher/Cargo.toml --bin horizon-launcher tests::: 59 passed

🤖 Generated with Google Antigravity


🔄 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/4783 **Author:** [@josegil1909](https://github.com/josegil1909) **Created:** 10/30/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/4752-language-dropdown` --- ### 📝 Commits (1) - [`9de02dd`](https://github.com/horizon-rust/horizon/commit/9de02dd9957ecef95e9a968af27f18152b75c0d7) fix(launcher): replace language segment bar with dropdown menu ### 📊 Changes **2 files changed** (+112 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `launcher/src/language_page.rs` (+108 -11) 📝 `launcher/src/main.rs` (+4 -0) </details> ### 📄 Description > 🤖 Opened by josegil1909's AI agent (Google Antigravity), not by josegil1909 personally. Fixes #4752 ### Problem In **Settings -> Launcher -> Language**, the 9-option horizontal `segments(...)` control (`System`, `English`, `Français`, `Русский`, `Deutsch`, `简体中文`, `Español`, `Українська`, `Polski`) has `.flex_none()` and requires ~850 px of width. At the default/minimum window width (960 px, where the Settings card content area is ~632 px wide), the segment bar crushes the left `.flex_1().min_w_0()` text column to a few pixels wide, causing the title and description to wrap vertically 1–3 characters per line while the segment bar floats vertically centered across a huge card. ### Fix Replace the 9-option horizontal segment bar in `launcher/src/language_page.rs` with a compact dropdown trigger button and a `gpui::deferred(menu).with_priority(1)` popup list (matching the pattern used by the account switcher in `launcher/src/switch_page.rs` and the version picker in `launcher/src/main.rs`). ### Checks - `python3 tools/check_public_tree.py`: passed - `cargo fmt --manifest-path launcher/Cargo.toml --check`: passed - `cargo test --manifest-path launcher/Cargo.toml --lib i18n::tests`: 5 passed - `cargo test --manifest-path launcher/Cargo.toml --bin horizon-launcher tests::`: 59 passed 🤖 Generated with Google Antigravity --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:15:24 +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#5847
No description provided.