feat: adjust macOS window style

This commit is contained in:
GyDi 2023-01-16 22:57:53 +08:00
parent 819c5207d2
commit 23b728a762
No known key found for this signature in database
GPG Key ID: 9C3AD40F1F99880A
2 changed files with 17 additions and 1 deletions

View File

@ -94,7 +94,12 @@ pub fn create_window(app_handle: &AppHandle) {
} }
#[cfg(target_os = "macos")] #[cfg(target_os = "macos")]
crate::log_err!(builder.decorations(true).inner_size(800.0, 642.0).build()); crate::log_err!(builder
.decorations(true)
.inner_size(800.0, 642.0)
.hidden_title(true)
.title_bar_style(tauri::TitleBarStyle::Overlay)
.build());
#[cfg(target_os = "linux")] #[cfg(target_os = "linux")]
crate::log_err!(builder crate::log_err!(builder

View File

@ -104,3 +104,14 @@
} }
} }
} }
.macos {
&.layout {
.layout__left {
padding-top: 24px;
}
.layout__right .the-content {
top: 20px;
}
}
}