Skip to content

Commit 6cada68

Browse files
committed
fix: disable icon smooth to prevent blur at fractional scaling
Disable smooth property on icon components to improve rendering performance. 禁用图标组件的平滑属性以提升渲染性能。 Log: 禁用图标平滑渲染 PMS: BUG-271229 Influence: 提升启动器图标渲染性能,显示更加清晰锐利。
1 parent 116b829 commit 6cada68

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

qml/windowed/SideBar.qml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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)