File tree Expand file tree Collapse file tree 6 files changed +7
-7
lines changed Expand file tree Collapse file tree 6 files changed +7
-7
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1919 < a href ="https://github.com/AxolotlClient/ "> GitHub</ a >
2020 < a href ="https://discord.gg/9Q3brQVQZN "> Discord</ a >
2121 </ div >
22- < div class ="navbar-right "> < img src ="images/moon-regular .svg " alt ="" id ="switcher "> </ div >
22+ < div class ="navbar-right "> < img src ="images/moon.svg " alt ="" id ="switcher "> </ div >
2323</ div >
2424
2525< body >
Original file line number Diff line number Diff line change @@ -17,10 +17,10 @@ const rootElem = document.documentElement;
1717const darkThemeMq = window . matchMedia ( "(prefers-color-scheme: dark)" ) ;
1818if ( darkThemeMq . matches ) {
1919 rootElem . setAttribute ( "data-theme" , "dark" ) ;
20- document . getElementById ( "switcher" ) . src = "images/sun-regular .svg" ;
20+ document . getElementById ( "switcher" ) . src = "images/sun.svg" ;
2121} else {
2222 rootElem . setAttribute ( "data-theme" , "light" ) ;
23- document . getElementById ( "switcher" ) . src = "images/moon-regular .svg" ;
23+ document . getElementById ( "switcher" ) . src = "images/moon.svg" ;
2424}
2525
2626const switchTheme = ( ) => {
@@ -30,9 +30,9 @@ const switchTheme = () => {
3030 switchIcon = document . getElementById ( "switcher" ) ;
3131 rootElem . setAttribute ( "data-theme" , newTheme ) ;
3232 if ( dataTheme === "dark" ) {
33- switcher . src = "images/moon-regular .svg" ;
33+ switcher . src = "images/moon.svg" ;
3434 } else {
35- switcher . src = "images/sun-regular .svg" ;
35+ switcher . src = "images/sun.svg" ;
3636 }
3737} ;
3838
You can’t perform that action at this time.
0 commit comments