Skip to content

Commit 55b7f47

Browse files
Switch to another icons
1 parent 6b1d1be commit 55b7f47

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

images/moon-regular.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

images/moon.svg

Lines changed: 1 addition & 0 deletions
Loading

images/sun-regular.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

images/sun.svg

Lines changed: 1 addition & 0 deletions
Loading

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
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>

script.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ const rootElem = document.documentElement;
1717
const darkThemeMq = window.matchMedia("(prefers-color-scheme: dark)");
1818
if (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

2626
const 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

0 commit comments

Comments
 (0)