refactor: rename isShowTopbar to showTopBar && rename autoHideTopbar to autoHideTopBar

This commit is contained in:
Hakadao
2024-01-01 18:18:42 +08:00
parent 561dec0bc2
commit 16eafd06ab
9 changed files with 18 additions and 18 deletions

View File

@@ -270,14 +270,14 @@ provide('scrollbarRef', scrollbarRef)
<div m-auto max-w="$bew-page-max-width">
<Transition name="top-bar">
<TopBar
v-if="settings.isShowTopbar && !isHomePage()"
v-if="settings.showTopBar && !isHomePage()"
pos="top-0 left-0" z="99 hover:1001" w-full
:style="{ position: isTopBarFixed ? 'fixed' : 'absolute' }"
:show-search-bar="!isSearchPage"
:mask="showTopBarMask"
/>
<TopBar
v-else-if="settings.isShowTopbar && isHomePage()"
v-else-if="settings.showTopBar && isHomePage()"
ref="topBarRef"
:show-search-bar="showTopBarMask && settings.useSearchPageModeOnHomePage || (!settings.useSearchPageModeOnHomePage && activatedPage !== AppPage.Search || activatedPage !== AppPage.Home && activatedPage !== AppPage.Search)"
:show-logo="showTopBarMask && settings.useSearchPageModeOnHomePage || (!settings.useSearchPageModeOnHomePage || activatedPage !== AppPage.Home)"

View File

@@ -49,7 +49,7 @@ onMounted(async () => {
// Allow moving tabs up only when the top bar is not hidden & is set to auto-hide
// This feature is primarily designed to compatible with the Bilibili Evolved's top bar
// Even when the BewlyBewly top bar is hidden, the Bilibili Evolved top bar still exists, so not moving up
if (settings.value.autoHideTopbar && settings.value.isShowTopbar) {
if (settings.value.autoHideTopBar && settings.value.showTopBar) {
if (val)
shouldMoveCtrlBarUp.value = false

View File

@@ -62,7 +62,7 @@ onMounted(() => {
// Allow moving tabs up only when the top bar is not hidden & is set to auto-hide
// This feature is primarily designed to compatible with the Bilibili Evolved's top bar
// Even when the BewlyBewly top bar is hidden, the Bilibili Evolved top bar still exists, so not moving up
if (settings.value.autoHideTopbar && settings.value.isShowTopbar) {
if (settings.value.autoHideTopBar && settings.value.showTopBar) {
if (val)
shouldMoveTabsUp.value = false

View File

@@ -62,7 +62,7 @@ onMounted(() => {
// Allow moving tabs up only when the top bar is not hidden & is set to auto-hide
// This feature is primarily designed to compatible with the Bilibili Evolved's top bar
// Even when the BewlyBewly top bar is hidden, the Bilibili Evolved top bar still exists, so not moving up
if (settings.value.autoHideTopbar && settings.value.isShowTopbar) {
if (settings.value.autoHideTopBar && settings.value.showTopBar) {
if (val)
shouldMoveAsideUp.value = false