From eed52135e7d6ffbbbd64070cf567bcf08653c7d5 Mon Sep 17 00:00:00 2001 From: HsiangNianian Date: Wed, 14 Jan 2026 18:15:31 +0800 Subject: 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. --- ui/src/components/SettingsView.svelte | 282 ++++++++++++++++++++++++---------- 1 file changed, 203 insertions(+), 79 deletions(-) (limited to 'ui/src/components/SettingsView.svelte') diff --git a/ui/src/components/SettingsView.svelte b/ui/src/components/SettingsView.svelte index 801970b..4c92220 100644 --- a/ui/src/components/SettingsView.svelte +++ b/ui/src/components/SettingsView.svelte @@ -1,150 +1,274 @@ -
-

Settings

+
+
+

Settings

+
+ +
-
- -
- -
- - + +
+

+ Appearance +

+ +
+
+ + +
+ +
+ {#if settingsState.settings.custom_background_path} + Background Preview + {:else} +
+
Default Gradient
+ {/if} +
+ + +
+ + + {#if settingsState.settings.custom_background_path} + + {/if} +
+
+

+ Select an image from your computer to replace the default gradient background. + Supported formats: PNG, JPG, WEBP, GIF. +

+
+ + +
+
+
+

Visual Effects

+

Enable particle effects and animated gradients. (Default: On)

+
+ +
+ + {#if settingsState.settings.enable_visual_effects} +
+
+

Theme Effect

+

Select the active visual theme.

+
+ +
+ {/if} + +
+
+

GPU Acceleration

+

Enable GPU acceleration for the interface. (Default: Off, Requires Restart)

+
+ +
+
+
+ + +
+

+ Java Environment +

+
+
+ +
+ + +
+
{#if settingsState.javaInstallations.length > 0}
-

Detected Java Installations:

+

Detected Installations

{#each settingsState.javaInstallations as java} {/each}
{/if} - -

- The command or path to the Java Runtime Environment. Click "Auto Detect" to find installed Java versions. -

+
-
-

Memory Allocation (RAM)

- +
+

+ Memory Allocation (RAM) +

- +
- +
-
-

Game Window Size

+
+

+ Game Window Size +

- +
- +
-
-

Download Settings

-
- - -

- Number of concurrent download threads (1-128). Higher values increase download speed but use more bandwidth and system resources. Default: 32 -

-
+
+

+ Network +

+
+ + +

Higher values usually mean faster downloads but use more CPU/Network.

+
-
+
-- cgit v1.2.3-70-g09d2