Skip to content

Commit c39aac4

Browse files
re2zeroBLumia
authored andcommitted
fix: disable icon smooth to icon blur
Set smooth: false on icon items to fix rendering artifacts. 禁用图标组件的平滑属性以解决小图标模糊。 Log: 修复图标渲染模糊问题 PMS: BUG-271229 Influence: 小图标渲染更清晰,避免模糊伪影。
1 parent 04d3aaf commit c39aac4

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

qml/windowed/SideBar.qml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd.
1+
// SPDX-FileCopyrightText: 2024 - 2026 UnionTech Software Technology Co., Ltd.
22
//
33
// SPDX-License-Identifier: GPL-3.0-or-later
44

@@ -106,6 +106,7 @@ ColumnLayout {
106106
palette: D.DTK.makeIconPalette(title.palette)
107107
theme: D.DTK.toColorType(title.palette.window)
108108
Layout.alignment: Qt.AlignHCenter
109+
smooth: false
109110
}
110111

111112
D.DciIcon {
@@ -114,6 +115,7 @@ ColumnLayout {
114115
palette: D.DTK.makeIconPalette(title.palette)
115116
theme: D.DTK.toColorType(title.palette.window)
116117
Layout.alignment: Qt.AlignHCenter
118+
smooth: false
117119
}
118120
}
119121

@@ -143,6 +145,11 @@ ColumnLayout {
143145
width: 16
144146
height: 16
145147
}
148+
Component.onCompleted: {
149+
if (contentItem) {
150+
contentItem.smooth = false
151+
}
152+
}
146153
background: ItemBackground {
147154
button: btn
148155
}

0 commit comments

Comments
 (0)