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;