Skip to content
Snippets Groups Projects
Commit 1dd0ad71 authored by Capucine Berthet's avatar Capucine Berthet Committed by Sébastien Blin
Browse files

PasswordDialog: new design

GitLab: #1417
Change-Id: Ic543f6b4332af15bbaea3c7b97a8642ff9dd387c
parent db4e0d37
No related branches found
No related tags found
No related merge requests found
......@@ -24,6 +24,8 @@ import net.jami.Constants 1.1
BaseModalDialog {
id: root
closeButtonVisible: false
enum PasswordEnteringPurpose {
ChangePassword,
ExportAccount,
......@@ -77,6 +79,7 @@ BaseModalDialog {
popupContent: ColumnLayout {
id: popupContentColumnLayout
width: JamiTheme.preferredDialogWidth
spacing: 16
......@@ -136,10 +139,8 @@ BaseModalDialog {
id: currentPasswordEdit
Layout.alignment: Qt.AlignHCenter
Layout.preferredWidth: JamiTheme.preferredFieldWidth
Layout.fillWidth: true
Layout.preferredHeight: visible ? 48 : 0
Layout.leftMargin: JamiTheme.preferredMarginSize
Layout.rightMargin: JamiTheme.preferredMarginSize
visible: purpose === PasswordDialog.ChangePassword || purpose === PasswordDialog.ExportAccount
placeholderText: JamiStrings.enterCurrentPassword
......@@ -151,10 +152,8 @@ BaseModalDialog {
id: passwordEdit
Layout.alignment: Qt.AlignHCenter
Layout.preferredWidth: JamiTheme.preferredFieldWidth
Layout.preferredHeight: visible ? 48 : 0
Layout.leftMargin: JamiTheme.preferredMarginSize
Layout.rightMargin: JamiTheme.preferredMarginSize
Layout.fillWidth: true
visible: purpose === PasswordDialog.ChangePassword || purpose === PasswordDialog.SetPassword
......@@ -167,10 +166,8 @@ BaseModalDialog {
id: confirmPasswordEdit
Layout.alignment: Qt.AlignHCenter
Layout.preferredWidth: JamiTheme.preferredFieldWidth
Layout.preferredHeight: visible ? 48 : 0
Layout.leftMargin: JamiTheme.preferredMarginSize
Layout.rightMargin: JamiTheme.preferredMarginSize
Layout.fillWidth: true
visible: purpose === PasswordDialog.ChangePassword || purpose === PasswordDialog.SetPassword
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment