diff --git a/home_en.html b/home_en.html index 67ffa52..93a2502 100644 --- a/home_en.html +++ b/home_en.html @@ -330,6 +330,13 @@ for (var i = 0; i < circles.length; i++) {circles[i].style.display = 'none';}}}; const darkmode = new Darkmode(options); darkmode.showWidget(); + + if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) { + // Tarayıcı karanlık moddaysa dark mode'u aktif et + if (!darkmode.isActivated()) { + darkmode.toggle(); + } + }