From aa38abc1ea261cd72b2676472d549ae6e3b3de85 Mon Sep 17 00:00:00 2001 From: FURK4NGG <105324908+FURK4NGG@users.noreply.github.com> Date: Thu, 16 Jan 2025 23:44:12 +0300 Subject: [PATCH] Update home_en.html --- home_en.html | 7 +++++++ 1 file changed, 7 insertions(+) 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(); + } + }