diff --git a/MusicPlayerV2-GUI/src/App.vue b/MusicPlayerV2-GUI/src/App.vue index 9085815..5b76090 100644 --- a/MusicPlayerV2-GUI/src/App.vue +++ b/MusicPlayerV2-GUI/src/App.vue @@ -26,24 +26,24 @@ if ( theme.value === '☽' ) { document.documentElement.classList.remove( 'dark' ); document.documentElement.classList.add( 'light' ); - localStorage.setItem( 'theme', '☼' ); - theme.value = '☼'; + localStorage.setItem( 'theme', '☼' ); + theme.value = '☼'; } else if ( theme.value === '☼' ) { document.documentElement.classList.remove( 'light' ); document.documentElement.classList.add( 'dark' ); - localStorage.setItem( 'theme', '☽' ); - theme.value = '☽'; + localStorage.setItem( 'theme', '☽' ); + theme.value = '☽'; } }; theme.value = localStorage.getItem( 'theme' ) ?? ''; - if ( window.matchMedia( '(prefers-color-scheme: dark)' ).matches || theme.value === '☽' ) { + if ( window.matchMedia( '(prefers-color-scheme: dark)' ).matches || theme.value === '☽' ) { document.documentElement.classList.add( 'dark' ); - theme.value = '☽'; + theme.value = '☽'; } else { document.documentElement.classList.add( 'light' ); - theme.value = '☼'; + theme.value = '☼'; }