forked from Berry-Dash/launcher
Update deps and add a setting for rounded corners on windows
This commit is contained in:
@@ -15,16 +15,16 @@ tauri-build = { version = "2.3.1", features = [] }
|
||||
tauri = { version = "2.7.0", features = [] }
|
||||
tauri-plugin-opener = "2.4.0"
|
||||
serde = { version = "1.0.219", features = ["derive"] }
|
||||
serde_json = "1.0.141"
|
||||
serde_json = "1.0.142"
|
||||
tauri-plugin-os = "2.3.0"
|
||||
reqwest = { version = "0.12.22", default-features = false, features = ["stream", "rustls-tls"] }
|
||||
tokio = "1.47.0"
|
||||
tokio = "1.47.1"
|
||||
futures-util = { version = "0.3.31", features = ["io"] }
|
||||
tauri-plugin-decorum = "1.1.1"
|
||||
tauri-plugin-fs = "2.4.1"
|
||||
zip = "4.3.0"
|
||||
libc = "0.2.174"
|
||||
tauri-plugin-dialog = "2.3.1"
|
||||
tauri-plugin-dialog = "2.3.2"
|
||||
tauri-plugin-notification = "2.3.0"
|
||||
sysinfo = "0.36.1"
|
||||
|
||||
|
||||
@@ -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")]
|
||||
|
||||
Reference in New Issue
Block a user