feat(hub): add dark/light theme toggle with moon and sun icons

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-04 12:03:48 +08:00
parent b394e495ca
commit d1914df46f
6 changed files with 327 additions and 19 deletions
+3
View File
@@ -2645,6 +2645,9 @@
initInstanceFrame();
initFullscreen();
initMobileLayout();
if (globalThis.HubTheme && typeof HubTheme.initToggleUI === "function") {
HubTheme.initToggleUI();
}
function initShellNav() {
document.querySelectorAll(".top-nav a[href^='/']").forEach((a) => {