From 6827fea582f2ad7b8449ca0a69350b15c61e1a6d Mon Sep 17 00:00:00 2001 From: yumoqing Date: Fri, 18 Sep 2026 16:13:34 +0800 Subject: [PATCH] =?UTF-8?q?feat(theme):=20=E4=BE=A7=E6=A0=8F=E5=BA=95?= =?UTF-8?q?=E6=94=B9var(--bg-side)(=E6=9A=97=E8=89=B2=E4=B8=8D=E5=86=8D?= =?UTF-8?q?=E9=9C=B2=E4=BA=AE=E5=BA=95,=E7=94=A8=E6=88=B7=E8=A6=81?= =?UTF-8?q?=E6=B1=82=E2=91=A1)+=E6=8A=98=E5=8F=A0=E5=9B=BE=E6=A0=87?= =?UTF-8?q?=E5=88=86=E9=A3=8E=E6=A0=BC(=E4=BA=AE=E2=98=B0=E6=9A=97?= =?UTF-8?q?=E2=98=B2,theme=5Ftoggle=E5=90=8C=E6=AD=A5,=E8=A6=81=E6=B1=82?= =?UTF-8?q?=E2=91=A2)+i18n=E5=BC=80=E5=8F=91=E4=BA=A7=E7=BA=BF=E5=9B=9B?= =?UTF-8?q?=E8=AF=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wwwroot/i18n/en/i18n.json | 2 +- wwwroot/index.ui | 2 +- wwwroot/theme_toggle.js | 7 +++++++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/wwwroot/i18n/en/i18n.json b/wwwroot/i18n/en/i18n.json index 464b88d..72b3038 100644 --- a/wwwroot/i18n/en/i18n.json +++ b/wwwroot/i18n/en/i18n.json @@ -25,7 +25,7 @@ "产线": "Pipelines", "商机产线": "Opportunity Pipeline", "投标产线": "Bidding Pipeline", - "开发产线": "Development Pipeline", + "开发产线": "Dev Pipeline", "运维产线": "Operations Pipeline", "营销产线": "Marketing Pipeline", "运维产线(面向FOMS)规划中,尚未开发": "Operations Pipeline (for FOMS) is planned, not yet developed", diff --git a/wwwroot/index.ui b/wwwroot/index.ui index eb0c266..da7fa9f 100644 --- a/wwwroot/index.ui +++ b/wwwroot/index.ui @@ -161,7 +161,7 @@ "width": "220px", "minWidth": "200px", "height": "100%", - "bgcolor": "#f8fafc", + "bgcolor": "var(--bg-side)", "mobile_hidden": true }, "subwidgets": [ diff --git a/wwwroot/theme_toggle.js b/wwwroot/theme_toggle.js index 1bb2051..4c2a41c 100644 --- a/wwwroot/theme_toggle.js +++ b/wwwroot/theme_toggle.js @@ -11,6 +11,13 @@ 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; + } } window.applyPipelineTheme = applyTheme;