From 47a34ebf63bdda14433e8e46aa3ba76a340cf5b7 Mon Sep 17 00:00:00 2001 From: dss Date: Wed, 22 Jul 2026 09:16:23 +0800 Subject: [PATCH 1/3] fix(network): adjust font sizes on network details page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. Set left label text to T6 font size on detail list items 2. Set right content text to T7 font size on detail list items Log: Adjusted font sizes for labels and content on network details page Influence: Detail page text follows design spec font sizes fix(network): 调整网络详情页面字体大小 1. 将详情列表左侧标签文字字号设置为 T6 2. 将详情列表右侧内容文字字号设置为 T7 Log: 调整网络详情页面的标签和内容字体大小 PMS: BUG-370973 Influence: 详情页文字符合设计规范字号 --- dcc-network/qml/PageDetails.qml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dcc-network/qml/PageDetails.qml b/dcc-network/qml/PageDetails.qml index f160e9717..07543ba0d 100644 --- a/dcc-network/qml/PageDetails.qml +++ b/dcc-network/qml/PageDetails.qml @@ -107,6 +107,7 @@ DccObject { delegate: ItemDelegate { implicitHeight: 36 text: modelData[0] + font: D.DTK.fontManager.t6 checked: false backgroundVisible: true corners: getCornersForBackground(index, repeater.count) @@ -118,6 +119,7 @@ DccObject { id: textInput text: modelData[1] color: palette.text + font: D.DTK.fontManager.t7 selectedTextColor: palette.highlightedText selectionColor: palette.highlight readOnly: true From a706fb2aab899d99b9c15543343f36d0c0a00f20 Mon Sep 17 00:00:00 2001 From: dss Date: Wed, 22 Jul 2026 16:24:10 +0800 Subject: [PATCH 2/3] fix(network): improve copy button interaction and icon on network details page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace IconLabel with ActionButton for better hover/pressed feedback. Add 30x30px hover/pressed background with 6px radius. Right-align the copy button in the header. Update copy icon resource to match foreground color. Log: Improved copy button UX on network details page PMS: https://pms.uniontech.com/bug-view-370975.html Influence: Network details page copy button interaction and appearance fix(network): 优化网络详情页复制按钮交互和图标 将 IconLabel 替换为 ActionButton 以支持 hover/pressed 反馈。 添加 30x30px hover/pressed 背景,圆角 6px。 复制按钮在标题栏中右对齐。 更新 copy 图标资源以匹配前景色。 Log: 优化网络详情页复制按钮交互和外观 PMS: https://pms.uniontech.com/bug-view-370975.html Influence: 网络详情页复制按钮的交互和外观 --- dcc-network/qml/PageDetails.qml | 38 +++++++++++++------- net-view/window/qrc/built-in-icons/copy.dci | Bin 757 -> 847 bytes 2 files changed, 26 insertions(+), 12 deletions(-) mode change 100644 => 100755 net-view/window/qrc/built-in-icons/copy.dci diff --git a/dcc-network/qml/PageDetails.qml b/dcc-network/qml/PageDetails.qml index 07543ba0d..4a9fb30ac 100644 --- a/dcc-network/qml/PageDetails.qml +++ b/dcc-network/qml/PageDetails.qml @@ -60,28 +60,42 @@ DccObject { text: dccObj.displayName elide: Text.ElideMiddle } - D.IconLabel { + D.ActionButton { property bool clipboard: false - Layout.alignment: Qt.AlignRight + Layout.alignment: Qt.AlignRight | Qt.AlignVCenter + Layout.preferredWidth: 30 + Layout.preferredHeight: 30 icon { name: "copy" - palette: D.DTK.makeIconPalette(palette) + width: 16 + height: 16 } D.ToolTip { id: tip palette: parent.palette } - MouseArea { + hoverEnabled: true + background: Rectangle { anchors.fill: parent - acceptedButtons: Qt.LeftButton - onClicked: { - let text = [infoItem.name] - for (let i in infoItem.details) { - text.push(infoItem.details[i][0] + "\t" + infoItem.details[i][1]) - } - dccData.setClipboard(text.join("\n")) - tip.show(qsTr("Details has been copied"), 2000) + property D.Palette pressedColor: D.Palette { + normal: Qt.rgba(0, 0, 0, 0.2) + normalDark: Qt.rgba(1, 1, 1, 0.25) + } + property D.Palette hoveredColor: D.Palette { + normal: Qt.rgba(0, 0, 0, 0.1) + normalDark: Qt.rgba(1, 1, 1, 0.1) + } + radius: 6 + color: parent.pressed ? D.ColorSelector.pressedColor : (parent.hovered ? D.ColorSelector.hoveredColor : "transparent") + } + focusPolicy: Qt.StrongFocus + onClicked: { + let text = [infoItem.name] + for (let i in infoItem.details) { + text.push(infoItem.details[i][0] + "\t" + infoItem.details[i][1]) } + dccData.setClipboard(text.join("\n")) + tip.show(qsTr("Details has been copied"), 2000) } } } diff --git a/net-view/window/qrc/built-in-icons/copy.dci b/net-view/window/qrc/built-in-icons/copy.dci old mode 100644 new mode 100755 index 1988cc536face97d866aeff51d93a6952b231890..471225d66a4c128f80346ad4c043dc5b6ba68c76 GIT binary patch delta 419 zcmey$dY)~92jl;Vp6-mBCr)%1&t`xCW+Uz)%7eV8k$>UI!}G8Q|y6%O%AH)XD4V;SvO-4M3O!WK>b+ zvS=X1S>O>_%)r2(2*Qjj?3ZT(1@C#fIEHw1zMX2#*K8o*GF?OUrI2cj-rRnM?GH7+ z>|;>hs6ERwk+WxJZy{@!5$~m{dG@Cx#4J~8CCgqbx>g^uYQN+G6O&ti?(p-Rl46^2 zD?O;DL^#1Bp|NjD^ns!SjO9UfjD2t7T?Fi;FaB!PU-eqN;q`RGTf3UiP4KpEm})=! z8_S91wv0WG;xEl(2xDDyVau+l*Aw=)>Qzqsv2SJFN>zr%C!$RaB@8 zc&x*p<=+?s#Wpc?ni*_cTKOnA?xMZGlhDo253FEPX0H+raO=8%;!*gHKXdIP3a0`?R2y)%>2ueQwN9rCk z>jNj3KfTAdbIiH1ZL1D{d8V0_(M$E)JRT|APyCYByL;>bU%t?u|Lg8INL{RV&AV;p zb180myrbEw9}kXhTE@BN_<~Pcc!8-6MLt<)#$%%-4Hd%l@1` z=a9m^Q}pz$XR-lo|I)>>jQ-TK7q#AKx7jH0>CmD1_2t|>+FnaG#jCfj_KP*K?0My2 lyVvF1*NI=JzxZA581BasyHlv-X~2ca(T2Z@^5!cs003BScY^=` From b9d3826c591078122dacc10a1e2f76c49e136a76 Mon Sep 17 00:00:00 2001 From: dss Date: Fri, 24 Jul 2026 13:21:23 +0800 Subject: [PATCH 3/3] fix(hotspot): improve edit button interaction and icon MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. Add hover/pressed background to the hotspot edit button with 6px radius and proper light/dark palettes 2. Set explicit 30x30 preferred size for the edit button to stabilize layout 3. Replace the dcc_network_edit icon resource with the correct image Log: Add hover/press feedback and fix the icon for the hotspot edit button Influence: Improves edit button affordance and visual correctness fix(hotspot): 完善热点编辑按钮交互与图标 1. 为热点编辑按钮增加悬浮/按下背景,6px 圆角并适配明暗主题调色板 2. 为编辑按钮设置明确的 30x30 首选尺寸以稳定布局 3. 替换 dcc_network_edit 图标资源为正确图像 Log: 为热点编辑按钮增加悬浮/按下反馈并修正图标 PMS: BUG-371257 Influence: 提升编辑按钮可操作性并修正视觉 --- dcc-network/qml/PageHotspot.qml | 16 ++++++++++++++++ dcc-network/qml/dcc_network_edit.dci | Bin 787 -> 811 bytes 2 files changed, 16 insertions(+) diff --git a/dcc-network/qml/PageHotspot.qml b/dcc-network/qml/PageHotspot.qml index 6bcb2c593..819d0b232 100644 --- a/dcc-network/qml/PageHotspot.qml +++ b/dcc-network/qml/PageHotspot.qml @@ -188,11 +188,27 @@ DccObject { D.ActionButton { Layout.alignment: Qt.AlignRight focusPolicy: Qt.NoFocus + Layout.preferredWidth: 30 + Layout.preferredHeight: 30 icon { name: "dcc_network_edit" width: 16 height: 16 } + hoverEnabled: true + background: Rectangle { + anchors.fill: parent + property D.Palette pressedColor: D.Palette { + normal: Qt.rgba(0, 0, 0, 0.2) + normalDark: Qt.rgba(1, 1, 1, 0.25) + } + property D.Palette hoveredColor: D.Palette { + normal: Qt.rgba(0, 0, 0, 0.1) + normalDark: Qt.rgba(1, 1, 1, 0.1) + } + radius: 6 + color: parent.pressed ? D.ColorSelector.pressedColor : (parent.hovered ? D.ColorSelector.hoveredColor : "transparent") + } onClicked: editDialog.createObject(this, { "config": root.config }).show() diff --git a/dcc-network/qml/dcc_network_edit.dci b/dcc-network/qml/dcc_network_edit.dci index b3ab64d47fc539cc6a441f382cae781a9b65c147..8881672932cafddbd9ee4ebdd907ed815ef0ff5e 100644 GIT binary patch delta 316 zcmV-C0mJ^22CD{;NCDfiNjw1xo&f*=000000yC450Xzc$09KRE0Y`rh0RR910000| zNk&En0RRA3MM6+kP&iEb0000lFTe{B-vJPW|85Zxj3Y^Eo23_!_tIOb2u4gADyl&P zvkC?Ss#pvn1_x&G;1@e8KEzB$1keS*k|f)-)z`Ld+o<`E>~gRB_!rTC25#HNLBw|V z{-K|E($iJhRCW)SilKk#4s5G~aj}zm`Lkh>X6||J|H(ubE6Z@=zxcrZWDq+XF_axuoAsLbUw=$B+-TO&hp=l|;hJDOh_8%ni+uAt_ z?4R4XQxP_n$5IPArqqL~;ay2{NSF%3!DC4!7|ENgb+<;;hS?bS2v|`cz><~#%zLe3 Oz=np4e!CRZ&pZ;JJCe5m delta 291 zcmV+;0o?wp29pMmNCCsKNjw1xh5-No000000yC450Xzc$06vq>0Y`uK000000000| zNk&HQ00012MM6+kP&iEC0000lFTe{BpAiv^+ct6>JbH7udtN*=t%%fOM6HrhrS9SV zE%Bv8g9>0tl5N`RYumPcYyP9V-2ME%BKpt3ZQD4A*zVpx^c_!Wv1wYB4{&K2W%uB% z3+8fXdsSzdUgdes@V|c^peL#J&^Gw5dw9_z^mq@~=N(Gn$J^rcS%K53|%yU<@^M=Xbj+_H2|wozn<{WbUhw4lKP%U0szDag@gbA