refactor(theme): theme_toggle删☰/☲ glyph交换(前后色归CSS)
This commit is contained in:
parent
6827fea582
commit
16cf7d6d0b
@ -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;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user