From 50c7fa60d0fce94961b9a665de6b104cc8d1f31c Mon Sep 17 00:00:00 2001 From: Dss Date: Wed, 21 Oct 2026 17:12:19 +0800 Subject: [PATCH] fix(edit): use 60% alpha for focus border MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. Use the DTK color API to apply 60% alpha to the highlight color used by EditPanel focus borders. 2. Keep FocusBoxBorder unchanged so other focus borders remain fully opaque. 3. Limit the change to the Qt6 EditPanel implementation. Log: Reduce the Qt6 edit focus border alpha to 60%. Influence: Only Qt6 edit controls show a lighter focused border. fix(edit): 输入框聚焦边框使用 60% 不透明度 1. 使用 DTK 颜色接口为 EditPanel 聚焦边框的高亮色应用 60% 不透明度。 2. 保持 FocusBoxBorder 不变,其他聚焦边框仍为全不透明。 3. 仅修改 Qt6 的 EditPanel 实现。 Log: 将 Qt6 输入框聚焦边框不透明度降低为 60%。 Influence: 仅影响 Qt6 输入控件的聚焦边框显示。 --- qt6/src/qml/EditPanel.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt6/src/qml/EditPanel.qml b/qt6/src/qml/EditPanel.qml index 07c2d5d7..9f660617 100644 --- a/qt6/src/qml/EditPanel.qml +++ b/qt6/src/qml/EditPanel.qml @@ -93,7 +93,7 @@ Item { anchors.fill: parent active: control.activeFocus sourceComponent: FocusBoxBorder { - color: control.palette.highlight + color: D.DTK.makeColor(control.palette.highlight).opacity(-40).color() radius: panel.radius } }