mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-16 21:28:06 +00:00
feat: updates
This commit is contained in:
parent
ce757215a3
commit
c1cd31840e
86 changed files with 1048 additions and 778 deletions
|
|
@ -1,8 +1,7 @@
|
|||
export const changeTheme = (theme: 'light' | 'dark') => {
|
||||
document.body.setAttribute('class', theme)
|
||||
if (!window.env?.isElectron) {
|
||||
document.documentElement.style.background =
|
||||
theme === 'dark' ? '#000' : '#fff'
|
||||
document.documentElement.style.background = theme === 'dark' ? '#000' : '#fff'
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue