mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-17 05:38:04 +00:00
feat: updates
This commit is contained in:
parent
884f3df41a
commit
c6c59b2cd9
84 changed files with 3531 additions and 2616 deletions
|
|
@ -9,6 +9,7 @@ interface UIStates {
|
|||
mobileShowPlayingNext: boolean
|
||||
blurBackgroundImage: string | null
|
||||
fullscreen: boolean
|
||||
playingVideoID: number | null
|
||||
}
|
||||
|
||||
const initUIStates: UIStates = {
|
||||
|
|
@ -19,10 +20,16 @@ const initUIStates: UIStates = {
|
|||
mobileShowPlayingNext: false,
|
||||
blurBackgroundImage: null,
|
||||
fullscreen: false,
|
||||
playingVideoID: null,
|
||||
}
|
||||
|
||||
window.ipcRenderer
|
||||
?.invoke(IpcChannels.IsMaximized)
|
||||
.then(isMaximized => (initUIStates.fullscreen = !!isMaximized))
|
||||
|
||||
export default proxy<UIStates>(initUIStates)
|
||||
const uiStates = proxy<UIStates>(initUIStates)
|
||||
export default uiStates
|
||||
|
||||
export const closeVideoPlayer = () => {
|
||||
uiStates.playingVideoID = null
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue