mirror of
https://github.com/BewlyBewly/BewlyBewly.git
synced 2025-04-14 13:15:29 +00:00
@@ -49,6 +49,24 @@ export function setupNecessarySettingsWatchers() {
|
||||
{ immediate: true },
|
||||
)
|
||||
|
||||
watch(
|
||||
[() => settings.value.customizeFont, () => settings.value.fontFamily],
|
||||
() => {
|
||||
// Set the default font family
|
||||
if (!settings.value.customizeFont && !settings.value.fontFamily) {
|
||||
settings.value.fontFamily = `system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, "Roboto Flex", "Noto Sans", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", Arial, sans-serif`
|
||||
}
|
||||
|
||||
if (settings.value.customizeFont) {
|
||||
document.documentElement.style.setProperty('--bew-font-family', settings.value.fontFamily)
|
||||
}
|
||||
else {
|
||||
document.documentElement.style.removeProperty('--bew-font-family')
|
||||
}
|
||||
},
|
||||
{ immediate: true },
|
||||
)
|
||||
|
||||
watch(
|
||||
() => settings.value.disableFrostedGlass,
|
||||
() => {
|
||||
|
||||
Reference in New Issue
Block a user