From 3813af0ffee325bf6bf6ee78ee952240524d0ee1 Mon Sep 17 00:00:00 2001 From: Can Celik Date: Thu, 10 Sep 2026 14:27:39 +0300 Subject: fix: use host background for pane selection highlights (#3894) refs #3798 --- src/client/shell/input.rs | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) (limited to 'src/client/shell/input.rs') diff --git a/src/client/shell/input.rs b/src/client/shell/input.rs index dd7bf87d..41a9f64c 100644 --- a/src/client/shell/input.rs +++ b/src/client/shell/input.rs @@ -267,16 +267,22 @@ impl ClientShellState { RawInputEvent::HostDefaultColor { kind: crate::terminal_theme::DefaultColorKind::Background, color, - } if !self.host_appearance_explicit => { - let appearance = color.inferred_appearance(); - self.host_appearance = Some(appearance); - if self.config.theme_runtime.auto_switch { - self.config.palette = crate::app::client_palette_for_appearance( - &self.config.theme_runtime, - appearance, - ); + } => { + if self.host_background != Some(color) { + self.host_background = Some(color); outcome.repaint = true; } + if !self.host_appearance_explicit { + let appearance = color.inferred_appearance(); + self.host_appearance = Some(appearance); + if self.config.theme_runtime.auto_switch { + self.config.palette = crate::app::client_palette_for_appearance( + &self.config.theme_runtime, + appearance, + ); + outcome.repaint = true; + } + } } RawInputEvent::HostDefaultColor { .. } | RawInputEvent::HostPaletteColors { .. } -- cgit v1.2.3