diff --git a/src/contentScripts/views/App.vue b/src/contentScripts/views/App.vue index 3a7d0735..1be1f7c2 100644 --- a/src/contentScripts/views/App.vue +++ b/src/contentScripts/views/App.vue @@ -19,23 +19,6 @@ import emitter from '~/utils/mitt' const activatedPage = ref(settings.value.startupPage ?? AppPage.Home) const { locale } = useI18n() const [showSettings, toggleSettings] = useToggle(false) -// const isDark = useDark({ -// onChanged: (isDark: boolean) => { -// if (isDark) { -// document.documentElement.classList.add('dark') -// // // Adjust Bilibili Evolved to dark mode when switching to dark mode -// // document.body.classList.add('dark') -// document.querySelector('#bewly')?.classList.add('dark') -// } -// else { -// document.documentElement.classList.remove('dark') -// // // Adjust Bilibili Evolved to light mode when switching to light mode -// // document.body.classList.remove('dark') -// document.querySelector('#bewly')?.classList.remove('dark') -// } -// }, -// }) -// const toggleDark = useToggle(isDark) const pages = { Home, Search, Anime, History, WatchLater, Favorites } const mainAppRef = ref() as Ref const mainAppOpacity = ref(0) @@ -364,23 +347,50 @@ function handleAdaptToOtherPageStylesChange() { ref="mainAppRef" class="bewly-wrapper" text="$bew-text-1" transition="opacity duration-300" overflow-y-scroll z-60 :style="{ opacity: mainAppOpacity, height: isHomePage ? '100vh' : '0' }" > + +
+
+ + +
+
+
+ +
+
- @@ -535,7 +545,7 @@ function handleAdaptToOtherPageStylesChange() {
- + @@ -627,6 +637,18 @@ function handleAdaptToOtherPageStylesChange() {