From cc54e2ebfbbb778a0d27747905f957f69bda6188 Mon Sep 17 00:00:00 2001 From: pacholoamit Date: Wed, 9 Oct 2024 08:45:41 +0800 Subject: [PATCH] style: Remove unnecessary comments and update traffic lights inset --- src-tauri/src/lib.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index 6253f816..5b793875 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -46,16 +46,13 @@ fn build_and_run_app(app: AppState) { } }); - // Create a custom titlebar for main window - // On Windows this hides decoration and creates custom window controls - // On macOS it needs hiddenTitle: true and titleBarStyle: overlay let main_window = app.get_webview_window("main").unwrap(); main_window.create_overlay_titlebar().unwrap(); // Some macOS-specific helpers #[cfg(target_os = "macos")] { - main_window.set_traffic_lights_inset(12.0, 32.0).unwrap(); + main_window.set_traffic_lights_inset(12.0, 24.0).unwrap(); } // BUILD TRAY - TODO MOVE TO DIFFERENT FILE