[PR #2469] [MERGED] Make the High Contrast option turn its resource pack on and off #4345

Closed
opened 2026-11-03 04:16:30 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/2469
Author: @kacpherek
Created: 10/26/2026
Status: ✅ Merged
Merged: 10/27/2026
Merged by: @ludovic111

Base: main ← Head: fix/high-contrast-pack


📝 Commits (2)

  • 46b7195 Make the High Contrast option turn its resource pack on and off
  • 56bf45c Keep the pack screen selection in step with High Contrast

📊 Changes

1 file changed (+16 additions, -0 deletions)

View changed files

📝 crates/horizon-client/src/options_ui.rs (+16 -0)

📄 Description

What and why

The High Contrast accessibility option changed a setting but never touched the built-in high_contrast resource pack. Turning it on now adds the pack on top of the selected packs, and turning it off removes it, then the packs reload the same way they do when the pack screen is closed.

Vanilla reference

Options.highContrast (the value listener): if the pack is not selected and the option turns on, packRepo.addPack("high_contrast"); if it is selected and the option turns off, packRepo.removePack("high_contrast"); either way updateResourcePacks.

Self-check

cargo check -p horizon-client passes.


🔄 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/2469 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/27/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/high-contrast-pack` --- ### 📝 Commits (2) - [`46b7195`](https://github.com/horizon-rust/horizon/commit/46b71954e162c8b355e26d8afb132d2060bf5fcf) Make the High Contrast option turn its resource pack on and off - [`56bf45c`](https://github.com/horizon-rust/horizon/commit/56bf45cee512556c8c0a01eea04371876a117606) Keep the pack screen selection in step with High Contrast ### 📊 Changes **1 file changed** (+16 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/options_ui.rs` (+16 -0) </details> ### 📄 Description ## What and why The High Contrast accessibility option changed a setting but never touched the built-in `high_contrast` resource pack. Turning it on now adds the pack on top of the selected packs, and turning it off removes it, then the packs reload the same way they do when the pack screen is closed. ## Vanilla reference `Options.highContrast` (the value listener): if the pack is not selected and the option turns on, `packRepo.addPack("high_contrast")`; if it is selected and the option turns off, `packRepo.removePack("high_contrast")`; either way `updateResourcePacks`. ## Self-check `cargo check -p horizon-client` passes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:16:30 +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#4345
No description provided.