From 5e1742262d0afe0c7be34d8b15e3b5fcc1dc0eb8 Mon Sep 17 00:00:00 2001 From: MrMirDan <58086007+MrMirDan@users.noreply.github.com> Date: Fri, 28 Nov 2025 05:00:53 +0200 Subject: [PATCH] fix: eye icon (#1985) Co-authored-by: vkamn --- client/ui/qml/Pages2/PageSetupWizardCredentials.qml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/client/ui/qml/Pages2/PageSetupWizardCredentials.qml b/client/ui/qml/Pages2/PageSetupWizardCredentials.qml index bfd9e084e..4ce5bc31c 100644 --- a/client/ui/qml/Pages2/PageSetupWizardCredentials.qml +++ b/client/ui/qml/Pages2/PageSetupWizardCredentials.qml @@ -71,6 +71,7 @@ PageType { clickedFunc: function () { clickedHandler() + buttonImageSource = textField.text !== "" ? imageSource : "" } textField.onFocusChanged: { @@ -78,8 +79,8 @@ PageType { } textField.onTextChanged: { - if (hideContent) { - buttonImageSource = textField.text !== "" ? (hideContent ? "qrc:/images/controls/eye.svg" : "qrc:/images/controls/eye-off.svg") : "" + if (headerText == qsTr("Password or SSH private key")) { + buttonImageSource = textField.text !== "" ? imageSource : "" } } } @@ -211,8 +212,10 @@ PageType { property string title: qsTr("Password or SSH private key") readonly property string placeholderContent: "" property bool hideContent: true + property string imageSource: "qrc:/images/controls/eye.svg" readonly property var clickedHandler: function() { hideContent = !hideContent + imageSource = hideContent ? "qrc:/images/controls/eye.svg" : "qrc:/images/controls/eye-off.svg" } }