From 83c659d8bfbc2f0146a952757efaf730f964f7d0 Mon Sep 17 00:00:00 2001 From: l0ng-ai <24760907+l0ng-ai@users.noreply.github.com> Date: Mon, 28 Sep 2026 08:34:01 +0800 Subject: [PATCH] fix(ui): paint the title bar search on the sidebar's surface Claude-Session: https://claude.ai/code/session_01Aeskbok7Ah7dvKWnaaJFEg --- src/ui/tab_strip.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/ui/tab_strip.rs b/src/ui/tab_strip.rs index bef2a9ab..e26e44e7 100644 --- a/src/ui/tab_strip.rs +++ b/src/ui/tab_strip.rs @@ -2495,12 +2495,12 @@ impl Tty7App { .pl(px(10.)) .pr(px(10.)) .rounded(px(7.)) - // v5's field fill: #f5f5f4 on a light theme, a - // faint lift of the bar on a dark one. - .bg(match cx.theme().mode.is_dark() { - true => cx.theme().muted, - false => gpui::rgb(0xf5f5f4).into(), - }) + // The sidebar's own surface: a well of the rail's + // colour set into the bar over the terminal, which + // follows the theme wherever the rail does. + .bg(gpui::rgb( + cx.global::().sidebar.base, + )) .cursor_pointer() .text_size(window.rem_size() * 0.8125) .text_color(cx.theme().muted_foreground)