From 47a34ebf63bdda14433e8e46aa3ba76a340cf5b7 Mon Sep 17 00:00:00 2001 From: dss Date: Wed, 22 Jul 2026 09:16:23 +0800 Subject: [PATCH 1/2] 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/2] 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^=`