Enable transparent macOS window and UI tweaks

Enable macOS private API and make the app window transparent. Add tauri feature and tauri.conf settings (macOSPrivateApi + transparent) and call set_background_color in setup to use an RGBA transparent background. Adjust CSS so body is transparent, add --radius-window, and move app background to #app/.layout with border-radius and overflow hidden to preserve rounded transparent window styling.
This commit is contained in:
2026-05-13 13:50:00 +12:00
parent 7753abd896
commit b2cdd12ce0
5 changed files with 18 additions and 3 deletions
+8
View File
@@ -1832,6 +1832,14 @@ pub fn run() {
tauri::Builder::default()
.plugin(tauri_plugin_dialog::init())
.plugin(tauri_plugin_opener::init())
.setup(|app| {
use tauri::Manager;
if let Some(window) = app.get_webview_window("main") {
let _ = window
.set_background_color(Some(tauri::utils::config::Color(0, 0, 0, 0)));
}
Ok(())
})
.invoke_handler(tauri::generate_handler![
git_clone,
git_pull,