aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src-tauri/src/core/config.rs
diff options
context:
space:
mode:
author简律纯 <i@jyunko.cn>2026-01-15 17:49:26 +0800
committerGitHub <noreply@github.com>2026-01-15 17:49:26 +0800
commit32a9aceee42a2261b64f9e6effda522639576a5e (patch)
tree4cae8d216c3093421addaa0450bc8004c537e373 /src-tauri/src/core/config.rs
parentce4b0c2053d5d16f7091d74840d4a502401f1a4e (diff)
parent31077dbd39a25eecd24a1dca0f8c9d1879265277 (diff)
downloadDropOut-32a9aceee42a2261b64f9e6effda522639576a5e.tar.gz
DropOut-32a9aceee42a2261b64f9e6effda522639576a5e.zip
Merge pull request #30 from HsiangNianian/main
Diffstat (limited to 'src-tauri/src/core/config.rs')
-rw-r--r--src-tauri/src/core/config.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/src-tauri/src/core/config.rs b/src-tauri/src/core/config.rs
index d6d594f..43c8145 100644
--- a/src-tauri/src/core/config.rs
+++ b/src-tauri/src/core/config.rs
@@ -13,6 +13,13 @@ 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,
+ pub theme: String,
+ pub log_upload_service: String, // "paste.rs" or "pastebin.com"
+ pub pastebin_api_key: Option<String>,
}
impl Default for LauncherConfig {
@@ -24,6 +31,13 @@ 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(),
+ theme: "dark".to_string(),
+ log_upload_service: "paste.rs".to_string(),
+ pastebin_api_key: None,
}
}
}