mirror of
https://github.com/BewlyBewly/BewlyBewly.git
synced 2025-04-14 13:15:29 +00:00
feat: add config for adapting to other page styles
This commit is contained in:
@@ -151,6 +151,10 @@ watch(() => activatedPage.value, (newValue, oldValue) => {
|
||||
setAppWallpaperMaskingOpacity()
|
||||
})
|
||||
|
||||
watch(() => settings.value.adaptToOtherPageStyles, () => {
|
||||
handleAdaptToOtherPageStylesChange()
|
||||
})
|
||||
|
||||
onMounted(() => {
|
||||
nextTick(() => {
|
||||
setTimeout(() => {
|
||||
@@ -195,6 +199,7 @@ onMounted(() => {
|
||||
setAppLanguage()
|
||||
setAppThemeColor()
|
||||
setAppWallpaperMaskingOpacity()
|
||||
handleAdaptToOtherPageStylesChange()
|
||||
})
|
||||
|
||||
function handleChangeAccessKey() {
|
||||
@@ -306,6 +311,13 @@ function handleRefresh() {
|
||||
function handleBackToTop() {
|
||||
smoothScrollToTop(mainAppRef.value, 300)
|
||||
}
|
||||
|
||||
function handleAdaptToOtherPageStylesChange() {
|
||||
if (settings.value.adaptToOtherPageStyles)
|
||||
document.documentElement.classList.add('bewly-design')
|
||||
else
|
||||
document.documentElement.classList.remove('bewly-design')
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
Reference in New Issue
Block a user