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:
parent
a7052cb188
commit
42c3f27f3c
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user