1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-23 21:32:13 +03:00

integrated title bar: default to mac style on mac

This commit is contained in:
Wez Furlong 2023-03-31 23:23:10 -07:00
parent a7052cb188
commit 42c3f27f3c
No known key found for this signature in database
GPG Key ID: 7A7F66A31EC9B387

View File

@ -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,