mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-08-03 14:25:38 +02:00
welcomepage: refine showAdvancedButton toolTipText
Gitlab: #460 Change-Id: I9f6bba8b93974922ad45f68365e2eb8d60eff2b3
This commit is contained in:
parent
bbdecfaa9b
commit
4884708a3d
2 changed files with 8 additions and 3 deletions
|
@ -464,6 +464,7 @@ Item {
|
|||
property string importAccountFromBackup: qsTr("Import account from backup file")
|
||||
property string advancedFeatures: qsTr("Advanced features")
|
||||
property string showAdvancedFeatures: qsTr("Show advanced features")
|
||||
property string hideAdvancedFeatures: qsTr("Hide advanced features")
|
||||
property string connectJAMSServer: qsTr("Connect to a JAMS server")
|
||||
property string createFromJAMS: qsTr("Create account from Jami Account Management Server (JAMS)")
|
||||
property string addSIPAccount: qsTr("Add a SIP account")
|
||||
|
|
|
@ -162,6 +162,8 @@ Rectangle {
|
|||
MaterialButton {
|
||||
id: showAdvancedButton
|
||||
|
||||
property bool showAdvanced: false
|
||||
|
||||
Layout.alignment: Qt.AlignCenter
|
||||
Layout.bottomMargin: newSIPAccountButton.visible ?
|
||||
0 : JamiTheme.wizardViewPageBackButtonMargins
|
||||
|
@ -170,7 +172,8 @@ Rectangle {
|
|||
|
||||
text: JamiStrings.advancedFeatures
|
||||
fontCapitalization: Font.AllUppercase
|
||||
toolTipText: JamiStrings.showAdvancedFeatures
|
||||
toolTipText: showAdvanced ? JamiStrings.hideAdvancedFeatures :
|
||||
JamiStrings.showAdvancedFeatures
|
||||
color: JamiTheme.buttonTintedBlue
|
||||
hoveredColor: JamiTheme.buttonTintedBlueHovered
|
||||
pressedColor: JamiTheme.buttonTintedBluePressed
|
||||
|
@ -179,8 +182,9 @@ Rectangle {
|
|||
hoverEnabled: true
|
||||
|
||||
onClicked: {
|
||||
connectAccountManagerButton.visible = !connectAccountManagerButton.visible
|
||||
newSIPAccountButton.visible = !newSIPAccountButton.visible
|
||||
showAdvanced = !showAdvanced
|
||||
connectAccountManagerButton.visible = showAdvanced
|
||||
newSIPAccountButton.visible = showAdvanced
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue