From a12655a834599905f307dc20b8ab03e29d3c78dc Mon Sep 17 00:00:00 2001 From: wukko Date: Mon, 24 Jun 2024 19:42:31 +0600 Subject: [PATCH] web/settings: navigation draft also unified "active" class/state across all components & added more colors --- .../components/buttons/SettingsButton.svelte | 4 +- .../settings/SettingsCategory.svelte | 55 +++++++++++ .../settings/SettingsSection.svelte | 28 ++++++ web/src/components/sidebar/SidebarTab.svelte | 1 - web/src/routes/+layout.svelte | 9 +- web/src/routes/settings/+layout.svelte | 99 +++++++++++++++++++ web/src/routes/settings/+page.svelte | 28 ------ .../general/accessibility/+page.svelte | 1 + .../settings/general/appearance/+page.svelte | 1 + .../routes/settings/save/audio/+page.svelte | 1 + .../settings/save/metadata/+page.svelte | 1 + .../routes/settings/save/video/+page.svelte | 1 + 12 files changed, 195 insertions(+), 34 deletions(-) create mode 100644 web/src/components/settings/SettingsCategory.svelte create mode 100644 web/src/components/settings/SettingsSection.svelte create mode 100644 web/src/routes/settings/+layout.svelte create mode 100644 web/src/routes/settings/general/accessibility/+page.svelte create mode 100644 web/src/routes/settings/general/appearance/+page.svelte create mode 100644 web/src/routes/settings/save/audio/+page.svelte create mode 100644 web/src/routes/settings/save/metadata/+page.svelte create mode 100644 web/src/routes/settings/save/video/+page.svelte diff --git a/web/src/components/buttons/SettingsButton.svelte b/web/src/components/buttons/SettingsButton.svelte index bb2a6f13..2f57b438 100644 --- a/web/src/components/buttons/SettingsButton.svelte +++ b/web/src/components/buttons/SettingsButton.svelte @@ -14,13 +14,13 @@ export let settingValue: Value; $: setting = $settings[settingContext][settingId]; - $: isSelected = setting === settingValue; + $: isActive = setting === settingValue;