feat(theme): 侧栏底改var(--bg-side)(暗色不再露亮底,用户要求②)+折叠图标分风格(亮☰暗☲,theme_toggle同步,要求③)+i18n开发产线四语

This commit is contained in:
yumoqing 2026-09-18 16:13:34 +08:00
parent 7b6983bb73
commit 6827fea582
3 changed files with 9 additions and 2 deletions

View File

@ -25,7 +25,7 @@
"产线": "Pipelines", "产线": "Pipelines",
"商机产线": "Opportunity Pipeline", "商机产线": "Opportunity Pipeline",
"投标产线": "Bidding Pipeline", "投标产线": "Bidding Pipeline",
"开发产线": "Development Pipeline", "开发产线": "Dev Pipeline",
"运维产线": "Operations Pipeline", "运维产线": "Operations Pipeline",
"营销产线": "Marketing Pipeline", "营销产线": "Marketing Pipeline",
"运维产线(面向FOMS)规划中,尚未开发": "Operations Pipeline (for FOMS) is planned, not yet developed", "运维产线(面向FOMS)规划中,尚未开发": "Operations Pipeline (for FOMS) is planned, not yet developed",

View File

@ -161,7 +161,7 @@
"width": "220px", "width": "220px",
"minWidth": "200px", "minWidth": "200px",
"height": "100%", "height": "100%",
"bgcolor": "#f8fafc", "bgcolor": "var(--bg-side)",
"mobile_hidden": true "mobile_hidden": true
}, },
"subwidgets": [ "subwidgets": [

View File

@ -11,6 +11,13 @@
btn.opts.label = (t === 'light') ? '🌙' : '☀️'; btn.opts.label = (t === 'light') ? '🌙' : '☀️';
btn.dom_element.textContent = btn.opts.label; 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;
}
} }
window.applyPipelineTheme = applyTheme; window.applyPipelineTheme = applyTheme;