Summary Files Commits Branches @commit @diff @stats
path: root / src / scripts / theme-changer.js
diff options
context:
space:
mode:
Commit7351d297dba7f16b7517ca05e3ea6bfc096c4fca (patch)
Author
 Syndamia <kamen@syndamia.com>
2023-04-24 14:28:55 +0300
Committer
 Syndamia <kamen@syndamia.com>
2023-04-24 14:28:55 +0300
Filesbc2444f019074c9ea36818221e0171f573d2a02e /src/scripts/theme-changer.js
syndamia.com-7351d297dba7f16b7517ca05e3ea6bfc096c4fca.tar
syndamia.com-7351d297dba7f16b7517ca05e3ea6bfc096c4fca.tar.gz
syndamia.com-7351d297dba7f16b7517ca05e3ea6bfc096c4fca.zip
Parent2200cae00d5d58d1dd05857ad134babde4517f0e (diff)
[img] Renamed all -tabler icons to not have -tabler
1 files changed, 3 insertions, 3 deletions
-rw-r--r--src/scripts/theme-changer.js6
diff --git a/src/scripts/theme-changer.js b/src/scripts/theme-changer.js
index 4b5ca1b..39eedc9 100644
--- a/src/scripts/theme-changer.js
+++ b/src/scripts/theme-changer.js
@@ -1,7 +1,7 @@
const themeBtn = document.getElementById('changeThemeBtn');
if (darkThemeStyle.disabled)
- themeBtn.src = '/img/moon-tabler.svg';
+ themeBtn.src = '/img/moon.svg';
themeBtn.style.display = 'initial';
@@ -9,11 +9,11 @@ themeBtn.onclick = function() {
darkThemeStyle.disabled = !darkThemeStyle.disabled;
if (localStorage.getItem('theme') !== 'light') {
- themeBtn.src = '/img/moon-tabler.svg';
+ themeBtn.src = '/img/moon.svg';
localStorage.setItem('theme', 'light');
}
else {
- themeBtn.src = '/img/sun-tabler.svg';
+ themeBtn.src = '/img/sun.svg';
localStorage.setItem('theme', 'dark');
}
}