From 58cbd0567d6704758fa8206ede6cc1bcc9ccd1b0 Mon Sep 17 00:00:00 2001 From: NimBold Date: Sun, 14 Jun 2026 10:04:53 +0330 Subject: [PATCH] feat(ui): align settings with SwiftUI --- apps/desktop/src/components/SettingsView.tsx | 159 ++++++++++++------- apps/desktop/src/index.css | 97 +++++++++-- 2 files changed, 185 insertions(+), 71 deletions(-) diff --git a/apps/desktop/src/components/SettingsView.tsx b/apps/desktop/src/components/SettingsView.tsx index cd3d65f..f29dcb9 100644 --- a/apps/desktop/src/components/SettingsView.tsx +++ b/apps/desktop/src/components/SettingsView.tsx @@ -196,13 +196,13 @@ export default function SettingsView() { type="button" data-active={active} onClick={() => settings.setActiveSettingsTab(type)} - className={`settings-tab-button flex min-w-0 flex-1 flex-col items-center justify-center rounded-lg px-1 py-2 text-center cursor-default transition-colors ${ + className={`settings-tab-button flex min-w-0 flex-1 flex-col items-center justify-center px-1 text-center cursor-default ${ active - ? 'text-text-primary' - : 'text-text-secondary hover:bg-item-hover hover:text-text-primary' + ? 'text-white' + : 'text-text-primary hover:bg-item-hover' }`} > - + {label} ); @@ -221,7 +221,7 @@ export default function SettingsView() { {/* SwiftUI SettingsPaneContainer-style horizontal tab strip */}
-
+
{settingsTabs.map(tab => ( ))} @@ -230,28 +230,19 @@ export default function SettingsView() { {/* Content Area */}
-
-

{activeTabLabel}

-
+
+

{activeTabLabel}

+
{/* Downloads Pane */} {activeTab === 'downloads' && ( -
+
- Parallel downloads -
- {settings.maxConcurrentDownloads} - settings.setMaxConcurrentDownloads(Number(e.target.value))} - className="accent-accent w-24" - /> +
+ Default connections: + For new downloads
-
-
- Default connections
- Global speed limit +
+ Parallel downloads: + Max simultaneous active files +
+ settings.setMaxConcurrentDownloads(Number(e.target.value))} + className="app-control w-16 text-center" + /> +
+
+
+ Global speed limit: + 0 = unlimited speed +
+
settings.setGlobalSpeedLimit(e.target.value)} placeholder="0" - className="app-control w-24 text-center font-mono" + className="app-control w-20 text-right font-mono px-2" /> + KiB/s +
- Automatic retries +
+ Automatic retries: + If a connection fails +