diff --git a/wezterm-input-types/src/lib.rs b/wezterm-input-types/src/lib.rs index ec53d2a99..c3f7810d4 100644 --- a/wezterm-input-types/src/lib.rs +++ b/wezterm-input-types/src/lib.rs @@ -1465,14 +1465,23 @@ pub enum IntegratedTitleButtonAlignment { Left, } -#[derive(Debug, Default, ToDynamic, PartialEq, Eq, Clone, Copy)] +#[derive(Debug, ToDynamic, PartialEq, Eq, Clone, Copy)] pub enum IntegratedTitleButtonStyle { - #[default] Windows, Gnome, MacOsNative, } +impl Default for IntegratedTitleButtonStyle { + fn default() -> Self { + if cfg!(target_os = "macos") { + Self::MacOsNative + } else { + Self::Windows + } + } +} + impl FromDynamic for IntegratedTitleButtonStyle { fn from_dynamic( value: &wezterm_dynamic::Value,