Skip to content

Commit 6ecc232

Browse files
committed
chore: update DTK dependency and fix icon display
Updated libdtk6declarative-dev dependency version from >= 6.0.19 to >> 6.7.33 to ensure compatibility with newer DTK features and bug fixes. Added fillMode: Image.PreserveAspectFit to IconImage component in IconItemDelegate.qml to prevent icon distortion and ensure proper aspect ratio preservation when scaling icons. chore: 更新 DTK 依赖并修复图标显示 将 libdtk6declarative-dev 依赖版本从 >= 6.0.19 更新为 >> 6.7.33,以确保 兼容新的 DTK 功能和错误修复。在 IconItemDelegate.qml 的 IconImage 组件中 添加 fillMode: Image.PreserveAspectFit,防止图标变形并确保缩放时保持正确 的宽高比。 PMS: BUG-301329
1 parent 83f744d commit 6ecc232

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

debian/control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Build-Depends:
2323
libdtk6core-bin,
2424
# v-- provides DHiDPIHelper
2525
libdtk6gui-dev (>= 6.0.19),
26-
libdtk6declarative-dev (>= 6.0.19),
26+
libdtk6declarative-dev (>> 6.7.33),
2727
libdde-shell-dev (>= 0.0.10),
2828
libappstreamqt-dev (>= 1.0.0)
2929
Standards-Version: 4.6.0

qml/IconItemDelegate.qml

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

@@ -178,6 +178,7 @@ Control {
178178
scale: (parent.width / root.maxIconSize) * root.iconScaleFactor
179179
palette: DTK.makeIconPalette(root.palette)
180180
theme: ApplicationHelper.DarkType
181+
fillMode: Image.PreserveAspectFit
181182
}
182183
}
183184
}

0 commit comments

Comments
 (0)