feat: add option to use old top bar

This commit is contained in:
Hakadao
2024-07-27 14:29:49 +08:00
parent fcc1119efa
commit 693a7afd72
9 changed files with 1294 additions and 0 deletions

View File

@@ -10,6 +10,7 @@ import Dock from '~/components/Dock/Dock.vue'
import OverlayScrollbarsComponent from '~/components/OverlayScrollbarsComponent'
import RightSideButtons from '~/components/RightSideButtons/RightSideButtons.vue'
import Settings from '~/components/Settings/Settings.vue'
import OldTopBar from '~/components/TopBar/OldTopBar.vue'
import TopBar from '~/components/TopBar/TopBar.vue'
import type { BewlyAppProvider } from '~/composables/useAppProvider'
import { useDark } from '~/composables/useDark'
@@ -303,7 +304,12 @@ provide<BewlyAppProvider>('BEWLY_APP', {
<!-- TopBar -->
<div m-auto max-w="$bew-page-max-width">
<OldTopBar
v-if="settings.useOldTopBar"
pos="top-0 left-0" z="99 hover:1001" w-full
/>
<TopBar
v-else
pos="top-0 left-0" z="99 hover:1001" w-full
/>
</div>