Controllers: options sub-pages keep the classic focus highlight under the Horizon style

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Ludovic Marie
2026-10-15 01:35:05 +02:00
parent 210a6f5ddd
commit 635622652e
+6 -3
View File
@@ -1035,10 +1035,13 @@ impl Game<'_> {
/// the design system's focus colour: a two-dp accent ring.
fn draw_pad_focus(&self, batch: &mut HudBatch, focus: Target) {
let [x, y, w, h] = focus.rect;
// The options' sub-pages keep the classic layout under either style.
let horizon = horizon_client::ui_theme::horizon()
&& (self.title.is_some()
|| self.screen == Screen::Options
|| self.screen == Screen::Paused);
&& if self.screen == Screen::Options {
self.ui.options.page() == Page::Main
} else {
self.title.is_some() || self.screen == Screen::Paused
};
if horizon {
use horizon_client::ui_theme::{self as theme, Ui, color};
let mut ui = Ui::new(&self.res.atlas, batch, self.cursor);