1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-03-28 14:56:19 +01:00

AdvancedAccountSettings: fix margin problem

GitLab: #1057

Change-Id: I626cf3d11952c236c82a2329fadb7d893da42ce9
This commit is contained in:
Franck LAURENT 2023-04-04 13:09:24 -04:00 committed by Franck Laurent
parent 1ed5bb1e1f
commit 7c30803673

View file

@ -235,14 +235,20 @@ Rectangle {
}
MaterialButton {
id: setButton
TextMetrics{
id: setButtonTextSize
font.weight: Font.Bold
font.pixelSize: JamiTheme.wizardViewDescriptionFontPixelSize
text: setButton.text
}
visible: openedPassword
Layout.topMargin: 10
Layout.alignment: Qt.AlignCenter
preferredWidth: JamiTheme.wizardButtonWidth / 2
preferredWidth: setButtonTextSize.width + 2*JamiTheme.buttontextWizzardPadding
text: JamiStrings.setPassword
primary: true
@ -314,6 +320,7 @@ Rectangle {
id: labelEncrypt
visible: !openedPassword && !openedNickname
Layout.fillWidth: true
Layout.rightMargin: 20
text: JamiStrings.encryptAccount
wrapMode: Text.WordWrap
@ -525,6 +532,7 @@ Rectangle {
text: JamiStrings.customizeProfile
font.pixelSize: JamiTheme.creditsTextSize
Layout.fillWidth: true
Layout.rightMargin: 20
wrapMode: Text.WordWrap
}
}
@ -552,7 +560,7 @@ Rectangle {
id: showAdvancedButton
TextMetrics{
id: textSize
id: showAdvancedButtonTextSize
font.weight: Font.Bold
font.pixelSize: JamiTheme.wizardViewDescriptionFontPixelSize
text: showAdvancedButton.text
@ -563,7 +571,7 @@ Rectangle {
Layout.bottomMargin: JamiTheme.wizardViewPageBackButtonMargins
Layout.topMargin: JamiTheme.wizardViewBlocMarginSize
preferredWidth: textSize.width + 2*JamiTheme.buttontextWizzardPadding + 1
preferredWidth: showAdvancedButtonTextSize.width + 2*JamiTheme.buttontextWizzardPadding + 1
text: JamiStrings.optionSave
onClicked: {