mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-04-21 21:52:03 +02:00
PasswordDialog: new design
GitLab: #1417 Change-Id: Ic543f6b4332af15bbaea3c7b97a8642ff9dd387c
This commit is contained in:
parent
db4e0d3767
commit
1dd0ad71e9
1 changed files with 6 additions and 9 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue