[PR #4148] [MERGED] Launcher: the language row is a dropdown, not a segment per language #5443

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4148
Author: @Domanffe
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/31/2026
Merged by: @rdbtCVS

Base: main ← Head: fix/launcher-language-row


📝 Commits (1)

  • 56402b9 Launcher: the language row is a dropdown, not a segment per language

📊 Changes

2 files changed (+116 additions, -24 deletions)

View changed files

📝 launcher/src/language_page.rs (+112 -24)
📝 launcher/src/main.rs (+4 -0)

📄 Description

🤖 Opened by Alexander's AI agent (Hermes), not by Alexander himself.

Settings > Language drew one segment per language inside the row. With the eight languages the launcher ships now, the segmented control is wider than the panel, so the row's own text ("System follows your computer's language…") is left with a single character of width and wraps one letter per line. Adding a ninth language makes it worse, and the string grows with every language.

The row is a dropdown now: a block that shows the current choice in its own name and a chevron, opening a list under it (the same gpui::deferred menu the version picker and the account switcher use). The list holds the system's language first, then every language the launcher has, with the chosen one marked. Nothing new to translate: "System" and "Language" were already keys, and a language is named in itself.

The picker itself is a label plus a menu, so launcher/src/language_page.rs grows the menu and Launcher gains the language_menu flag beside picker_open and account_menu; the row's layout, index_row and segments are untouched. segments stays for the rows that hold two or three choices. The row's sentence ("System follows your computer's language: … here") is about following the computer, so it now shows only while the choice is the system's; with a language picked the row is the name and the picker.

Evidence on a Windows build of this branch (cargo build -p horizon-launcher debug, HORIZON_LAUNCHER_HOME and HORIZON_HOME on throwaway folders, HORIZON_LAUNCHER_PAGE=settings, language: "ru" in settings.json): the Language row is one line, the sentence next to it reads horizontally, and the open list shows Системное, English, Français, Русский, Deutsch, 简体中文, Español, Українська, Polski with the marker on the current one. Nothing was clicked in the open window: the GPUI window exposes only its title-bar buttons to accessibility, so the click that opens the list was simulated by starting the build with the flag set, and the screenshots are of that one state.

A language's name is never passed through the table ("System" is, and it is a key), pinned by language_page::tests::a_language_is_named_in_itself_and_the_system_choice_in_the_launchers_language.

The pr_ready block follows as a comment.


🔄 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/4148 **Author:** [@Domanffe](https://github.com/Domanffe) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@rdbtCVS](https://github.com/rdbtCVS) **Base:** `main` ← **Head:** `fix/launcher-language-row` --- ### 📝 Commits (1) - [`56402b9`](https://github.com/horizon-rust/horizon/commit/56402b95f325d579cf9f9195ef16f2cd6f60cc86) Launcher: the language row is a dropdown, not a segment per language ### 📊 Changes **2 files changed** (+116 additions, -24 deletions) <details> <summary>View changed files</summary> 📝 `launcher/src/language_page.rs` (+112 -24) 📝 `launcher/src/main.rs` (+4 -0) </details> ### 📄 Description > 🤖 Opened by Alexander's AI agent (Hermes), not by Alexander himself. Settings > Language drew one segment per language inside the row. With the eight languages the launcher ships now, the segmented control is wider than the panel, so the row's own text ("System follows your computer's language…") is left with a single character of width and wraps one letter per line. Adding a ninth language makes it worse, and the string grows with every language. The row is a dropdown now: a block that shows the current choice in its own name and a chevron, opening a list under it (the same `gpui::deferred` menu the version picker and the account switcher use). The list holds the system's language first, then every language the launcher has, with the chosen one marked. Nothing new to translate: "System" and "Language" were already keys, and a language is named in itself. The picker itself is a label plus a menu, so `launcher/src/language_page.rs` grows the menu and `Launcher` gains the `language_menu` flag beside `picker_open` and `account_menu`; the row's layout, `index_row` and `segments` are untouched. `segments` stays for the rows that hold two or three choices. The row's sentence ("System follows your computer's language: … here") is about following the computer, so it now shows only while the choice is the system's; with a language picked the row is the name and the picker. Evidence on a Windows build of this branch (`cargo build -p horizon-launcher` debug, `HORIZON_LAUNCHER_HOME` and `HORIZON_HOME` on throwaway folders, `HORIZON_LAUNCHER_PAGE=settings`, `language: "ru"` in `settings.json`): the Language row is one line, the sentence next to it reads horizontally, and the open list shows Системное, English, Français, Русский, Deutsch, 简体中文, Español, Українська, Polski with the marker on the current one. Nothing was clicked in the open window: the GPUI window exposes only its title-bar buttons to accessibility, so the click that opens the list was simulated by starting the build with the flag set, and the screenshots are of that one state. A language's name is never passed through the table ("System" is, and it is a key), pinned by `language_page::tests::a_language_is_named_in_itself_and_the_system_choice_in_the_launchers_language`. The pr_ready block follows as a comment. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:12: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#5443
No description provided.