aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src-tauri
diff options
context:
space:
mode:
authorHsiangNianian <i@jyunko.cn>2026-01-14 18:15:31 +0800
committerHsiangNianian <i@jyunko.cn>2026-01-14 18:15:31 +0800
commiteed52135e7d6ffbbbd64070cf567bcf08653c7d5 (patch)
treec6fba957f507b2368125f7c2e1dfed6cef5aad53 /src-tauri
parent802b8cf5c0723b606ba5936c060e01d4c83222dd (diff)
downloadDropOut-eed52135e7d6ffbbbd64070cf567bcf08653c7d5.tar.gz
DropOut-eed52135e7d6ffbbbd64070cf567bcf08653c7d5.zip
feat: Enhance UI components and add visual effects
- Updated Sidebar component styles for improved aesthetics and usability. - Refactored VersionsView component with a new layout and enhanced version filtering. - Improved DownloadMonitor and GameConsole components for better performance and visual consistency. - Added new settings for GPU acceleration and visual effects in settings store. - Introduced ParticleBackground component with customizable effects (Constellation and Saturn). - Implemented ConstellationEffect and SaturnEffect classes for dynamic background animations.
Diffstat (limited to 'src-tauri')
-rw-r--r--src-tauri/Cargo.toml1
-rw-r--r--src-tauri/capabilities/default.json3
-rw-r--r--src-tauri/src/core/config.rs8
-rw-r--r--src-tauri/src/main.rs1
4 files changed, 12 insertions, 1 deletions
diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml
index d7319a7..1d4ccc5 100644
--- a/src-tauri/Cargo.toml
+++ b/src-tauri/Cargo.toml
@@ -23,6 +23,7 @@ sha1 = "0.10"
hex = "0.4"
zip = "2.2.2"
serde_urlencoded = "0.7.1"
+tauri-plugin-dialog = "2.5.0"
[build-dependencies]
tauri-build = { version = "2.0", features = [] }
diff --git a/src-tauri/capabilities/default.json b/src-tauri/capabilities/default.json
index 894b905..4d8b907 100644
--- a/src-tauri/capabilities/default.json
+++ b/src-tauri/capabilities/default.json
@@ -12,6 +12,7 @@
"core:app:allow-version",
"core:path:default",
"core:window:default",
- "shell:allow-open"
+ "shell:allow-open",
+ "dialog:default"
]
}
diff --git a/src-tauri/src/core/config.rs b/src-tauri/src/core/config.rs
index d6d594f..27e0011 100644
--- a/src-tauri/src/core/config.rs
+++ b/src-tauri/src/core/config.rs
@@ -13,6 +13,10 @@ pub struct LauncherConfig {
pub width: u32,
pub height: u32,
pub download_threads: u32, // concurrent download threads (1-128)
+ pub custom_background_path: Option<String>,
+ pub enable_gpu_acceleration: bool,
+ pub enable_visual_effects: bool,
+ pub active_effect: String,
}
impl Default for LauncherConfig {
@@ -24,6 +28,10 @@ impl Default for LauncherConfig {
width: 854,
height: 480,
download_threads: 32,
+ custom_background_path: None,
+ enable_gpu_acceleration: false,
+ enable_visual_effects: true,
+ active_effect: "constellation".to_string(),
}
}
}
diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs
index ba16f7a..f7a391a 100644
--- a/src-tauri/src/main.rs
+++ b/src-tauri/src/main.rs
@@ -1004,6 +1004,7 @@ async fn install_forge(
fn main() {
tauri::Builder::default()
+ .plugin(tauri_plugin_dialog::init())
.plugin(tauri_plugin_shell::init())
.manage(core::auth::AccountState::new())
.manage(MsRefreshTokenState::new())