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.

gui: say what system_appearance actually reports

RoversX9353494fff8f
diff --git a/wezterm-gui/src/native_settings.rs b/wezterm-gui/src/native_settings.rs
index b232cc35..d8db8302 100644
--- a/wezterm-gui/src/native_settings.rs
+++ b/wezterm-gui/src/native_settings.rs
@@ -665,6 +665,14 @@ pub(crate) fn save_color_scheme(name: Option<String>) {
}
}
+/// The appearance the windowing connection reports.
+///
+/// Despite the name this is **not** necessarily what the operating system is
+/// set to: once a theme has been picked here, `get_appearance()` reports that
+/// instead, on every platform. Nothing is lost by it -- `effective_appearance`
+/// below ignores this argument for Light and Dark, and under System there is
+/// no override to report -- but do not reach for this expecting to learn what
+/// the OS itself says.
pub(crate) fn system_appearance() -> Appearance {
Connection::get()
.map(|conn| conn.get_appearance())