From 230e89742d00a9028b0078eb7f04c61141cef120 Mon Sep 17 00:00:00 2001 From: wangfei Date: Wed, 14 Aug 2024 13:53:03 +0800 Subject: [PATCH] fix: the display size of dci icon is exceptional The size of dci icon becomes larger than before when updating the interface under the dpi > 1.0 Log: --- qt6/src/qml/ControlGroup.qml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/qt6/src/qml/ControlGroup.qml b/qt6/src/qml/ControlGroup.qml index e82ce9345..6f7ddc9c9 100644 --- a/qt6/src/qml/ControlGroup.qml +++ b/qt6/src/qml/ControlGroup.qml @@ -100,10 +100,12 @@ ColumnLayout { verticalAlignment: Qt.AlignVCenter } D.DciIcon { - Layout.preferredWidth: 36 - Layout.preferredHeight: 36 rotation: root.isExpanded ? 0 : - 90 name: "arrow_ordinary_down" + mode: title.D.ColorSelector.controlState + theme: title.D.ColorSelector.controlTheme + palette: D.DTK.makeIconPalette(title.palette) + sourceSize: Qt.size(36, 36) Behavior on rotation { NumberAnimation {