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
Add sidebar UI tokens and apply them
RoversX1ec5f0dca3df
diff --git a/wezterm-gui/src/settings_window.rs b/wezterm-gui/src/settings_window.rsindex 3ef146f6..b732442f 100644--- a/wezterm-gui/src/settings_window.rs+++ b/wezterm-gui/src/settings_window.rs@@ -1584,9 +1584,9 @@ impl SettingsWindow {separator: ui.separator,search_bg: ui.control_bg,search_border: ui.control_border,- nav_hover_bg: ui.control_hover_bg,+ nav_hover_bg: ui.sidebar_row_hover_bg,nav_pressed_bg: ui.control_pressed_bg,- nav_selected_bg: ui.control_bg,+ nav_selected_bg: ui.sidebar_row_active_bg,control_bg: ui.control_bg,control_hover_bg: ui.control_hover_bg,control_pressed_bg: ui.control_pressed_bg,@@ -1605,9 +1605,9 @@ impl SettingsWindow {separator: ui.separator,search_bg: ui.control_bg,search_border: ui.control_border,- nav_hover_bg: ui.control_hover_bg,+ nav_hover_bg: ui.sidebar_row_hover_bg,nav_pressed_bg: ui.control_pressed_bg,- nav_selected_bg: ui.control_bg,+ nav_selected_bg: ui.sidebar_row_active_bg,control_bg: ui.control_bg,control_hover_bg: ui.control_hover_bg,control_pressed_bg: ui.control_pressed_bg,@@ -1921,6 +1921,10 @@ impl SettingsWindow {}fn do_paint(&mut self, window: &Window) -> bool {+ if self.webgpu.is_none() || self.render_state.is_none() {+ return false;+ }+let paint_start = crate::perf::now();let animating = self.advance_scroll_animations(Instant::now());match self.do_paint_webgpu() {diff --git a/wezterm-gui/src/termwindow/ui/sidebar.rs b/wezterm-gui/src/termwindow/ui/sidebar.rsindex 5d1992d5..d5fcc6ee 100644--- a/wezterm-gui/src/termwindow/ui/sidebar.rs+++ b/wezterm-gui/src/termwindow/ui/sidebar.rs@@ -525,8 +525,8 @@ impl crate::TermWindow {let foreground = chrome.text;let sidebar_bg = chrome.workspace_sidebar_bg;let sidebar_separator = chrome.separator;- let selected_bg = chrome.control_bg;- let selected_border = chrome.control_border;+ let selected_bg = chrome.sidebar_row_active_bg;+ let selected_border = chrome.sidebar_row_active_border;let active_fg = chrome.text;let muted_fg = chrome.secondary_text;let ui_font = self@@ -622,7 +622,7 @@ impl crate::TermWindow {sidebar_toggle_size as f32,sidebar_toggle_size as f32,),- foreground.mul_alpha(0.14),+ chrome.sidebar_button_hover_bg,SIDEBAR_ROW_RADIUS,).context("sidebar toolbar toggle button")?;@@ -707,7 +707,11 @@ impl crate::TermWindow {top_action_width as f32,top_action_height as f32,),- foreground.mul_alpha(if top_action_hovered { 0.14 } else { 0.08 }),+ if top_action_hovered {+ chrome.sidebar_button_hover_bg+ } else {+ chrome.sidebar_button_bg+ },SIDEBAR_ROW_RADIUS + 4.0,).context("sidebar add session button")?;@@ -720,11 +724,11 @@ impl crate::TermWindow {notification_action_size as f32,notification_action_size as f32,),- foreground.mul_alpha(if notification_action_hovered {- 0.14+ if notification_action_hovered {+ chrome.sidebar_button_hover_bg} else {- 0.08- }),+ chrome.sidebar_button_bg+ },SIDEBAR_ROW_RADIUS + 4.0,).context("sidebar notifications button")?;@@ -915,7 +919,7 @@ impl crate::TermWindow {pinned_width as f32,session_row_height as f32,),- foreground.mul_alpha(0.06),+ chrome.sidebar_row_hover_bg,SIDEBAR_ROW_RADIUS + 2.0,).context("sidebar hovered pinned session")?;@@ -1049,7 +1053,11 @@ impl crate::TermWindow {section_button_size as f32,section_button_size as f32,),- foreground.mul_alpha(if button_hovered { 0.14 } else { 0.08 }),+ if button_hovered {+ chrome.sidebar_button_hover_bg+ } else {+ chrome.sidebar_button_bg+ },SIDEBAR_ROW_RADIUS,).context("sidebar new project button")?;@@ -1176,7 +1184,11 @@ impl crate::TermWindow {project_action_size as f32,project_action_size as f32,),- foreground.mul_alpha(if project_action_hovered { 0.14 } else { 0.08 }),+ if project_action_hovered {+ chrome.sidebar_button_hover_bg+ } else {+ chrome.sidebar_button_bg+ },SIDEBAR_ROW_RADIUS,).context("sidebar new session button")?;@@ -1284,7 +1296,7 @@ impl crate::TermWindow {session_width as f32,session_row_height as f32,),- foreground.mul_alpha(0.06),+ chrome.sidebar_row_hover_bg,SIDEBAR_ROW_RADIUS + 2.0,).context("sidebar hovered session")?;@@ -1405,7 +1417,7 @@ impl crate::TermWindow {sidebar_toggle_size as f32,sidebar_toggle_size as f32,),- foreground.mul_alpha(0.14),+ chrome.sidebar_button_hover_bg,SIDEBAR_ROW_RADIUS,).context("sidebar toolbar toggle button repaint")?;@@ -1437,7 +1449,11 @@ impl crate::TermWindow {top_action_width as f32,top_action_height as f32,),- foreground.mul_alpha(if top_action_hovered { 0.14 } else { 0.08 }),+ if top_action_hovered {+ chrome.sidebar_button_hover_bg+ } else {+ chrome.sidebar_button_bg+ },SIDEBAR_ROW_RADIUS + 4.0,).context("sidebar add session button repaint")?;@@ -1456,11 +1472,11 @@ impl crate::TermWindow {notification_action_size as f32,notification_action_size as f32,),- foreground.mul_alpha(if notification_action_hovered {- 0.14+ if notification_action_hovered {+ chrome.sidebar_button_hover_bg} else {- 0.08- }),+ chrome.sidebar_button_bg+ },SIDEBAR_ROW_RADIUS + 4.0,).context("sidebar notifications button repaint")?;@@ -1616,7 +1632,7 @@ impl crate::TermWindow {settings_body_width as f32,settings_row_height as f32,),- foreground.mul_alpha(0.10),+ chrome.sidebar_row_hover_bg,SIDEBAR_ROW_RADIUS + 4.0,).context("sidebar settings button hover")?;@@ -1638,7 +1654,7 @@ impl crate::TermWindow {settings_action_size as f32,settings_action_size as f32,),- foreground.mul_alpha(0.12),+ chrome.sidebar_button_hover_bg,SIDEBAR_ROW_RADIUS + 4.0,).context("sidebar settings view options hover")?;@@ -1711,7 +1727,7 @@ impl crate::TermWindow {scroll.track_width as f32,scroll.track_height as f32,),- foreground.mul_alpha(0.06),+ chrome.separator,track_radius,).context("sidebar scroll track")?;@@ -1725,7 +1741,7 @@ impl crate::TermWindow {scroll.track_width as f32,scroll.thumb_height,),- foreground.mul_alpha(0.34),+ chrome.scrollbar_thumb,track_radius,).context("sidebar scroll thumb")?;diff --git a/wezterm-gui/src/ui/tokens.rs b/wezterm-gui/src/ui/tokens.rsindex 184a74ca..d7b6796c 100644--- a/wezterm-gui/src/ui/tokens.rs+++ b/wezterm-gui/src/ui/tokens.rs@@ -12,6 +12,11 @@ pub(crate) struct UiPalette {pub control_hover_bg: LinearRgba,pub control_pressed_bg: LinearRgba,pub control_border: LinearRgba,+ pub sidebar_button_bg: LinearRgba,+ pub sidebar_button_hover_bg: LinearRgba,+ pub sidebar_row_hover_bg: LinearRgba,+ pub sidebar_row_active_bg: LinearRgba,+ pub sidebar_row_active_border: LinearRgba,pub selected_bg: LinearRgba,pub text: LinearRgba,pub secondary_text: LinearRgba,@@ -33,6 +38,11 @@ impl UiPalette {control_hover_bg: rgba(247, 247, 250, 0.98),control_pressed_bg: rgba(232, 242, 255, 0.98),control_border: rgba(60, 60, 67, 0.20),+ sidebar_button_bg: rgba(255, 255, 255, 0.72),+ sidebar_button_hover_bg: rgba(255, 255, 255, 0.94),+ sidebar_row_hover_bg: rgba(60, 60, 67, 0.08),+ sidebar_row_active_bg: rgba(255, 255, 255, 0.78),+ sidebar_row_active_border: rgba(60, 60, 67, 0.18),selected_bg: rgb(0, 122, 255),text: rgb(28, 28, 30),secondary_text: rgb(72, 72, 74),@@ -50,6 +60,11 @@ impl UiPalette {control_hover_bg: rgba(55, 55, 57, 0.98),control_pressed_bg: rgba(66, 66, 69, 0.98),control_border: rgba(118, 118, 128, 0.28),+ sidebar_button_bg: rgba(36, 36, 38, 0.94),+ sidebar_button_hover_bg: rgba(48, 48, 50, 0.98),+ sidebar_row_hover_bg: rgba(255, 255, 255, 0.075),+ sidebar_row_active_bg: rgba(48, 48, 50, 0.98),+ sidebar_row_active_border: rgba(118, 118, 128, 0.22),selected_bg: rgb(58, 58, 60),text: rgb(242, 242, 247),secondary_text: rgb(199, 199, 204),