mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-17 13:48:02 +00:00
feat: updates
This commit is contained in:
parent
47e41dea9b
commit
ebebf2a733
160 changed files with 4148 additions and 2001 deletions
|
|
@ -1,3 +1,4 @@
|
|||
import { IpcChannels } from '@/shared/IpcChannels'
|
||||
import { proxy } from 'valtio'
|
||||
|
||||
interface UIStates {
|
||||
|
|
@ -6,6 +7,8 @@ interface UIStates {
|
|||
hideTopbarBackground: boolean
|
||||
librarySelectedTab: 'playlists' | 'albums' | 'artists' | 'videos'
|
||||
mobileShowPlayingNext: boolean
|
||||
blurBackgroundImage: string | null
|
||||
fullscreen: boolean
|
||||
}
|
||||
|
||||
const initUIStates: UIStates = {
|
||||
|
|
@ -14,6 +17,8 @@ const initUIStates: UIStates = {
|
|||
hideTopbarBackground: false,
|
||||
librarySelectedTab: 'playlists',
|
||||
mobileShowPlayingNext: false,
|
||||
blurBackgroundImage: null,
|
||||
fullscreen: window.ipcRenderer?.sendSync(IpcChannels.IsMaximized) || false,
|
||||
}
|
||||
|
||||
export default proxy<UIStates>(initUIStates)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue