A music player that connects to your cloud/distributed storage.
5
fork

Configure Feed

Select the types of activity you want to include in your feed.

Only set title_bar_style on Mac target

+12 -4
+12 -4
src-tauri/src/main.rs
··· 4 4 )] 5 5 6 6 use std::path::PathBuf; 7 - use tauri::{TitleBarStyle, WindowBuilder, WindowUrl}; 7 + use tauri::{WindowBuilder, WindowUrl}; 8 8 use tauri::utils::config::AppUrl; 9 + 10 + #[cfg(target_os = "macos")] 11 + use tauri::{TitleBarStyle}; 9 12 10 13 11 14 // 🚀 PRODUCTION ··· 66 69 67 70 68 71 fn build_window(app: tauri::AppHandle) { 69 - WindowBuilder::new( 72 + let mut builder = WindowBuilder::new( 70 73 &app, 71 74 "main", 72 75 WindowUrl::App(PathBuf::from("index.html")) 73 76 ) 74 77 .title("Diffuse") 75 - .title_bar_style(TitleBarStyle::Overlay) 76 78 .hidden_title(true) 77 79 .maximized(true) 78 80 .resizable(true) 79 81 .theme(None) 80 82 .enable_clipboard_access() 81 - .user_agent("Chrome") 83 + .user_agent("Chrome"); 84 + 85 + if cfg!(target_os = "macos") { 86 + builder = builder.title_bar_style(TitleBarStyle::Overlay); 87 + } 88 + 89 + builder 82 90 .build() 83 91 .unwrap(); 84 92 }