mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-07-01 14:15:24 +02:00
AdvancedAccountSettings: fix margin problem
GitLab: #1057 Change-Id: I626cf3d11952c236c82a2329fadb7d893da42ce9
This commit is contained in:
parent
1ed5bb1e1f
commit
7c30803673
1 changed files with 12 additions and 4 deletions
|
@ -235,14 +235,20 @@ Rectangle {
|
||||||
}
|
}
|
||||||
|
|
||||||
MaterialButton {
|
MaterialButton {
|
||||||
|
|
||||||
id: setButton
|
id: setButton
|
||||||
|
|
||||||
|
TextMetrics{
|
||||||
|
id: setButtonTextSize
|
||||||
|
font.weight: Font.Bold
|
||||||
|
font.pixelSize: JamiTheme.wizardViewDescriptionFontPixelSize
|
||||||
|
text: setButton.text
|
||||||
|
}
|
||||||
|
|
||||||
visible: openedPassword
|
visible: openedPassword
|
||||||
|
|
||||||
Layout.topMargin: 10
|
Layout.topMargin: 10
|
||||||
Layout.alignment: Qt.AlignCenter
|
Layout.alignment: Qt.AlignCenter
|
||||||
preferredWidth: JamiTheme.wizardButtonWidth / 2
|
preferredWidth: setButtonTextSize.width + 2*JamiTheme.buttontextWizzardPadding
|
||||||
text: JamiStrings.setPassword
|
text: JamiStrings.setPassword
|
||||||
primary: true
|
primary: true
|
||||||
|
|
||||||
|
@ -314,6 +320,7 @@ Rectangle {
|
||||||
id: labelEncrypt
|
id: labelEncrypt
|
||||||
visible: !openedPassword && !openedNickname
|
visible: !openedPassword && !openedNickname
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
Layout.rightMargin: 20
|
||||||
|
|
||||||
text: JamiStrings.encryptAccount
|
text: JamiStrings.encryptAccount
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
|
@ -525,6 +532,7 @@ Rectangle {
|
||||||
text: JamiStrings.customizeProfile
|
text: JamiStrings.customizeProfile
|
||||||
font.pixelSize: JamiTheme.creditsTextSize
|
font.pixelSize: JamiTheme.creditsTextSize
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
Layout.rightMargin: 20
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -552,7 +560,7 @@ Rectangle {
|
||||||
id: showAdvancedButton
|
id: showAdvancedButton
|
||||||
|
|
||||||
TextMetrics{
|
TextMetrics{
|
||||||
id: textSize
|
id: showAdvancedButtonTextSize
|
||||||
font.weight: Font.Bold
|
font.weight: Font.Bold
|
||||||
font.pixelSize: JamiTheme.wizardViewDescriptionFontPixelSize
|
font.pixelSize: JamiTheme.wizardViewDescriptionFontPixelSize
|
||||||
text: showAdvancedButton.text
|
text: showAdvancedButton.text
|
||||||
|
@ -563,7 +571,7 @@ Rectangle {
|
||||||
Layout.bottomMargin: JamiTheme.wizardViewPageBackButtonMargins
|
Layout.bottomMargin: JamiTheme.wizardViewPageBackButtonMargins
|
||||||
Layout.topMargin: JamiTheme.wizardViewBlocMarginSize
|
Layout.topMargin: JamiTheme.wizardViewBlocMarginSize
|
||||||
|
|
||||||
preferredWidth: textSize.width + 2*JamiTheme.buttontextWizzardPadding + 1
|
preferredWidth: showAdvancedButtonTextSize.width + 2*JamiTheme.buttontextWizzardPadding + 1
|
||||||
text: JamiStrings.optionSave
|
text: JamiStrings.optionSave
|
||||||
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
|
|
Loading…
Add table
Reference in a new issue