Style Ko-fi widgets to match light/dark theme

Floating button now initializes with theme-aware colors and updates
on toggle. Status page iframe uses a tuned CSS filter in dark mode
to blend with the warm palette.
This commit is contained in:
tdurieux
2026-05-06 21:38:52 +03:00
parent dfa5a2e2fd
commit 48256e743c
5 changed files with 24 additions and 8 deletions
+6
View File
@@ -816,6 +816,12 @@ angular
document.head.append(link);
$(`link[href='${darkPrismLink}']`).remove();
}
// Update Ko-fi floating button to match theme
var kofiBtn = document.querySelector(".floatingchat-container-wrap-mo498 .floating-chat-kofi-text-container-wrap");
if (kofiBtn) {
kofiBtn.style.backgroundColor = on ? "#FAF9F6" : "#1A1815";
kofiBtn.style.color = on ? "#1A1815" : "#FAF9F6";
}
$scope.$broadcast("dark-mode", on);
};