Skip to content

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.

style(gui): set the overview capsule a size smaller

RoversXf5551dd33509
diff --git a/wezterm-gui/src/termwindow/live_overview.rs b/wezterm-gui/src/termwindow/live_overview.rs
index d707fd20..73e2c3e5 100644
--- a/wezterm-gui/src/termwindow/live_overview.rs
+++ b/wezterm-gui/src/termwindow/live_overview.rs
@@ -49,17 +49,17 @@ const CARD_ORPHAN_COMFORT_WIDTH: f32 = 480.0;
const CARD_MAX_WIDTH: f32 = 640.0;
/// The band above a card's panel: the floating capsule that names the thread
/// and lists its tabs, plus the gap that keeps it floating.
-const CAPSULE_HEIGHT: f32 = 52.0;
+const CAPSULE_HEIGHT: f32 = 46.0;
const CAPSULE_GAP: f32 = 12.0;
const CARD_HEADER_HEIGHT: f32 = CAPSULE_HEIGHT + CAPSULE_GAP;
-const CAPSULE_ICON: f32 = 18.0;
+const CAPSULE_ICON: f32 = 16.0;
/// Padding either side of a capsule section's contents.
const CAPSULE_SECTION_PAD: f32 = 14.0;
const CAPSULE_TITLE_PAD: f32 = 18.0;
/// Vertical inset of the hairlines between sections.
-const CAPSULE_DIVIDER_INSET: f32 = 15.0;
-const CAPSULE_DOT: f32 = 9.0;
-const CAPSULE_DOT_GAP: f32 = 12.0;
+const CAPSULE_DIVIDER_INSET: f32 = 13.0;
+const CAPSULE_DOT: f32 = 8.0;
+const CAPSULE_DOT_GAP: f32 = 11.0;
/// Room either side of the hairline between two windows' dots.
const CAPSULE_GROUP_GAP: f32 = 13.0;
/// Margin the capsule leaves at both ends of the panel; the close button
diff --git a/wezterm-gui/src/termwindow/render/paint.rs b/wezterm-gui/src/termwindow/render/paint.rs
index 7d49fcd5..4939537f 100644
--- a/wezterm-gui/src/termwindow/render/paint.rs
+++ b/wezterm-gui/src/termwindow/render/paint.rs
@@ -1781,12 +1781,15 @@ impl crate::TermWindow {
)?,
self.fonts
.title_font_with_size(crate::native_settings::sidebar_font_size())?,
- self.fonts
- .title_font_with_size(crate::native_settings::pane_header_font_size())?,
- // Same family and scale as the card title, a step down.
+ // A card names a thread in a capsule the size of a control,
+ // not a heading: a shade under the pane header size, and a
+ // caption a step below that in the same family.
self.fonts.title_font_with_size(
(crate::native_settings::pane_header_font_size() * 0.78).max(9.0),
)?,
+ self.fonts.title_font_with_size(
+ (crate::native_settings::pane_header_font_size() * 0.64).max(8.0),
+ )?,
),
};
let render_metrics =