From 64aa975c77ccf0dd27c3393bc104e1caf2a19618 Mon Sep 17 00:00:00 2001 From: Jason Lee Date: Mon, 1 Dec 2025 21:56:15 +0800 Subject: [PATCH] title_bar: Remove window control bg color in normal mode. (#1720) Fix #1710 introduced bug. --- crates/ui/src/title_bar.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/crates/ui/src/title_bar.rs b/crates/ui/src/title_bar.rs index 6450575e..93b0898c 100644 --- a/crates/ui/src/title_bar.rs +++ b/crates/ui/src/title_bar.rs @@ -132,7 +132,7 @@ impl ControlIcon { #[inline] fn hover_bg(&self, cx: &App) -> Hsla { if self.is_close() { - cx.theme().danger_hover + cx.theme().danger } else { cx.theme().secondary_hover } @@ -153,7 +153,6 @@ impl RenderOnce for ControlIcon { let is_linux = cfg!(target_os = "linux"); let is_windows = cfg!(target_os = "windows"); let hover_fg = self.hover_fg(cx); - let bg = cx.theme().title_bar; let hover_bg = self.hover_bg(cx); let active_bg = self.active_bg(cx); let icon = self.clone(); @@ -171,7 +170,6 @@ impl RenderOnce for ControlIcon { .justify_center() .content_center() .items_center() - .bg(bg) .text_color(cx.theme().foreground) .hover(|style| style.bg(hover_bg).text_color(hover_fg)) .active(|style| style.bg(active_bg).text_color(hover_fg))