Skip to content

Customization

Recommendation: Overlay the titlebar so you preserve the classic Mac traffic lights. Why? Because Mac users need to be reminded constantly of which light they should stop for when they cross the road. Seriously though, they hate not seeing the traffic light, you don’t need it for any reason whatsoever, all it offers is available with keybindings, but your average Mac user really, really won’t like not having the lights in the corner.

tauri.macos.conf.json
// The configuration based approach
{
"tauri": {
"window": [
{
"title": "",
"titleBarStyle": "Overlay"
}
]
}
}
lib.rs
// The Rust backend approach
let mut window = tauri::WindowBuilder::new(app, "main", tauri::WindowUrl::App("index.html".into()));
#[cfg(target_os = "macos")]
{
window = window
.title("")
.title_bar_style(tauri::TitleBarStyle::Overlay);
}
let main_window = window.build()?;

Recommendation: Same as the Titlebar argument really, use Overlay, it gets rid of the titlebar just like skipping decorations but keeps the traffic light, which is what you want from a UX perspective.