remove description (not needed lol) and optimize naming convention for new setting

This commit is contained in:
Alec Armbruster 2024-09-27 16:28:16 -07:00
parent a05e38f166
commit 5d7524220d
No known key found for this signature in database
GPG Key ID: 52BC7C84E960FD1B
4 changed files with 4 additions and 8 deletions

View File

@ -16,10 +16,7 @@
"theme.light": "light",
"theme.dark": "dark",
"theme.description": "auto theme switches between light and dark themes depending on your device's display mode.",
"sidebar": "sidebar",
"sidebar.dark.title": "dark sidebar",
"sidebar.dark.description": "by default, the sidebar will be dark in light theme. if you'd prefer it to match the light theme, enable this option.",
"theme.darksidebar": "dark sidebar",
"video.quality": "video quality",
"video.quality.max": "8k+",

View File

@ -29,7 +29,7 @@
<nav
id="sidebar"
aria-label={$t("a11y.tabs.tab_panel")}
class:always-dark={$settings.appearance.darkSidebar}
class:dark={$settings.appearance.darkSidebar}
>
<CobaltLogo />
<div id="sidebar-tabs" role="tablist">

View File

@ -225,7 +225,7 @@
}
:global([data-theme="dark"]),
:global(#sidebar.always-dark) {
:global(#sidebar.dark) {
--sidebar-bg: #101010;
--sidebar-text: #f4f4f4;
--sidebar-highlight: #f4f4f4;

View File

@ -29,8 +29,7 @@
<SettingsToggle
settingContext="appearance"
settingId="darkSidebar"
title={$t("settings.sidebar.dark.title")}
description={$t("settings.sidebar.dark.description")}
title={$t("settings.theme.darksidebar")}
/>
{/if}
</SettingsCategory>