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/App.svelte | 145 ++++++++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 120 insertions(+), 25 deletions(-) (limited to 'ui/src/App.svelte') diff --git a/ui/src/App.svelte b/ui/src/App.svelte index 3750f11..d93374e 100644 --- a/ui/src/App.svelte +++ b/ui/src/App.svelte @@ -1,6 +1,7 @@
- + +
+ {#if settingsState.settings.custom_background_path} + Background + +
+ {:else if settingsState.settings.enable_visual_effects} + +
- -
- - -
- -
- - -
{#if uiState.currentView === "home"} - - {:else if uiState.currentView === "versions"} - - {:else if uiState.currentView === "settings"} - + {/if} + +
+ {/if} + + +
+
+ + +
+ + + + +
+ + +
- -
+ +
+ +
+ {#if uiState.currentView === "home"} + + {:else if uiState.currentView === "versions"} + + {:else if uiState.currentView === "settings"} + + {/if} +
+ + +
+
+ +
+
+ + + +
+
+
- - + + {#if uiState.showConsole} + +
+
+ + +
+
+ {/if}
+ + -- cgit v1.2.3-70-g09d2