Update deps and add a setting for rounded corners on windows

This commit is contained in:
2025-08-04 13:12:38 -07:00
parent e8ae09446c
commit 70847f46f0
8 changed files with 192 additions and 153 deletions

View File

@@ -379,6 +379,11 @@ fn fix_mac_permissions(app: AppHandle, name: String, executable: String) {
}
}
#[tauri::command]
fn windows_rounded_corners(app: AppHandle, enabled: bool) {
let _ = app.get_webview_window("main").unwrap().set_shadow(enabled);
}
#[cfg_attr(mobile, tauri::mobile_entry_point)]
pub fn run() {
#[allow(unused_variables)]
@@ -402,7 +407,8 @@ pub fn run() {
get_keys_config,
uninstall_version,
open_folder,
fix_mac_permissions
fix_mac_permissions,
windows_rounded_corners
])
.setup(|app| {
#[cfg(target_os = "windows")]