From 8c146aa20be608f9eb605be56f8fc2e172e7b25b Mon Sep 17 00:00:00 2001 From: dss Date: Fri, 16 Oct 2026 16:40:26 +0800 Subject: [PATCH] fix(PasswordEdit): use edit.actionIconSize for echo button icon size Explicitly set echo button icon size to DS.Style.edit.actionIconSize, consistent with the clear button in LineEdit. Previously the echo button inherited ActionButton's default iconSize (button.iconSize = 24), which mismatched the DCI file's only available size (16), causing the icon to render at 16x16 via fallback rather than by explicit design. --- qt6/src/qml/PasswordEdit.qml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/qt6/src/qml/PasswordEdit.qml b/qt6/src/qml/PasswordEdit.qml index 2878f0c92..a58573754 100644 --- a/qt6/src/qml/PasswordEdit.qml +++ b/qt6/src/qml/PasswordEdit.qml @@ -38,6 +38,10 @@ LineEdit { focusPolicy: Qt.NoFocus onClicked: control.toggleEchoMode() - icon.name: control.isEchoMode ? "entry_password_shown" : "entry_password_hide" + icon { + name: control.isEchoMode ? "entry_password_shown" : "entry_password_hide" + width: DS.Style.edit.actionIconSize + height: DS.Style.edit.actionIconSize + } } }