integrated title bar: default to mac style on mac
This commit is contained in:
1 file changed
+11
-2
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user