Basic Linux/Windows integrated titlebar

This commit is contained in:
Gregory Schier
2024-01-13 23:40:32 -08:00
parent 3086d815c1
commit 3a4a76c58d
11 changed files with 133 additions and 60 deletions

View File

@@ -860,6 +860,7 @@ fn create_window(handle: &AppHandle<Wry>, url: Option<&str>) -> Window<Wry> {
100.0 + random::<f64>() * 30.0,
100.0 + random::<f64>() * 30.0,
)
.decorations(false)
.title(handle.package_info().name.to_string());
// Add macOS-only things
@@ -868,6 +869,7 @@ fn create_window(handle: &AppHandle<Wry>, url: Option<&str>) -> Window<Wry> {
win_builder = win_builder
.menu(app_menu)
.hidden_title(true)
.decoratons(true)
.title_bar_style(TitleBarStyle::Overlay);
}