From 16cf7d6d0b9756e4f611c6570793460d11a47075 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Fri, 18 Sep 2026 17:10:16 +0800 Subject: [PATCH] =?UTF-8?q?refactor(theme):=20theme=5Ftoggle=E5=88=A0?= =?UTF-8?q?=E2=98=B0/=E2=98=B2=20glyph=E4=BA=A4=E6=8D=A2(=E5=89=8D?= =?UTF-8?q?=E5=90=8E=E8=89=B2=E5=BD=92CSS)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wwwroot/theme_toggle.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/wwwroot/theme_toggle.js b/wwwroot/theme_toggle.js index 4c2a41c..aa134be 100644 --- a/wwwroot/theme_toggle.js +++ b/wwwroot/theme_toggle.js @@ -11,13 +11,8 @@ btn.opts.label = (t === 'light') ? '🌙' : '☀️'; btn.dom_element.textContent = btn.opts.label; } - // 侧栏折叠图标分风格(2026-09-18 用户要求):亮=☰ 暗=☰ 反色不可行(顶栏深色), - // 改用主题感知的展开/收起语义图标:亮色 ☰ / 暗色 ☲(线条更亮更细的变体) - var tg = bricks.getWidgetById('btn_toggle_sidebar', bricks.app); - if (tg && tg.dom_element){ - tg.opts.label = (t === 'light') ? '☰' : '☲'; - tg.dom_element.textContent = tg.opts.label; - } + // 侧栏折叠图标(2026-09-18):前后色全走 CSS(.sidebar-toggle 主题变量), + // JS 不再换 glyph 字符 } window.applyPipelineTheme = applyTheme;