aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src-tauri/src
diff options
context:
space:
mode:
authorHsiangNianian <i@jyunko.cn>2026-01-14 18:40:01 +0800
committerHsiangNianian <i@jyunko.cn>2026-01-14 18:40:01 +0800
commit74849ad2d18586736d9677dfd10af4875f4ef2ca (patch)
tree8b4b4d130a58f45fae209bbcd3c8d57719eb9be4 /src-tauri/src
parent26898fd7c7150b33b2b14af86f734d375483cc1d (diff)
downloadDropOut-74849ad2d18586736d9677dfd10af4875f4ef2ca.tar.gz
DropOut-74849ad2d18586736d9677dfd10af4875f4ef2ca.zip
feat: enhance dark mode support across UI components
- Updated BottomBar, HomeView, LoginModal, ModLoaderSelector, SettingsView, Sidebar, StatusToast, and VersionsView components for improved dark mode styling. - Adjusted color schemes for various elements to ensure better visibility and aesthetics in dark mode. - Added a theme property to settings to enforce dark mode as the default. - Refactored version badges in VersionsView for better color differentiation. - Enhanced button and input styles for consistency in both light and dark themes.
Diffstat (limited to 'src-tauri/src')
-rw-r--r--src-tauri/src/core/config.rs2
-rw-r--r--src-tauri/src/main.rs4
2 files changed, 2 insertions, 4 deletions
diff --git a/src-tauri/src/core/config.rs b/src-tauri/src/core/config.rs
index 27e0011..510b126 100644
--- a/src-tauri/src/core/config.rs
+++ b/src-tauri/src/core/config.rs
@@ -17,6 +17,7 @@ pub struct LauncherConfig {
pub enable_gpu_acceleration: bool,
pub enable_visual_effects: bool,
pub active_effect: String,
+ pub theme: String,
}
impl Default for LauncherConfig {
@@ -32,6 +33,7 @@ impl Default for LauncherConfig {
enable_gpu_acceleration: false,
enable_visual_effects: true,
active_effect: "constellation".to_string(),
+ theme: "dark".to_string(),
}
}
}
diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs
index f7a391a..8a955a5 100644
--- a/src-tauri/src/main.rs
+++ b/src-tauri/src/main.rs
@@ -854,8 +854,6 @@ async fn get_recommended_java(
Ok(core::java::get_recommended_java(required_major_version))
}
-// ==================== Fabric Loader Commands ====================
-
/// Get Minecraft versions supported by Fabric
#[tauri::command]
async fn get_fabric_game_versions() -> Result<Vec<core::fabric::FabricGameVersion>, String> {
@@ -949,8 +947,6 @@ async fn is_fabric_installed(
))
}
-// ==================== Forge Loader Commands ====================
-
/// Get Minecraft versions supported by Forge
#[tauri::command]
async fn get_forge_game_versions() -> Result<Vec<String>, String> {