hunk.code_window: 				event
   					.window()
   					.emit("keybind", command)
   					.expect("Unable to emit window event");
   			}
   		})
   		.menu(menu::get_menu())
   		.manage(updater::State::default())
   		.invoke_handler(tauri_handlers![
  
hunk.labels: keep keep keep keep add keep keep keep keep keep
hunk.after_edit: 				#[cfg(target_os = "macos")]
   				{
   					let nswindow = event.window().ns_window().unwrap();
   					unsafe { sd_desktop_macos::set_titlebar_style(&nswindow, state) };
   				}
  
hunk.file_path: apps/desktop/src-tauri/src/main.rs
hunk.type: add
file: #![cfg(target_os = "macos")]
  
  use swift_rs::*;
  
  pub type NSObject = *mut std::ffi::c_void;
  
  #[allow(dead_code)]
  pub enum AppThemeType {
  	Light = 0 as Int,
  	Dark = 1 as Int,
  }
  
  swift!(pub fn lock_app_theme(theme_type: Int));
  swift!(pub fn blur_window_background(window: &NSObject));
  swift!(pub fn set_titlebar_style(window: &NSObject, transparent: Bool));
  // swift!(pub fn setup_disk_watcher(window: &NSObject, transparent: Bool, large: Bool));
  // swift!(pub fn disk_event_callback(mounted: Bool, path: &SRString));
  swift!(pub fn reload_webview(webview: &NSObject));
  
  #[repr(C)]
  pub struct OpenWithApplication {
  	pub name: SRString,
  	pub id: SRString,
  	pub url: SRString,
  	pub icon: SRData,
  }
  
  swift!(pub fn get_open_with_applications(url: &SRString) -> SRObjectArray<OpenWithApplication>);
  swift!(pub(crate) fn open_file_path_with(file_url: &SRString, with_url: &SRString));
  
  pub fn open_file_paths_with(file_urls: &[String], with_url: &str) {
  	let file_url = file_urls.join("\0");
  	unsafe { open_file_path_with(&file_url.as_str().into(), &with_url.into()) }
  }
  
  // main!(|_| {
  // 	unsafe { setup_disk_watcher() };
  // 	print!("Waiting for disk events... ");
  // 	Ok(())
  // });
  
  // #[no_mangle]
  // pub extern "C" fn disk_event_callback(mounted: Bool, path: *const SRString) {
  // 	let mounted_str = if mounted { "mounted" } else { "unmounted" };
  
  // 	// Convert the raw pointer to a reference
  // 	let path_ref = unsafe { &*path };
  // 	let path_str = path_ref.to_string(); // Assuming SRString has a to_string method
  
  // 	println!("Disk at path {} was {}", path_str, mounted_str);
  // }
  