Skip to content

Commit

Permalink
style: Remove unnecessary comments and update traffic lights inset
Browse files Browse the repository at this point in the history
  • Loading branch information
pacholoamit committed Oct 9, 2024
1 parent 70d3cbe commit cc54e2e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src-tauri/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cc54e2e

Please sign in to comment.