A modern terminal with a built-in multiplexer: close it and your sessions keep running. Run shells and tons of AI agents across your machines, then pick them up from desktop, browser, TUI and more. Written in Rust with no UI framework: interface drawn straight on the GPU. No Electron, GPUI or webview.
Rust agentagent-orchestrationaiai-agentsclaude-codecodexcoding-agentlinuxmacosmultiplayermultiplexerrustterminalterminal-emulatorterminal-multiplexertmuxtuiweztermwindows
fix(gui): make hover visible on title bar buttons, tabs and the sidebar switcher
RoversX8c1b8ae3acdf
diff --git a/wezterm-gui/src/settings_window.rs b/wezterm-gui/src/settings_window.rsindex 8562775d..c4e5f066 100644--- a/wezterm-gui/src/settings_window.rs+++ b/wezterm-gui/src/settings_window.rs@@ -7054,9 +7054,11 @@ impl SettingsWindow {} else {palette.text.mul_alpha(if pressed { 0.52 } else { 0.38 })};+ // Over the content's chrome mask, which shares the row and+ // hid every hover but the icon's: a white cross on white.self.draw_rounded_frame(layers,- 1,+ 2,x + press_inset,y + press_inset,visual_size,diff --git a/wezterm-gui/src/termwindow/render/fancy_tab_bar.rs b/wezterm-gui/src/termwindow/render/fancy_tab_bar.rsindex 5fc8482c..ac8673a3 100644--- a/wezterm-gui/src/termwindow/render/fancy_tab_bar.rs+++ b/wezterm-gui/src/termwindow/render/fancy_tab_bar.rs@@ -671,6 +671,7 @@ impl crate::TermWindow {let close_button = button == IntegratedTitleButton::Close;if hovered {+ let chrome = self.chrome();let fill = if close_button {let mut red = LinearRgba::with_srgba(232, 17, 35, 255);if pressed {@@ -678,21 +679,24 @@ impl crate::TermWindow {}red} else if pressed {- // Foreground-tinted overlay reads correctly on both themes;- // the palette's control_hover_bg is near-white and washes- // out on the light tab bar.- foreground.mul_alpha(0.16)+ // Opaque, as the buttons beside them: a bordered fill is laid+ // over a disc of the border's colour, which showed through a+ // see-through tint and turned the button a dark grey disc.+ chrome.control_pressed_bg} else {- foreground.mul_alpha(0.10)+ chrome.control_hover_bg};let border = if close_button {LinearRgba::TRANSPARENT} else {foreground.mul_alpha(if pressed { 0.52 } else { 0.38 })};+ // On the trailing action mask's layer, after it, under the icon:+ // on a layer below, the mask hid every hover but the icon's, and+ // a hovered Close showed a white cross on a light bar.self.fill_rounded_rectangle_with_border(layers,- 1,+ 2,euclid::rect((button_x + press_inset) as f32,(button_y + press_inset) as f32,@@ -777,7 +781,7 @@ impl crate::TermWindow {let tab_surface_color = if active {chrome.active_tab_surface()} else if is_hovered && !is_renaming {- chrome.control_hover_bg+ chrome.hover_fill(chrome.control_hover_bg)} else if self.chrome_see_through() {// The bar's own ground: a second coat would show as a darker pill.LinearRgba::TRANSPARENT@@ -1028,7 +1032,7 @@ impl crate::TermWindow {let surface = if active {chrome.active_tab_surface()} else if is_hovered {- chrome.control_hover_bg+ chrome.hover_fill(chrome.control_hover_bg)} else if self.chrome_see_through() {// As the window tabs: no second coat of the bar's ground.LinearRgba::TRANSPARENT@@ -1180,9 +1184,10 @@ impl crate::TermWindow {chrome.control_hover_bg};let border_alpha = if pressed { 0.52 } else { 0.38 };+ // Above the trailing action mask, as the window buttons'.self.fill_rounded_rectangle_with_border(layers,- 1,+ 2,euclid::rect((button_x + press_inset) as f32,(button_y + press_inset) as f32,@@ -1251,9 +1256,10 @@ impl crate::TermWindow {chrome.control_hover_bg};let border_alpha = if pressed { 0.52 } else { 0.38 };+ // As the new-tab button beside it: above the trailing mask.self.fill_rounded_rectangle_with_border(layers,- 1,+ 2,euclid::rect((button_x + press_inset) as f32,(button_y + press_inset) as f32,diff --git a/wezterm-gui/src/termwindow/render/pane.rs b/wezterm-gui/src/termwindow/render/pane.rsindex 6e9af067..beb818c8 100644--- a/wezterm-gui/src/termwindow/render/pane.rs+++ b/wezterm-gui/src/termwindow/render/pane.rs@@ -624,7 +624,7 @@ impl crate::TermWindow {let tab_surface_color = if selected_tab {chrome.active_tab_surface()} else if is_hovered && !is_renaming_tab {- chrome.control_hover_bg+ chrome.hover_fill(chrome.control_hover_bg)} else {foreground.mul_alpha(0.025)};@@ -1012,7 +1012,7 @@ impl crate::TermWindow {let tab_surface_color = if selected_tab {chrome.active_tab_surface()} else if is_hovered && !is_renaming_tab {- chrome.control_hover_bg+ chrome.hover_fill(chrome.control_hover_bg)} else {foreground.mul_alpha(0.025)};diff --git a/wezterm-gui/src/termwindow/ui/right_sidebar.rs b/wezterm-gui/src/termwindow/ui/right_sidebar.rsindex 46cd73cc..4dca5f95 100644--- a/wezterm-gui/src/termwindow/ui/right_sidebar.rs+++ b/wezterm-gui/src/termwindow/ui/right_sidebar.rs@@ -7721,7 +7721,7 @@ impl crate::TermWindow {layers,2,pill,- chrome.sidebar_button_hover_bg,+ chrome.hover_fill(chrome.sidebar_button_hover_bg),WINDOW_TAB_ADD_BUTTON_RADIUS,).context("right sidebar hovered mode")?;diff --git a/wezterm-gui/src/ui/tokens.rs b/wezterm-gui/src/ui/tokens.rsindex 2027e3b9..9956acaa 100644--- a/wezterm-gui/src/ui/tokens.rs+++ b/wezterm-gui/src/ui/tokens.rs@@ -241,6 +241,20 @@ impl UiPalette {palette}+ /// A hovered tab's or segment's fill, given the dark palette's own. The+ /// light palette's hover greys are near-white, and the tab strips and the+ /// right sidebar's switcher sit on white or nearly white ground, where+ /// they did not show: on light the text is laid thinly over the ground+ /// instead. Only for a fill with no border: a bordered one is laid over a+ /// disc of the border's colour, which shows through a see-through fill.+ pub(crate) fn hover_fill(&self, dark: LinearRgba) -> LinearRgba {+ if self.is_dark() {+ dark+ } else {+ self.text.mul_alpha(0.12)+ }+ }+/// The raised tab, given that the strip beneath it is the terminal's own/// ground rather than a piece of sidebar.///