mirror of
https://github.com/BewlyBewly/BewlyBewly.git
synced 2025-04-14 13:15:29 +00:00
chore: Sync Bilibili Evolved dark/light mode feature
This commit is contained in:
@@ -24,14 +24,14 @@ 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')
|
||||
// // 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')
|
||||
// // Adjust Bilibili Evolved to light mode when switching to light mode
|
||||
// document.body.classList.remove('dark')
|
||||
document.querySelector('#bewly')?.classList.remove('dark')
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user