feat: add panel mode and allow shifting of dock
This commit is contained in:
1 parent
91c5a88509
commit
6ffd3ceb99
9 files changed
+148
-14
No files matched your search
@@ -11,6 +11,7 @@
|
||||
import {
|
||||
colors,
|
||||
colorsToVars,
|
||||
defaultColors,
|
||||
inDarkLegacyTheme,
|
||||
legacyTheme,
|
||||
} from '$lib/ui/colors.js'
|
||||
@@ -73,8 +74,8 @@
|
||||
<meta
|
||||
name="theme-color"
|
||||
content={darklegacyTheme
|
||||
? $colors?.zinc?.[950] ?? '#09090b'
|
||||
: $colors?.slate?.[50] ?? '#f8fafc'}
|
||||
? $colors?.zinc?.[925] ?? defaultColors.zinc[925]
|
||||
: $colors?.slate?.[25] ?? defaultColors.slate[25]}
|
||||
/>
|
||||
{#if $site}
|
||||
<title>{$site.site_view.site.name}</title>
|
||||
@@ -148,6 +149,7 @@
|
||||
taglines={$site.taglines}
|
||||
admins={$site.admins}
|
||||
version={$site.version}
|
||||
class="pt-4"
|
||||
/>
|
||||
{:else}
|
||||
<div class="h-64 w-full grid place-items-center">
|
||||
|
||||
@@ -150,10 +150,27 @@
|
||||
{/if}
|
||||
</Section>
|
||||
|
||||
<Section title="Navigation">
|
||||
<Setting>
|
||||
<span slot="title">Dock Alignment</span>
|
||||
<span slot="description">Where the dock should be put</span>
|
||||
<MultiSelect
|
||||
options={[true, false]}
|
||||
optionNames={['Top', 'Bottom']}
|
||||
bind:selected={$userSettings.dock.top}
|
||||
/>
|
||||
</Setting>
|
||||
<ToggleSetting
|
||||
bind:checked={$userSettings.dock.noGap}
|
||||
title="Panel"
|
||||
description="Make the dock not float, similar to a panel."
|
||||
/>
|
||||
</Section>
|
||||
|
||||
<Section title="Embeds">
|
||||
<ToggleSetting
|
||||
title="Click to view"
|
||||
description="Before loading embeds, click. (It is recommended to leave this on, to not load a video you don't want to load.)"
|
||||
description="Don't load an embed until you click it. (It is recommended to leave this on, to not load a video you don't want to load.)"
|
||||
bind:checked={$userSettings.embeds.clickToView}
|
||||
/>
|
||||
<Setting>
|
||||
|
||||
Reference in new issue
Block a user