From b35f1a59b79bdb0c8afe929e77e40c318efaebce Mon Sep 17 00:00:00 2001 From: "tianshilin@uniontech.com" Date: Wed, 28 Oct 2026 00:11:37 +0800 Subject: [PATCH] fix: bind palette to EffectIcon DciIcon for dark theme MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. Root cause: EffectIcon's DTK.DciIcon lacked a palette binding, so alpha8 DCI icons did not switch to light palette in dark theme 2. Fix: add palette: DTK.makeIconPalette(propertyPanel.palette) to the DciIcon inside EffectIcon, matching ImageViewer.qml usage 3. Impact: both effect slider endpoint icons (blur/mosaic/graffiti) now render correctly in dark theme; light theme unaffected Log: Fix effect slider endpoint icon color in dark theme Influence: 1. Test blur/mosaic/graffiti effect slider endpoint icons in dark theme 2. Verify endpoint icons display correctly in light theme (no regression) 3. Test switching themes while edit panel is open fix: 修复效果滑块端点图标深色主题下颜色异常 1. 根因:EffectIcon 组件内 DTK.DciIcon 未绑定 palette 属性,导致 alpha8 格式 DCI 图标在深色主题下不会切换为浅色调色板 2. 方案:在 EffectIcon 的 DciIcon 中添加 palette: DTK.makeIconPalette(propertyPanel.palette),与 ImageViewer.qml 中的正确用法一致 3. 影响:效果强度滑块两侧端点图标(高斯模糊/马赛克/涂鸦)在深色 主题下正确渲染为浅色,浅色主题无回归 Log: 修复效果滑块端点图标深色主题下颜色异常 Influence: 1. 测试深色主题下高斯模糊/马赛克/涂鸦效果滑块端点图标颜色 2. 验证浅色主题下端点图标显示无回归 3. 测试编辑面板打开时切换主题的图标刷新 PMS: BUG-380005 --- src/qml/EditPropertyPanel.qml | 1 + 1 file changed, 1 insertion(+) diff --git a/src/qml/EditPropertyPanel.qml b/src/qml/EditPropertyPanel.qml index bdeebb33b..4648aa5b2 100644 --- a/src/qml/EditPropertyPanel.qml +++ b/src/qml/EditPropertyPanel.qml @@ -102,6 +102,7 @@ DTK.Control { anchors.centerIn: parent height: parent.iconHeight name: parent.iconName + palette: DTK.makeIconPalette(propertyPanel.palette) sourceSize.height: parent.iconHeight sourceSize.width: parent.iconWidth width: parent.iconWidth