Skip to content

Commit 3af62ca

Browse files
add-uosdeepin-bot[bot]
authored andcommitted
style(qml): optimize UI styling and fix copyright year
Correct SPDX copyright year from 2024-2027 to 2024-2026 and optimize label styling in network settings pages. 修正SPDX版权年份并优化网络设置页面的标签样式。 Log: 修正版权年份并优化UI样式 PMS: BUG-353881 Influence: 优化网络设置页面的UI显示效果,修正版权信息错误。
1 parent 3511a2b commit 3af62ca

4 files changed

Lines changed: 17 additions & 6 deletions

File tree

dcc-network/qml/PageDetails.qml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: 2024 - 2027 UnionTech Software Technology Co., Ltd.
1+
// SPDX-FileCopyrightText: 2024 - 2026 UnionTech Software Technology Co., Ltd.
22
// SPDX-License-Identifier: GPL-3.0-or-later
33
import QtQuick 2.15
44
import QtQuick.Controls 2.15
@@ -47,11 +47,16 @@ DccObject {
4747
pageType: DccObject.Item
4848
page: RowLayout {
4949
DccLabel {
50+
property D.Palette textColor: D.Palette {
51+
normal: Qt.rgba(0, 0, 0, 0.9)
52+
normalDark: Qt.rgba(1, 1, 1, 0.9)
53+
}
5054
Layout.alignment: Qt.AlignLeft
5155
Layout.fillWidth: true
52-
font: DccUtils.copyFont(D.DTK.fontManager.t4, {
53-
"bold": true
56+
font: DccUtils.copyFont(D.DTK.fontManager.t5, {
57+
"weight": 500
5458
})
59+
color: D.ColorSelector.textColor
5560
text: dccObj.displayName
5661
elide: Text.ElideMiddle
5762
}

dcc-network/qml/SectionDNS.qml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: 2024 - 2027 UnionTech Software Technology Co., Ltd.
1+
// SPDX-FileCopyrightText: 2024 - 2026 UnionTech Software Technology Co., Ltd.
22
// SPDX-License-Identifier: GPL-3.0-or-later
33
import QtQuick 2.15
44
import QtQuick.Controls 2.15
@@ -128,6 +128,8 @@ DccObject {
128128
}
129129
Label {
130130
// visible: root.config.method === "manual"
131+
bottomPadding: 0
132+
font.pixelSize: D.DTK.fontManager.t8.pixelSize
131133
text: isEdit ? qsTr("Done") : qsTr("Edit")
132134
color: palette.link
133135
MouseArea {

dcc-network/qml/SectionIPv4.qml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: 2024 - 2027 UnionTech Software Technology Co., Ltd.
1+
// SPDX-FileCopyrightText: 2024 - 2026 UnionTech Software Technology Co., Ltd.
22
// SPDX-License-Identifier: GPL-3.0-or-later
33
import QtQuick 2.15
44
import QtQuick.Controls 2.15
@@ -153,6 +153,8 @@ DccObject {
153153
}
154154
Label {
155155
visible: root.method === "manual"
156+
bottomPadding: 0
157+
font.pixelSize: D.DTK.fontManager.t8.pixelSize
156158
text: isEdit ? qsTr("Done") : qsTr("Edit")
157159
color: palette.link
158160
MouseArea {

dcc-network/qml/SectionIPv6.qml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: 2024 - 2027 UnionTech Software Technology Co., Ltd.
1+
// SPDX-FileCopyrightText: 2024 - 2026 UnionTech Software Technology Co., Ltd.
22
// SPDX-License-Identifier: GPL-3.0-or-later
33
import QtQuick 2.15
44
import QtQuick.Controls 2.15
@@ -179,6 +179,8 @@ DccObject {
179179
}
180180
Label {
181181
visible: root.method === "manual"
182+
bottomPadding: 0
183+
font.pixelSize: D.DTK.fontManager.t8.pixelSize
182184
text: isEdit ? qsTr("Done") : qsTr("Edit")
183185
color: palette.link
184186
MouseArea {

0 commit comments

Comments
 (0)